@import url('variables.css');

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-dark);
  font-family: var(--font-main);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-wide {
  max-width: var(--container-max);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--white);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 174, 0, 0.3);
}

.btn-navy {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-navy:hover {
  background-color: var(--primary-blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 62, 132, 0.3);
}

/* ==========================================================================
   Header: Top Information Panel
   ========================================================================== */
.top-panel {
  background-color: var(--topbar-bg);
  color: #cccccc;
  font-size: 13px;
  border-bottom: 1px solid #1a1a1a;
  padding: 8px 0;
}

.top-panel__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-panel__info {
  display: flex;
  align-items: center;
}

.top-panel__message {
  display: flex;
  align-items: center;
  color: #aaaaaa;
}

.top-panel__message .info-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-panel__message .material-icons {
  font-size: 17px;
  color: var(--accent-gold);
}

.top-panel__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-panel__social a {
  color: #999999;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.top-panel__social a:hover {
  color: var(--white);
  background-color: var(--accent-gold);
}

/* ==========================================================================
   Header: Main Blue Navigation Section
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 100;
  background-color: var(--primary-blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-container {
  padding: 10px 0;
}

.header-container__flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-branding a {
  display: inline-block;
}

.site-branding img {
  max-height: 70px;
  width: auto;
  border-radius: 4px;
  background: #ffffff;
  padding: 4px;
}

.header_caption {
  display: flex;
  align-items: center;
}

/* Main Navigation Menu */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu > li {
  position: relative;
  margin: 0;
}

.nav-menu > li > a {
  display: block;
  padding: 24px 18px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: capitalize;
  transition: var(--transition);
  position: relative;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 18px;
  right: 18px;
  height: 2px;
  background-color: var(--accent-gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-menu > li:hover > a,
.nav-menu > li.current-menu-item > a {
  color: var(--accent-gold);
}

.nav-menu > li.current-menu-item > a {
  background-color: rgba(0, 0, 0, 0.22);
}

.nav-menu > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* Dropdown styling */
.nav-menu li.menu-item-has-children > a {
  padding-right: 28px;
}

.nav-menu li.menu-item-has-children > a::before {
  content: '\f107';
  font-family: 'FontAwesome';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: transform 0.2s ease;
}

.nav-menu li.menu-item-has-children:hover > a::before {
  transform: translateY(-50%) rotate(180deg);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 310px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 6px 6px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 1000;
  border-top: 3px solid var(--accent-gold);
}

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  margin: 0;
}

.sub-menu li a {
  display: block;
  padding: 11px 22px;
  color: var(--heading-dark);
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid #f2f2f2;
  transition: var(--transition);
}

.sub-menu li:last-child a {
  border-bottom: none;
}

.sub-menu li a:hover {
  background-color: #fafafa;
  color: var(--accent-gold);
  padding-left: 26px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Page Hero Banner (Internal Pages)
   ========================================================================== */
.page-hero {
  position: relative;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 100px 0;
  text-align: left;
  color: var(--white);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 50%, rgba(15, 23, 42, 0.25) 100%);
}

.hero-exhibitions {
  background-color: #20074f;
  background-position: center right;
}

.hero-exhibitions::before {
  background: linear-gradient(90deg, rgba(32, 7, 79, 0.9) 0%, rgba(32, 7, 79, 0.62) 45%, rgba(32, 7, 79, 0.12) 100%);
}

.hero-awards {
  background-color: #5e6629;
  background-position: center right;
}

.hero-awards::before {
  background: linear-gradient(90deg, rgba(94, 102, 41, 0.9) 0%, rgba(94, 102, 41, 0.62) 45%, rgba(94, 102, 41, 0.12) 100%);
}

.hero-machinery {
  background-color: #1a1a1a;
  background-position: center;
}

.hero-machinery::before {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.2) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-hero__content {
  max-width: 600px;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.page-hero p {
  color: #eeeeee;
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

/* Empty content container for Company Profile & Blog */
.empty-page-wrapper {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 60px 20px;
}

.empty-page-placeholder {
  text-align: center;
  max-width: 600px;
  color: #aaaaaa;
}

.empty-page-placeholder h3 {
  color: #666666;
  margin-bottom: 10px;
}

/* ==========================================================================
   Home Content Sections (content1 & content2 & content3)
   ========================================================================== */
.home-content-section {
  padding: 90px 0;
  background-color: var(--white);
}

.home-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 50px;
}

.section-blurb {
  margin-bottom: 45px;
}

.section-blurb__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.section-blurb__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-blurb__icon img {
  max-width: 100%;
  max-height: 100%;
}

.section-blurb__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--heading-dark);
  margin-bottom: 0;
}

.section-blurb__title a {
  color: var(--heading-dark);
}

.section-blurb__title a:hover {
  color: var(--accent-gold);
}

.section-blurb__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* DF Ball Pen Table */
.machinery-table-wrap {
  margin: 25px 0;
  overflow-x: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.machinery-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: #f6faf6;
}

.machinery-table th,
.machinery-table td {
  padding: 12px 16px;
  border: 1px solid #e0ede0;
  text-align: left;
  vertical-align: middle;
}

.machinery-table tr:nth-child(even) {
  background-color: #edf5ed;
}

.machinery-table strong {
  color: #1e3d1e;
}

/* Video embed container */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  margin: 24px 0;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-dark);
  margin-top: 8px;
  margin-bottom: 20px;
}

/* Equipment check lists */
.styled-list {
  list-style: none;
  margin-left: 0;
  margin-bottom: 24px;
}

.styled-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.styled-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

.styled-list.bullet-blue li::before {
  content: '•';
  color: var(--primary-blue);
  font-size: 20px;
  line-height: 14px;
}

/* Centrifugal navy section in home */
.centrifugal-home-card {
  background: #fbfbfb;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  padding: 24px;
  margin-top: 30px;
}

.centrifugal-home-card h5 {
  color: #000080;
  text-decoration: underline;
  margin-bottom: 12px;
}

.centrifugal-home-card ul {
  list-style: disc;
  margin-left: 20px;
}

.centrifugal-home-card li {
  color: #000080;
  font-size: 14px;
  margin-bottom: 6px;
}

/* ==========================================================================
   Exhibitions & Awards Galleries
   ========================================================================== */
.gallery-section {
  padding: 70px 0;
}

.gallery-section.bg-light {
  background-color: var(--bg-light);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 45px;
}

.section-title-wrap h2 {
  font-size: 2.2rem;
  color: var(--heading-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-title-wrap h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
}

.gallery-section {
  padding: 60px 0;
  background-color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gallery-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.section-divider {
  border: 0;
  border-top: 1px solid #e0e0e0;
  margin: 55px 0;
}

.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

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

.award-plaques-grid .gallery-item img {
  height: 380px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 8px;
}

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

.gallery-item__caption {
  padding: 14px 12px;
  font-size: 13.5px;
  color: var(--heading-dark);
  text-align: center;
  background: #ffffff;
  font-weight: 500;
  border-top: 1px solid #f0f0f0;
}

/* CTA: Tell Us What Are You Looking For */
.tell-us-cta {
  background-color: var(--bg-light);
  padding: 70px 0;
  text-align: center;
  border-top: 1px solid #eeeeee;
}

.tell-us-cta h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--heading-dark);
  margin-bottom: 10px;
}

.tell-us-cta p {
  font-size: 17px;
  color: var(--primary-blue);
  font-weight: 500;
  margin-bottom: 24px;
}

/* ==========================================================================
   Contacts Page
   ========================================================================== */
.contact-section {
  padding: 80px 0;
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
}

.contact-info-card {
  padding-right: 20px;
}

.contact-info-card h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--heading-dark);
}

.contact-block {
  margin-bottom: 24px;
}

.contact-block h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--heading-dark);
  margin-bottom: 6px;
}

.contact-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-block a {
  color: var(--primary-blue);
}

.contact-block a:hover {
  color: var(--accent-gold);
}

.contact-form-card h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--heading-dark);
}

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

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--text-dark);
  background-color: #ededed;
  border: 1px solid transparent;
  border-radius: 3px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  background-color: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-alert {
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.form-alert.alert-error {
  background-color: #fde8e8;
  color: #c81e1e;
  border: 1px solid #f8b4b4;
  display: block;
}

.form-alert.alert-success {
  background-color: #def7ec;
  color: #03543f;
  border: 1px solid #bcf0da;
  display: block;
}

/* Google Map */
.map-container {
  width: 100%;
  height: 450px;
  border: none;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Machinery Parent Page Cards
   ========================================================================== */
.machinery-parent-section {
  padding: 60px 0;
  background-color: var(--white);
}

.machinery-category-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.machinery-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #d8d8d8;
}

.machinery-category-card:nth-child(even) {
  grid-template-columns: 7fr 5fr;
}

.machinery-category-card:nth-child(even) .machinery-card-image {
  order: 2;
}

.machinery-card-image {
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
}

.machinery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.machinery-category-card:hover .machinery-card-image img {
  transform: scale(1.04);
}

.machinery-card-content {
  padding: 40px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.machinery-card-content h3 {
  font-size: 1.75rem;
  color: var(--heading-dark);
  margin-bottom: 14px;
  font-weight: 600;
}

.machinery-card-content p {
  color: #555555;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
}

.machinery-card-content .btn {
  align-self: flex-start;
  margin-top: 5px;
}

/* Styled Lists for Bullet Points */
.styled-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 22px;
}

.styled-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: #444444;
  line-height: 1.55;
}

.styled-list.bullet-blue li::before {
  content: '▪';
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--primary-blue);
  font-size: 15px;
  line-height: 22px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg);
  color: #999999;
  font-size: 14px;
}

.footer-widgets {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--footer-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 5fr;
  gap: 40px;
}

.footer-widget h4 {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-widget p {
  color: #888888;
  font-size: 14px;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  margin-left: 0;
}

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

.footer-links a {
  color: #888888;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

/* Subscribe widget */
.subscribe-form {
  display: flex;
  margin-top: 15px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 14px;
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  border-radius: 3px 0 0 3px;
  outline: none;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--accent-gold);
}

.subscribe-form button {
  padding: 12px 20px;
  background-color: var(--accent-gold);
  color: var(--white);
  font-weight: 600;
  border: none;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  transition: var(--transition);
}

.subscribe-form button:hover {
  background-color: var(--accent-gold-hover);
}

.footer-copyright {
  padding: 24px 0;
  background-color: #070707;
}

.footer-copyright__flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright p {
  margin-bottom: 0;
  color: #666666;
  font-size: 13px;
}

.footer-logo {
  max-height: 35px;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: #777777;
  font-size: 14px;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Machinery Category & Detail Page Enhancements (Stage 1A)
   ========================================================================== */

/* Button Outline variant */
.btn-outline {
  display: inline-block;
  padding: 10px 22px;
  background-color: transparent;
  color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(32, 7, 79, 0.15);
}

.machinery-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 15px;
}

/* Nested Navigation Dropdown (Desktop) */
.sub-menu li.menu-item-has-children {
  position: relative;
}

.sub-menu li.menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sub-menu .sub-menu-nested {
  position: absolute;
  top: -10px;
  left: 100%;
  min-width: 320px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s ease;
  z-index: 1001;
  border-top: 3px solid var(--accent-gold);
}

.sub-menu li:hover > .sub-menu-nested {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Machinery Detail Product Grid */
.machinery-detail-section {
  padding: 60px 0 80px;
  background-color: var(--white);
}

.machinery-intro-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 25px;
}

.machinery-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
  margin: 35px 0 50px;
}

.machinery-product-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.machinery-item-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.machinery-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #d0d0d0;
}

.machinery-item-card__image {
  height: 220px;
  overflow: hidden;
  background-color: #f7f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f0f0f0;
}

.machinery-item-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.machinery-item-card:hover .machinery-item-card__image img {
  transform: scale(1.05);
}

.machinery-item-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.machinery-item-card__title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--heading-dark);
  margin-bottom: 14px;
  line-height: 1.45;
}

.machinery-item-card__actions {
  margin-top: auto;
  padding-top: 12px;
}

/* Centrifugal Technical Specification Table */
.tech-spec-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 35px 0 55px;
  border: 1px solid #dce8dc;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.tech-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: center;
  background-color: #ffffff;
  min-width: 950px;
}

.tech-spec-table th,
.tech-spec-table td {
  padding: 11px 14px;
  border: 1px solid #dce8dc;
  vertical-align: middle;
}

.tech-spec-table thead th {
  background-color: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.tech-spec-table th.param-col {
  text-align: left;
  background-color: #f3f7f3;
  color: #1a381a;
  font-weight: 600;
  white-space: nowrap;
}

.tech-spec-table th.unit-col {
  background-color: #f7faf7;
  color: #555555;
  font-weight: 500;
  font-size: 13px;
  width: 90px;
}

.tech-spec-table tbody tr:nth-child(even) {
  background-color: #f9fbf9;
}

.tech-spec-table tbody tr:hover {
  background-color: #eef6ee;
}

/* Fluid Dispenser Questionnaire Callout Box */
.questionnaire-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6efff 100%);
  border-left: 5px solid var(--primary-blue);
  padding: 30px 35px;
  border-radius: 6px;
  margin: 45px 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  box-shadow: 0 4px 15px rgba(32, 7, 79, 0.05);
}

.questionnaire-box__content h3 {
  margin-bottom: 8px;
  color: var(--primary-blue);
  font-size: 1.35rem;
  font-weight: 600;
}

.questionnaire-box__content p {
  color: #444444;
  margin-bottom: 0;
  font-size: 14.5px;
  line-height: 1.6;
}