/* Sydney Line Marking / Premier Workplace Solutions - Inner pages (Product Information).
   Design follows the reference site (inner-page styling). Every rule is scoped to
   .inner-hero-section, .inner-page-section or .inner-gallery-section so the home page is not affected. */

.inner-hero-section,
.inner-page-section,
.inner-gallery-section,
.inner-page-main,
.gallery-cta-section {
  --color-primary-yellow: #F5B800;
  --color-primary-yellow-light: #FFF8E1;
  --color-industrial-black: #0B111A;
  --color-industrial-navy: #0F172A;
  --color-industrial-gray: #334155;
  --color-industrial-surface: #F8FAFC;
  --color-white: #FFFFFF;
  --color-border-light: #E2E8F0;
  --overlay-badge-yellow: rgba(245, 184, 0, 0.18);
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 18px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-4xl: 42px;
  --font-heading: 'Montserrat', 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ---------- Hero banner ---------- */
.inner-hero-section {
  position: relative;
  background-color: var(--color-industrial-black);
  padding: 44px 0 40px 0;
  border-bottom: 4px solid var(--color-primary-yellow);
  overflow: hidden;
}

.inner-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(245, 184, 0, 0.08) 0%, transparent 50%),
    linear-gradient(to right, rgba(11, 17, 26, 0.95), rgba(15, 23, 42, 0.9));
  pointer-events: none;
}

.inner-hero-section .container {
  position: relative;
  z-index: 2;
}

.inner-hero-section .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(245, 184, 0, 0.15);
  color: var(--color-primary-yellow);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--color-primary-yellow);
  margin-bottom: 12px;
}

.inner-hero-section .section-tag i {
  font-size: 13px;
}

.inner-hero-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.inner-hero-title span {
  color: var(--color-primary-yellow);
}

.inner-hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  color: #CBD5E1;
  max-width: 760px;
  margin-bottom: 0;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .inner-hero-section {
    padding: 32px 0 28px 0;
  }

  .inner-hero-title {
    font-size: 32px;
  }

  .inner-hero-subtitle {
    font-size: 16px;
  }
}

/* ---------- Article content (text, list, image, buttons) ---------- */
.inner-page-section {
  padding: 56px 0 24px;
  position: relative;
  font-family: var(--font-body);
  color: var(--color-industrial-gray);
  line-height: 1.7;
}

.inner-page-section .text-navy {
  color: var(--color-industrial-navy) !important;
}

.inner-page-section .lead {
  font-size: var(--font-size-lg);
  line-height: 1.65;
}

.inner-page-section h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-industrial-navy);
}

.inner-page-section .list-unstyled li {
  font-size: 16px;
}

.inner-page-section .list-unstyled i {
  flex-shrink: 0;
}

.inner-page-section img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .inner-page-section {
    padding: 40px 0 16px;
  }
}

/* Stacked (tablet/mobile) article image: keep it proportionate instead of the 380px desktop height */
@media (max-width: 991.98px) {
  .inner-page-section .col-lg-5 img {
    min-height: 0 !important;
    height: auto !important;
    object-fit: initial !important;
  }
}

/* ---------- Project gallery block ---------- */
.inner-gallery-section {
  padding: 0 0 56px 0;
  font-family: var(--font-body);
}

.inner-gallery-section .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--overlay-badge-yellow);
  color: var(--color-industrial-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--color-primary-yellow);
  margin-bottom: 12px;
}

.inner-gallery-section h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-industrial-navy);
  text-transform: uppercase;
}

.inner-gallery-section h2 strong {
  color: var(--color-primary-yellow);
}

.inner-gallery-section .gallery-subtitle {
  font-size: var(--font-size-sm);
  color: #64748B;
}

/* ---- Project slider (reference design), scoped to the inner gallery ---- */
.inner-gallery-section .gallery-item-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--color-industrial-navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  height: 280px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.inner-gallery-section .gallery-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.inner-gallery-section .gallery-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.inner-gallery-section .gallery-item-card:hover .gallery-item-img {
  transform: scale(1.06);
}

.inner-gallery-section .gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 26, 0.95) 0%, rgba(11, 17, 26, 0.4) 60%, rgba(11, 17, 26, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0.9;
  transition: opacity 0.35s ease;
}

.inner-gallery-section .gallery-item-card:hover .gallery-item-overlay {
  opacity: 1;
}

.inner-gallery-section .gallery-item-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary-yellow);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inner-gallery-section .gallery-item-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.inner-gallery-section .gallery-item-caption {
  font-size: 12px;
  color: #CBD5E1;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE PROJECT GALLERY CAROUSEL SLIDER (LINE MARKING)
   ========================================================================== */
.inner-gallery-section .project-slider-container {
  --slider-gap: 20px;
  --visible-cards: 4;
  position: relative;
  width: 100%;
}

@media (min-width: 992px) {
  .inner-gallery-section .project-slider-container {
    --slider-gap: 20px;
    --visible-cards: 4;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .inner-gallery-section .project-slider-container {
    --slider-gap: 16px;
    --visible-cards: 3;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .inner-gallery-section .project-slider-container {
    --slider-gap: 14px;
    --visible-cards: 2;
  }
}

@media (min-width: 420px) and (max-width: 575px) {
  .inner-gallery-section .project-slider-container {
    --slider-gap: 12px;
    --visible-cards: 2;
  }
}

@media (max-width: 419px) {
  .inner-gallery-section .project-slider-container {
    --slider-gap: 10px;
    --visible-cards: 1;
  }
}

.inner-gallery-section .project-slider-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--border-radius-sm);
  padding: 10px 4px;
  margin: -10px -4px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.inner-gallery-section .project-slider-viewport.is-dragging {
  cursor: grabbing;
}

.inner-gallery-section .project-slider-track {
  display: flex;
  gap: var(--slider-gap);
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.inner-gallery-section .project-slider-track.no-transition {
  transition: none !important;
}

.inner-gallery-section .project-slide {
  flex: 0 0 calc((100% - (var(--visible-cards) - 1) * var(--slider-gap)) / var(--visible-cards));
  max-width: calc((100% - (var(--visible-cards) - 1) * var(--slider-gap)) / var(--visible-cards));
  width: calc((100% - (var(--visible-cards) - 1) * var(--slider-gap)) / var(--visible-cards));
  box-sizing: border-box;
}

.inner-gallery-section .project-slide .gallery-item-card {
  width: 100%;
  margin: 0;
}

.inner-gallery-section .project-slider-btn {
  position: absolute;
  top: calc(50% - 18px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-industrial-black);
  color: var(--color-primary-yellow);
  border: 2px solid var(--color-primary-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.inner-gallery-section .project-slider-btn.prev-btn {
  left: -22px;
}

.inner-gallery-section .project-slider-btn.next-btn {
  right: -22px;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .inner-gallery-section .project-slider-btn.prev-btn {
    left: -12px;
  }
  .inner-gallery-section .project-slider-btn.next-btn {
    right: -12px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .inner-gallery-section .project-slider-btn.prev-btn {
    left: -8px;
  }
  .inner-gallery-section .project-slider-btn.next-btn {
    right: -8px;
  }
}

@media (max-width: 767px) {
  .inner-gallery-section .project-slider-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
    background: rgba(11, 17, 26, 0.88);
    backdrop-filter: blur(4px);
  }
  .inner-gallery-section .project-slider-btn.prev-btn {
    left: 4px;
  }
  .inner-gallery-section .project-slider-btn.next-btn {
    right: 12px;
  }
}

.inner-gallery-section .project-slider-btn:hover:not(:disabled) {
  background: var(--color-primary-yellow);
  color: var(--color-industrial-black);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(245, 184, 0, 0.4);
}

.inner-gallery-section .project-slider-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.4);
}

.inner-gallery-section .project-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.inner-gallery-section .project-slider-dot.active {
  background: var(--color-primary-yellow);
  border-color: var(--color-industrial-black);
  transform: scale(1.3);
}

/* Lightbox Modal */
.inner-gallery-section .lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(11, 17, 26, 0.95);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.inner-gallery-section .lightbox-modal.active {
  display: flex;
}

.inner-gallery-section .lightbox-content-wrap {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: var(--color-industrial-navy);
  border: 1px solid rgba(245, 184, 0, 0.4);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.inner-gallery-section .lightbox-img-box {
  width: 100%;
  max-height: 70vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inner-gallery-section .lightbox-img-box img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.inner-gallery-section .lightbox-info-bar {
  padding: 20px 24px;
  background: var(--color-industrial-navy);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.inner-gallery-section .lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(11, 17, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.inner-gallery-section .lightbox-close-btn:hover {
  background: var(--color-primary-yellow);
  color: var(--color-industrial-black);
}

/* Contact Info Card */
.inner-gallery-section .contact-info-card {
  background: var(--color-industrial-navy);
  color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 32px;
  height: 100%;
  border-left: 4px solid var(--color-primary-yellow);
}

.inner-gallery-section .contact-info-card h3 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.inner-gallery-section .contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.inner-gallery-section .contact-info-item i {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(245, 184, 0, 0.15);
  border: 1px solid rgba(245, 184, 0, 0.3);
  color: var(--color-primary-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.inner-gallery-section .contact-info-label,
.inner-gallery-section .contact-info-card .contact-info-label,
.inner-gallery-section .contact-info-card .contact-info-item > div > div:first-child,
.inner-gallery-section .contact-info-card .text-muted.small {
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--color-primary-yellow) !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.inner-gallery-section .contact-info-value {
  color: #E2E8F0;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.inner-gallery-section .contact-info-value a {
  color: #FFF;
  text-decoration: underline;
  text-decoration-color: rgba(245, 184, 0, 0.5);
}

.inner-gallery-section .contact-info-value a:hover {
  color: var(--color-primary-yellow);
}

/* Inner Page FAQ Accordion */
.inner-gallery-section .accordion-custom .accordion-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.inner-gallery-section .accordion-custom .accordion-button {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--color-industrial-navy);
  background-color: var(--color-white);
  padding: 18px 24px;
  box-shadow: none;
}

.inner-gallery-section .accordion-custom .accordion-button:not(.collapsed) {
  background-color: var(--color-primary-yellow-light);
  color: var(--color-industrial-navy);
  border-bottom: 1px solid rgba(245, 184, 0, 0.3);
}

.inner-gallery-section .accordion-custom .accordion-button::after {
  background-size: 14px;
}

.inner-gallery-section .accordion-custom .accordion-body {
  padding: 20px 24px;
  font-size: var(--font-size-sm);
  color: var(--color-industrial-gray);
  line-height: 1.65;
  background-color: var(--color-white);
}

/* Inner Page Quick Stats */
.inner-gallery-section .inner-stat-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
}

.inner-gallery-section .inner-stat-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  color: var(--color-industrial-navy);
  line-height: 1;
  margin-bottom: 8px;
}

.inner-gallery-section .inner-stat-num span {
  color: var(--color-primary-yellow);
}

.inner-gallery-section .inner-stat-text {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-industrial-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

/* Call to Action Button Full Width in Mobile View */
@media (max-width: 767px) {
  section:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1),
  .inner-gallery-section .gallery-cta-btns {
    width: 100% !important;
    flex-direction: column !important;
  }

  section:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > a,
  section:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > button,
  .inner-gallery-section .gallery-cta-btns > a,
  .inner-gallery-section .gallery-cta-btns > button {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  footer#mainFooter > div > div:nth-of-type(2) > div:nth-of-type(2),
  footer#mainFooter .footer-bottom > div:last-child {
    width: 100% !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  footer#mainFooter:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > a:nth-of-type(1),
  footer#mainFooter:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > a:nth-of-type(2),
  footer#mainFooter:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > a:nth-of-type(3),
  footer#mainFooter:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(2) > a,
  .inner-gallery-section .footer-bottom a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    box-sizing: border-box !important;
  }
}



/* ---------- Preparation page: article + right-hand sidebar ---------- */
/* The sidebar column itself sticks (reference: sticky, top 100px) while the article scrolls */
.inner-page-sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* Legacy Protostar ".small" is 11px; reference uses Bootstrap's .small (0.875em) */
.inner-page-sidebar .small,
#content.inner-page-main .small {
  font-size: 0.875em;
}

.inner-page-sidebar .inner-specs-box {
  background: var(--color-industrial-navy);
  color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: 32px;
  border-left: 4px solid var(--color-primary-yellow);
}

.inner-page-sidebar .inner-specs-box h4,
.inner-page-sidebar .inner-specs-box .text-white {
  color: var(--color-white);
}

.inner-page-sidebar .inner-specs-box .text-light {
  color: #E2E8F0 !important;
}

.inner-page-sidebar .inner-specs-label {
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.inner-page-sidebar .inner-specs-box a.text-warning:hover {
  color: var(--color-primary-yellow-hover);
}

.inner-page-sidebar .card.bg-light h5 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
}

@media (max-width: 991.98px) {
  .inner-page-sidebar {
    position: static;
  }
}

/* ---------- Typography reset for inner pages (overrides legacy Protostar "#content h4" grey bars) ---------- */
#content.inner-page-main h1,
#content.inner-page-main h2,
#content.inner-page-main h3,
#content.inner-page-main h4,
#content.inner-page-main h5,
#content.inner-page-main h6 {
  background: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-industrial-navy);
  line-height: 1.25;
  letter-spacing: -0.5px;
  text-transform: none;
}

#content.inner-page-main h1 { font-size: 42px; }
#content.inner-page-main h2 { font-size: 34px; }
#content.inner-page-main h3 { font-size: 28px; }
#content.inner-page-main h4 { font-size: 24px; }
#content.inner-page-main h5 { font-size: 20px; }
#content.inner-page-main h6 { font-size: 16px; }

/* Bootstrap heading classes keep their own sizes (they must beat the element rules above) */
#content.inner-page-main .h1 { font-size: 2.5rem; }
#content.inner-page-main .h2 { font-size: 2rem; }
#content.inner-page-main .h3 { font-size: 1.75rem; }
#content.inner-page-main .h4 { font-size: 1.5rem; }
#content.inner-page-main .h5 { font-size: 1.25rem; }
#content.inner-page-main .h6 { font-size: 1rem; }

#content.inner-page-main p,
.inner-page-sidebar p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-industrial-gray);
  margin-bottom: 16px;
}

#content.inner-page-main p.small,
.inner-page-sidebar p.small {
  font-size: 0.875em;
}

#content.inner-page-main ul,
#content.inner-page-main ol {
  padding-left: 0;
}

#content.inner-page-main .fs-4 {
  font-size: 1.5rem !important;
}

#content.inner-page-main .fs-5 {
  font-size: 1.25rem !important;
}

#content.inner-page-main p,
.inner-page-sidebar p,
.inner-page-main .list-unstyled li {
  font-family: var(--font-body);
}

/* Only the sidebar column is sticky; the inner module wrapper stays in normal flow */
.inner-page-sidebar .position-sticky {
  position: static;
}

/* ---------- Project Gallery page (JoomGallery category view, menu 107) ---------- */
.gallery-page-main .jg-images {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  height: auto !important;
  margin: 0;
}

.gallery-page-main .jg-image {
  position: relative !important;
  float: none !important;
  width: auto !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gallery-page-main .jg-image-thumbnail {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-industrial-navy);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 14px rgba(11, 17, 26, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-page-main .jg-image:hover .jg-image-thumbnail {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 17, 26, 0.18);
  border-color: var(--color-primary-yellow);
}

.gallery-page-main .jg-image-caption-hover {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
}

.gallery-page-main .jg-image-caption-hover a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-page-main .jg-image-caption-hover::after {
  content: "\f002  View Project";
  font-family: "Font Awesome 6 Free", var(--font-body);
  font-weight: 700;
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--overlay-badge-yellow);
  background-color: rgba(245, 184, 0, 0.95);
  color: var(--color-industrial-black);
  font-size: 12px;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.gallery-page-main .jg-image:hover .jg-image-caption-hover::after {
  opacity: 1;
  transform: translateY(0);
}

.gallery-page-main .jg-image-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-page-main .jg-image:hover .jg-image-thumb {
  transform: scale(1.06);
}

/* Title sits on the image like the reference overlay */
.gallery-page-main .jg-image-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 2;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(11, 17, 26, 0.95) 0%, rgba(11, 17, 26, 0.4) 60%, rgba(11, 17, 26, 0.05) 100%);
  text-align: left;
  pointer-events: none;
}

.gallery-page-main .jg-image-caption a {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: auto;
}

.gallery-page-main .jg-image-caption a:hover {
  color: var(--color-primary-yellow);
}

@media (max-width: 991.98px) {
  .gallery-page-main .jg-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .gallery-page-main .jg-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .gallery-page-main .jg-image-thumbnail {
    height: 200px;
  }
}

/* ---------- Gallery bottom call-to-action (from JoomGallery category 3 description) ---------- */
.gallery-cta-section {
  padding: 0 0 72px;
  font-family: var(--font-body);
}

.gallery-cta-section .gallery-cta-box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}

.gallery-cta-section h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-industrial-navy);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.gallery-cta-section p {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 24px;
}

.gallery-cta-section .gallery-cta-btns {
  display: flex;
}

@media (max-width: 767.98px) {
  .gallery-cta-section {
    padding-bottom: 48px;
  }
}

/* JoomGallery prints the category description above the grid; the bottom CTA section shows it instead */
.gallery-page-main .gallery-cta-box {
  display: none;
}

/* Only the image grid stays inside the gallery page; JoomGallery's own heading, toolbar, "Images"
   title and top description are hidden (the bottom CTA section replaces the description). */
.gallery-page-main > *:not(.jg-gallery) {
  display: none !important;
}

.gallery-page-main .jg-gallery {
  margin: 0;
}

/* ---------- Gallery card details (reference: radius, left-aligned title, search-icon "View Project" badge) ---------- */
.gallery-page-main .jg-image-thumbnail,
.gallery-page-main .jg-image-caption-hover,
.gallery-page-main .jg-image-thumb {
  border-radius: 8px !important;
}

.gallery-page-main .jg-image-caption {
  text-align: left !important;
  padding: 0 16px 16px !important;
  background: linear-gradient(to top, rgba(11, 17, 26, 0.95) 0%, rgba(11, 17, 26, 0.6) 55%, rgba(11, 17, 26, 0) 100%) !important;
  border-radius: 0 0 8px 8px;
}

.gallery-page-main .jg-image-caption a {
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
}

.gallery-page-main .jg-image-caption-hover::after {
  content: "\f002  View Project";
  top: auto;
  bottom: 52px;
  left: 16px;
  right: auto;
  padding: 0;
  background: none !important;
  color: var(--color-primary-yellow);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none;
}

.gallery-page-main .jg-image-caption-hover::after {
  transition: none;
}

.gallery-page-main .jg-image:hover .jg-image-caption-hover::after {
  opacity: 1 !important;
}

/* ---------- Gallery card overlay: exact reference values (.gallery-item-overlay / -badge / -title) ---------- */
.gallery-page-main .jg-image-thumbnail {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-page-main .jg-image:hover .jg-image-thumbnail {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Full-card overlay (reference .gallery-item-overlay) */
.gallery-page-main .jg-image-caption {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 !important;
  padding: 20px !important;
  border-radius: 8px !important;
  background: linear-gradient(to top, rgba(11, 17, 26, 0.95) 0%, rgba(11, 17, 26, 0.4) 60%, rgba(11, 17, 26, 0.1) 100%) !important;
  opacity: 0.9;
  text-align: left !important;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery-page-main .jg-image:hover .jg-image-caption {
  opacity: 1;
}

/* Badge (reference .gallery-item-badge): search icon + "View Project" */
.gallery-page-main .jg-image-caption::before {
  content: "\f002  View Project";
  display: block;
  font-family: "Font Awesome 6 Free", "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary-yellow);
  margin-bottom: 6px;
}

/* Title (reference .gallery-item-title) */
.gallery-page-main .jg-image-caption a {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.3;
  color: var(--color-white) !important;
  margin-bottom: 4px;
  pointer-events: auto;
}

/* The old hover badge is replaced by the in-overlay badge above */
.gallery-page-main .jg-image-caption-hover::after {
  content: none !important;
  display: none !important;
}

/* "View Project" badge on gallery cards: 10px, bold, 1px letter spacing */
.gallery-page-main .jg-image-caption::before {
  font-size: 10px !important;
  font-weight: 900;
  letter-spacing: 1px !important;
}

/* ---------- Gallery lightbox (reference .lightbox-modal) ---------- */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(11, 17, 26, 0.95);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content-wrap {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: #0F172A;
  border: 1px solid rgba(245, 184, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-img-box {
  width: 100%;
  max-height: 70vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-box img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-info-bar {
  padding: 20px 24px;
  background: #0F172A;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.lightbox-info-bar h4 {
  font-family: 'Montserrat', 'Barlow', sans-serif;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 0;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(11, 17, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #F5B800;
  color: #0B111A;
}

/* ---------- Contact us page (hero + contact info + JCForms form + map) ---------- */
.contact-page-section {
  --color-industrial-navy: #0F172A;
  --color-primary-yellow: #F5B800;
  --color-industrial-black: #0B111A;
  --color-white: #FFFFFF;
  --font-heading: 'Montserrat', 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.contact-page-section .contact-info-card {
  background: var(--color-industrial-navy);
  color: var(--color-white);
  border-radius: 8px;
  padding: 32px;
  height: 100%;
  border-left: 4px solid var(--color-primary-yellow);
}

.contact-page-section .contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 24px;
}

.contact-page-section .contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-page-section .contact-info-item > i {
  color: var(--color-primary-yellow);
  font-size: 24px;
  width: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-page-section .contact-info-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary-yellow);
  margin-bottom: 4px;
  display: block;
}

.contact-page-section .contact-info-value {
  color: #E2E8F0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.contact-page-section .contact-info-value a {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Form card (reference: white card, border, shadow, rounded) */
.contact-form-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 48px;
  }
}

.contact-form-card .jcforms-split {
  display: block;
}

.contact-form-card .jcforms-split-intro {
  margin-bottom: 8px;
}

.contact-form-card .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: rgba(245, 184, 0, 0.18);
  color: var(--color-industrial-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  border-left: 3px solid var(--color-primary-yellow);
}

.contact-form-card h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-industrial-navy);
  line-height: 1.25;
}

.contact-form-card .jcforms-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 0;
  /* margin-top: 24px; */
  margin-bottom: 0px !important;
}

.contact-form-card .jcforms-field {
  margin-bottom: 20px;
  min-width: 0;
}

.contact-form-card .jcforms-field-textarea,
.contact-form-card .jcforms-field-submit {
  grid-column: 1 / -1;
}

.contact-form-card .form-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--color-industrial-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.contact-form-card .form-label .text-danger {
  color: #DC2626 !important;
}

.contact-form-card .form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-industrial-navy);
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  box-shadow: none;
}

.contact-form-card .form-control:focus {
  border-color: var(--color-primary-yellow);
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.2);
  background-color: #FFFFFF;
}

.contact-form-card textarea.form-control {
  min-height: 140px;
}

.contact-form-card .jcforms-field-submit button {
  width: 100%;
  padding: 16px 24px;
  background-color: var(--color-primary-yellow);
  border: 1px solid var(--color-primary-yellow);
  border-radius: 4px;
  color: var(--color-industrial-black);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form-card .jcforms-field-submit button:hover {
  background-color: #E0A600;
  border-color: #E0A600;
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .contact-form-card .jcforms-form {
    grid-template-columns: 1fr;
  }
}

/* JCForms split layout: the intro is plain text on the white card (no dark JCForms panel) */
.contact-form-card .jcforms-split,
.contact-form-card .jcforms-split-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 0;
}

.contact-form-card .jcforms-split-intro {
  background: transparent;
  color: var(--color-industrial-navy);
  padding: 0;
  gap: 0;
  flex: none;
  min-width: 0;
  display: block;
}

.contact-form-card .jcforms-split-intro .jcforms-split-content {
  display: block;
}

.contact-form-card .jcforms-split-intro p {
  color: #64748B;
}

/* Info column stretches to the form height (reference: both cards equal height) */
.contact-page-section .col-lg-5 > .mod-custom {
  height: 100%;
}

/* JCForms wraps the fields in .jcforms-page: that wrapper is the 2-column grid (reference form layout) */
.contact-form-card .jcforms-form {
  display: block;
  /* margin-top: 24px; */
  margin-bottom: 0px !important;
}

.contact-form-card .jcforms-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 0;
  width: 100%;
}

.contact-form-card .jcforms-page .jcforms-field {
  grid-column: auto;
}

.contact-form-card .jcforms-page .jcforms-field-textarea,
.contact-form-card .jcforms-page .jcforms-field-submit {
  grid-column: 1 / -1;
}

/* Send button: yellow, full width, no JCForms/Bootstrap blue gradient */
.contact-form-card .jcforms-field-submit button,
.contact-form-card .jcforms-field-submit button:hover,
.contact-form-card .jcforms-field-submit button:focus {
  background-image: none !important;
  background-color: var(--color-primary-yellow) !important;
  border-color: var(--color-primary-yellow) !important;
  color: var(--color-industrial-black) !important;
}

@media (max-width: 767.98px) {
  .contact-form-card .jcforms-page {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Office map heading: larger, like the reference "Our Office Location" */
.contact-page-section .row.mt-5 h4 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 4px;
}

.contact-page-section .row.mt-5 .text-muted {
  font-size: 14px;
  color: #64748B;
}


/* Left column stretches to the form height; its module wrapper and card fill the column */
.contact-page-section .row.g-5 > .col-lg-5 {
  display: flex;
  flex-direction: column;
}

.contact-page-section .row.g-5 > .col-lg-5 > .mod-custom {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.contact-page-section .row.g-5 > .col-lg-5 > .mod-custom > .contact-info-card {
  flex: 1 1 auto;
  height: auto;
}

/* ---------- Contact: JCForms split module = left contact card (intro) + right form ---------- */
.contact-page-section .contact-form-card {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.contact-page-section .contact-form-card .jcforms-split {
  display: flex;
  align-items: stretch;
  gap: 32px;
}

.contact-page-section .contact-form-card .jcforms-split-intro {
  flex: 0 0 calc((100% - 32px) * 5 / 12);
  max-width: calc((100% - 32px) * 5 / 12);
  min-width: 0;
  background: var(--color-industrial-navy) !important;
  color: #FFFFFF;
  border-left: 4px solid var(--color-primary-yellow);
  border-radius: 8px;
  padding: 32px;
  display: block;
}

.contact-page-section .contact-form-card .jcforms-split-intro .contact-info-card {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  height: auto;
}

.contact-page-section .contact-form-card .jcforms-split-form {
  flex: 1 1 auto;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

@media (min-width: 768px) {
  .contact-page-section .contact-form-card .jcforms-split-form {
    padding: 48px;
  }
}

@media (max-width: 991.98px) {
  .contact-page-section .contact-form-card .jcforms-split {
    flex-direction: column;
    gap: 24px;
  }

  .contact-page-section .contact-form-card .jcforms-split-intro {
    flex: none;
    max-width: none;
    width: 100%;
  }
}

.contact-page-section .contact-form-card .jcforms-split {
  flex-wrap: nowrap;
}

@media (max-width: 991.98px) {
  .contact-page-section .contact-form-card .jcforms-split {
    flex-wrap: wrap;
  }
}

.contact-page-section .contact-form-card .jcforms-split-intro,
.contact-page-section .contact-form-card .jcforms-split-form {
  box-sizing: border-box;
  align-self: stretch;
}

.contact-page-section .contact-form-card .jcforms-split-intro {
  margin: 0;
}

/* Contact form: inline thank-you message (shown above the form after submit) with close (X) button */
.contact-form-card .jcforms-thankyou-inline {
  position: relative;
  margin: 0 0 24px;
  padding: 20px 56px 20px 24px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-left: 4px solid #16A34A;
  border-radius: 8px;
  color: #0F172A;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

.contact-form-card .jcforms-thankyou-inline p {
  margin-bottom: 0;
  color: #0F172A;
}

.contact-form-card .jcforms-thankyou-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 50%;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-form-card .jcforms-thankyou-close:hover,
.contact-form-card .jcforms-thankyou-close:focus-visible {
  background: #F5B800;
  border-color: #F5B800;
  color: #0B111A;
}

/* Contact form: popup thank-you (JCForms modal) keeps the standard close (X) button, styled like the site */
.jcforms-thankyou-modal .modal-content {
  border: 1px solid rgba(245, 184, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
}

.jcforms-thankyou-modal .modal-header {
  border-bottom: 1px solid #E2E8F0;
}

.jcforms-thankyou-modal .modal-title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 800;
  color: #0F172A;
}

.jcforms-thankyou-modal .modal-footer .btn-primary {
  background-color: #F5B800;
  border-color: #F5B800;
  color: #0B111A;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* "Open in Google Maps" button: same as the reference (Bootstrap 5 .btn-outline-dark .btn-sm) */
.contact-page-section .row.mt-5 .btn-outline-dark {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #212529;
  background-color: transparent;
  border: 1px solid #212529;
  border-radius: 0.375rem;
  background-image: none;
  text-shadow: none;
  box-shadow: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.contact-page-section .row.mt-5 .btn-outline-dark:hover,
.contact-page-section .row.mt-5 .btn-outline-dark:focus,
.contact-page-section .row.mt-5 .btn-outline-dark:focus-visible,
.contact-page-section .row.mt-5 .btn-outline-dark:active {
  color: #FFFFFF;
  background-color: #212529;
  background-image: none;
  border-color: #212529;
  text-shadow: none;
  box-shadow: none;
}

.contact-page-section .row.mt-5 .btn-outline-dark:hover span,
.contact-page-section .row.mt-5 .btn-outline-dark:hover i {
  color: #FFFFFF;
}

/* Contact inline success message: Bootstrap alert-success look (same as the reference site) */
.contact-form-card .jcforms-thankyou-inline {
  background: var(--bs-success-bg-subtle, #d1e7dd);
  border: 1px solid var(--bs-success-border-subtle, #a3cfbb);
  border-left: 1px solid var(--bs-success-border-subtle, #a3cfbb);
  color: var(--bs-success-text-emphasis, #0f5132);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-form-card .jcforms-thankyou-inline h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #0F172A;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.contact-form-card .jcforms-thankyou-inline p {
  font-size: 14px;
}

/* JCForms popup thank-you: the legacy Protostar ".modal.fade" rule moved it off-screen (top:-100px, opacity 0).
   Put the Bootstrap 5 modal back in the viewport so the popup and its close (X) button are visible. */
.jcforms-thankyou-modal.modal {
  position: fixed;
  top: 0 !important;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1055;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.jcforms-thankyou-modal.modal.fade {
  opacity: 1 !important;
  top: 0 !important;
  transform: none !important;
}

.jcforms-thankyou-modal .modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 500px;
  transform: none !important;
  top: auto !important;
}

.jcforms-thankyou-modal .modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.jcforms-thankyou-modal .modal-content {
  background: #FFFFFF;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.jcforms-thankyou-modal .modal-header .btn-close {
  margin: 0;
  opacity: 0.8;
}

.jcforms-thankyou-backdrop.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  background-color: #000;
  opacity: 0.5;
}
/* Keep the close (X) button inside the success message */
.contact-form-card .jcforms-thankyou-inline {
  position: relative;
  padding-right: 56px;
}

.contact-page-section .contact-form-card .mod-jcforms .jcforms-page-thankyou-message.jcforms-thankyou-inline {
  position: relative;
  padding-right: 56px;
}

/* Contact form intro is a JCForms free-text field (grid row across the form) */
.contact-form-card .jcforms-field-freetext {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.contact-form-card .jcforms-field-freetext p.small {
  font-size: 14px;
}

.contact-form-card .jcforms-page .jcforms-field.jcforms-field-freetext {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.contact-form-card .jcforms-field-freetext .jcforms-freetext p.text-muted {
  color: #64748B !important;
}

/* About Us: lead paragraph and the small tracking heading, same as the reference */
#content.inner-page-main .lead {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 500;
}

.inner-page-section .tracking-wider {
  letter-spacing: 0.05em;
}

@media (max-width: 767.98px) {
  #content.inner-page-main .lead {
    font-size: 17px;
  }
}

#content.inner-page-main h4.tracking-wider {
  letter-spacing: 0.05em;
}

/* Epoxy page: a divider line between the article and the "Our Projects" gallery */
.inner-gallery-section.inner-gallery-bordered {
  border-top: 1px solid #E2E8F0;
  padding-top: 56px;
}

/* Divider above "Our Projects": inside the container width (like the reference), not full-bleed */
.inner-gallery-section.inner-gallery-bordered {
  border-top: 0;
  /* padding-top: 0; */
}

.inner-gallery-section.inner-gallery-bordered > .container {
  border-top: 1px solid #E2E8F0;
  padding-top: 56px;
}

/* JCForms inline thank-you on any form: close (X) button inside the message */
.jcforms-thankyou-inline.jcforms-page-thankyou-message:has(> .jcforms-thankyou-close) {
  position: relative !important;
  padding-right: 56px;
}

.jcforms-thankyou-inline > .jcforms-thankyou-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 50%;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.jcforms-thankyou-inline > .jcforms-thankyou-close:hover,
.jcforms-thankyou-inline > .jcforms-thankyou-close:focus-visible {
  background: #F5B800;
  border-color: #F5B800;
  color: #0B111A;
}

/* Header mega menu: the submenu item of the open page is highlighted like the active menu item */
.mega-submenu-link.active,
.mega-submenu-link.active:focus,
.mega-submenu-link.active:active {
  background-color: rgba(245, 184, 0, 0.12);
  color: var(--slm-yellow);
}

.mega-submenu-link.active i {
  color: var(--slm-yellow);
}

/* Mobile: CTA button row in article content lines up with the 24px column inset used above it. */
@media (max-width: 991.98px) {
  #content .container > .d-flex.flex-wrap.gap-3 {
    padding-left: 24px;
    padding-right: 24px;
  }
}
