/* ================================
   Common Styles
   ================================ */

/* Clean link styling for support pages */
.product-series p a,
.support-content p a {
    color: #2d5a87;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.product-series p a:hover,
.support-content p a:hover {
    color: #1e3f5f;
    border-bottom-color: #2d5a87;
}

/* Common Styles integrated into each section */
.metallographic-procedures,
.procedures-table {
    margin: 0 auto;
    padding: 40px 20px;
    max-width: 1200px;
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    color: #333;
}

.metallographic-procedures h2,
.procedures-table h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
    position: relative;
}

.metallographic-procedures h2::after,
.procedures-table h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #004370;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ================================
   Metallographic Procedures Section
   ================================ */

.metallographic-procedures {
    /* Background color removed */
}

/* Styles for the intro section within metallographic-procedures */
.metallographic-procedures .intro-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px; /* Space between image and text */
}

.metallographic-procedures .image-container {
  flex: 1;
  max-width: 50%; /* Image takes up to half of the container */
}

.metallographic-procedures .image-container img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.metallographic-procedures .image-container img:hover {
  transform: scale(1.01);
}

.metallographic-procedures .description-container {
  flex: 1;
  padding: 0 20px;
  font-size: 1rem;
  line-height: 1.25;
  color: #333;
}

.metallographic-procedures .description-container h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
  text-align: left;
}

.metallographic-procedures .description-container h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #333;
}

.metallographic-procedures .description-container p {
  margin-bottom: 20px;
}

.metallographic-procedures .description-container ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.metallographic-procedures .description-container ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.metallographic-procedures .description-container ul li:last-child {
  margin-bottom: 0;
}

/* Responsive Design for Metallographic Procedures */
@media (max-width: 800px) {
  .metallographic-procedures .intro-section {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .metallographic-procedures .image-container, 
  .metallographic-procedures .description-container {
      max-width: 100%;
  }

  .metallographic-procedures .description-container {
      padding: 0;
  }
}

.metallographic-procedures .map-container {
    margin-bottom: 20px;
    text-align: center;
}

.metallographic-procedures .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.metallographic-procedures .column {
    flex: 1 1 25%;
    max-width: 25%;
    padding: 10px;
    box-sizing: border-box;
}

.metallographic-procedures .side-by-side {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 25px;
}

.metallographic-procedures .side-by-side td {
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #ececec;
}

.metallographic-procedures .responsive {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.metallographic-procedures .responsive:hover {
    transform: scale(1.02);
}

.metallographic-procedures .return-top {
    margin-top: 30px;
    text-align: center;
}

.metallographic-procedures .return-top a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.metallographic-procedures .return-top a:hover {
    color: #0056b3;
}

/* Responsive Design for Metallographic Procedures Columns */
@media (max-width: 768px) {
    .metallographic-procedures .column {
        flex: 1 1 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .metallographic-procedures .column {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .metallographic-procedures .dropbtn-3 {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .metallographic-procedures .intro-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .metallographic-procedures .intro-section img,
    .metallographic-procedures .intro-section .description {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* ================================
   Procedures Table Section
   ================================ */

.procedures-table {
  display: flex;
  justify-content: center; /* Centers the table horizontally */
  align-items: center; /* Centers the table vertically if needed */
  flex-direction: column; /* Ensures any additional content stays in a column layout */
  padding: 20px; /* Optional: Adds padding around the section */
}

.procedures-table .universal-dropdown-content {
    margin-bottom: 20px;
    text-align: center;
}

.procedures-table .universal-dropdown-content a {
    color: #061a30;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.procedures-table .universal-dropdown-content a:hover {
    background-color: #e0e0e0;
}

.procedures-table table {
  width: 100%; /* Ensures the table takes up the available space */
  max-width: 1000px; /* Sets a maximum width for the table */
  margin: 0 auto; /* Centers the table within the section */
  border-collapse: collapse; /* Ensures borders are collapsed for a cleaner look */
}

.procedures-table td, .procedures-table th {
  padding: 10px; /* Adds padding for readability */
  text-align: left; /* Aligns text to the left */
}

.procedures-table th {
  background-color: #f5f5f5; /* Optional: Adds a background color for headers */
  font-weight: bold; /* Makes headers bold */
}

.procedures-table table td {
    border: 1px solid #eeeeee;
    padding: 15px;
    vertical-align: top;
    background-color: #dfdfdf;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.procedures-table table td:first-child {
    background-color: #f0f0f0;
    font-weight: 500;
}

/* ================================
   Etchant Information Section
   ================================ */

.etchant-information {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    color: #333;
    border-radius: 8px;
}

.etchant-information .intro-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.etchant-information .intro-text {
  max-width: 1200px;
  margin: 0 auto;
}

.etchant-information .intro-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.etchant-information .intro-text h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #555;
}

.etchant-information .intro-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
}

.etchant-information .intro-text ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.etchant-information .intro-text ul li {
  margin-bottom: 10px;
  text-align: left;
  color: #333;
}

.etchant-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
  justify-content: space-between;
}

.etchant-column {
  flex: 1 1 calc(33.333% - 20px);
  margin: 10px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.etchant-column:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.etchant-table {
  padding: 20px;
  text-align: center;
}

.etchant-dropdown {
  margin-bottom: 20px;
  position: relative;
}

.etchant-dropbtn {
  background-color: #324f5a;
  color: white;
  width: 100%;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  position: relative; /* Ensure button and content are aligned */
  z-index: 2; /* Ensure the button stays above other elements */
}

.etchant-dropbtn:hover {
  background-color: #1d2e35;
}

.etchant-dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* Aligns dropdown directly below button */
  left: 0;
  background-color: #ffffff;
  min-width: 200px;
  width: 100%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  padding: 10px 0;
  margin-top: -2px; /* Reduce or remove gap */
}

.etchant-dropdown:hover .etchant-dropdown-content {
  display: block;
}

.etchant-dropdown-content a {
  color: #333;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.etchant-dropdown-content a:hover {
  background-color: #e0e0e0;
}

.etchant-image {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Responsive Design for Etchant Information */
@media (max-width: 768px) {
  .etchant-column {
      flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .etchant-column {
      flex: 1 1 100%;
  }
}

/* ================================
   Technical Information Section
   ================================ */

   .technical-information .intro-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
  }
  
  .technical-information .intro-section:hover {
    background-color: #f0f0f0; /* Slightly darken background on hover */
  }
  
  .technical-information .intro-text {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
  }
  
  .technical-information .intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
    line-height: 1.2;
  }
  
  .technical-information .intro-text h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: #007bff;
    font-weight: 600;
  }
  
  .technical-information .intro-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
  }
  
  .technical-information .intro-text ul {
    list-style-type: disc;
    padding-left: 40px;
    margin-bottom: 20px;
  }
  
  .technical-information .intro-text ul li {
    margin-bottom: 10px;
    text-align: left;
    color: #333;
    font-size: 1.125rem;
    line-height: 1.8;
  }
  
  /* Technical Row */
  .technical-information .technical-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    justify-content: space-between;
  }
  
  .technical-information .technical-column {
    flex: 1 0 23%; /* Ensure four items per row on larger screens */
    padding: 10px;
    box-sizing: border-box;
    max-width: 23%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .technical-information .technical-column:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }
  
  .technical-information .technical-table {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    overflow: hidden; /* Ensures content doesn't overflow the rounded corners */
  }
  
  .technical-information .technical-dropbtn {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .technical-information .technical-dropbtn:hover {
    background-color: #0056b3;
  }
  
  .technical-information .technical-dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
    margin-top: 5px;
    width: calc(100% - 40px); /* Width minus padding */
    left: 50%; /* Center dropdown */
    transform: translateX(-50%); /* Center dropdown */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
  }
  
  .technical-information .technical-dropdown:hover .technical-dropdown-content {
    display: block;
    max-height: 400px;
    opacity: 1;
  }
  
  .technical-information .technical-dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .technical-information .technical-dropdown-content a:hover {
    background-color: #e0e0e0;
    color: #007bff;
  }
  
  .technical-information .technical-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .technical-information .technical-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }
  
  /* Responsive Design for Technical Information */
  @media (max-width: 1200px) {
    .technical-information .technical-column {
      flex: 1 0 31%;
      max-width: 31%;
    }
  }
  
  @media (max-width: 992px) {
    .technical-information .technical-column {
      flex: 1 0 48%;
      max-width: 48%;
    }
  }
  
  @media (max-width: 768px) {
    .technical-information .technical-column {
      flex: 1 0 100%;
      max-width: 100%;
    }
  }
  

/* ================================
   Brochures Section - Enhanced to Match Homepage
   ================================ */

.brochures-section {
  max-width: 1440px;
  margin: 0 auto;
  background-color: transparent;
  padding: 2rem;
  position: relative;
}


.equipment-brochures-section {
  margin-bottom: 3rem;
  position: relative;
}

.equipment-brochures-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  line-height: 1.2;
}

.equipment-brochures-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #5a1331 0%, #36666e 100%);
  margin: 10px auto 0;
  border-radius: 2px;
}

.manuals-section {
  margin-bottom: 3rem;
  position: relative;
}

.manuals-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  line-height: 1.2;
}

.manuals-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #5a1331 0%, #36666e 100%);
  margin: 10px auto 0;
  border-radius: 2px;
}

.consumables-brochures-section {
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
}

.consumables-brochures-section:hover {
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.1),
    0 3px 6px rgba(0, 0, 0, 0.08);
}

.consumables-brochures-section .equipment-category {
  max-width: 100%;
  margin: 0;
}

.consumables-brochures-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  line-height: 1.2;
}

.consumables-brochures-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #5a1331 0%, #36666e 100%);
  margin: 10px auto 0;
  border-radius: 2px;
}

.equipment-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsive grid adjustments */
@media (min-width: 1600px) {
    .equipment-categories {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .equipment-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .equipment-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .equipment-categories {
        grid-template-columns: 1fr;
    }
}

.equipment-category {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.equipment-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 19, 49, 0.02) 0%, rgba(54, 102, 110, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.equipment-category:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.1),
        0 3px 6px rgba(0, 0, 0, 0.06);
}

.equipment-category:hover::before {
    opacity: 1;
}

.category-header {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.category-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.98);
}

.equipment-category:hover .category-header img {
    transform: scale(1.05);
    filter: brightness(1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    padding: 1.25rem 1.25rem 1rem;
    color: #fff;
    z-index: 1;
}

.category-overlay h3 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.01em;
}

.category-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.brochure-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-grow: 1;
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 14px;
    padding-right: 2.5rem;
}

.brochure-select:hover {
    border-color: #36666e;
    box-shadow: 0 1px 4px rgba(54, 102, 110, 0.12);
}

.brochure-select:focus {
    outline: none;
    border-color: #36666e;
    box-shadow: 
        0 0 0 2px rgba(54, 102, 110, 0.1),
        0 1px 4px rgba(54, 102, 110, 0.15);
}

.brochure-select option {
    padding: 0.5rem;
    font-weight: 400;
}

/* Legacy consumables-section styles - now using consumables-brochures-section */

/* ================================
   Resources Section
   ================================ */

.resources-section {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.resources-container {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.resources-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resources-container li {
  margin-bottom: 10px;
  font-weight: bold;
}

.resources-container a {
  color: #007acc;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.resources-container a:hover {
  color: #005f99;
}

.resources-container select {
  width: 100%;
  margin-top: 5px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* Responsive Design for Resources Section */
@media (max-width: 768px) {
  .resources-section {
      grid-template-columns: 1fr;
  }
}

/* ================================
   Featured Handbook Section
   ================================ */

.featured-handbook-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem 0;
    margin: 2rem auto;
    border-radius: 12px;
    max-width: 1200px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.featured-handbook-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #5a1331 0%, #36666e 100%);
}

.handbook-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.handbook-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: visible;
}

.handbook-text {
    flex: 1;
    padding-right: 1rem;
}

.handbook-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.handbook-description {
    font-size: 1rem;
    color: #6c757d;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.handbook-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #36666e 0%, #4d8a9a 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(54, 102, 110, 0.2);
}

.handbook-download-btn:hover {
    background: linear-gradient(135deg, #2d5259 0%, #3d6f7a 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(54, 102, 110, 0.25);
}

.handbook-download-btn:active {
    transform: translateY(0);
}

.handbook-download-btn .btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.handbook-cover {
    flex-shrink: 0;
}

.handbook-image {
    width: 120px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.handbook-image:hover {
    transform: scale(1.05);
}

/* Responsive Design for Handbook Section */
@media (max-width: 768px) {
    .featured-handbook-section {
        padding: 1rem 0;
        margin: 1.5rem auto;
        border-radius: 10px;
    }

    .handbook-container {
        padding: 0 1rem;
    }

    .handbook-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .handbook-text {
        padding-right: 0;
    }

    .handbook-text h3 {
        font-size: 1.3rem;
    }

    .handbook-description {
        font-size: 0.9375rem;
    }

    .handbook-image {
        width: 100px;
        margin: 0 auto;
    }

    .handbook-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced responsive adjustments for brochures */
@media (max-width: 768px) {
    .brochures-section {
        padding: 1.5rem 1rem;
    }

    .equipment-brochures-section h2,
    .manuals-section h2,
    .consumables-brochures-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .category-header {
        height: 200px;
    }

    .category-overlay h3 {
        font-size: 1.25rem;
    }

    .category-content {
        padding: 1.25rem;
    }
}

/* ================================
   Preparation Steps Section
   ================================ */

.prep-steps-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.prep-steps-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.prep-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.prep-step-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: relative;
}

.prep-step-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.prep-step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.prep-step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem;
}

.prep-step-description {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.prep-step-links {
    font-size: 0.875rem;
}

.prep-step-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.prep-step-links a:hover {
    text-decoration: underline;
}

/* ================================
   Material Cards Grid
   ================================ */

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.material-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.material-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.material-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.material-card-number {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.material-card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.material-card-subtitle {
    margin: 0.25rem 0 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.material-card-description {
    color: #4b5563;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.material-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.material-card-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.material-card-badge:hover {
    background: #dbeafe;
}

.material-card-badge-secondary {
    background: #f3f4f6;
    color: #374151;
}

.material-card-badge-secondary:hover {
    background: #e5e7eb;
}

.material-card-badge-coming {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    cursor: default;
}

.material-card-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.material-card-link:hover {
    color: #1d4ed8;
}

.material-card-link svg {
    margin-left: 0.5rem;
}

/* ================================
   Additional Resources
   ================================ */

.additional-resources {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.additional-resources h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    text-align: center;
}

.additional-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.additional-resource-card {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.additional-resource-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.additional-resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.additional-resource-card h4 {
    margin: 0 0 0.5rem;
    color: #111827;
    font-weight: 600;
}

.additional-resource-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prep-steps-grid,
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .prep-steps-section {
        margin-bottom: 2rem;
    }
    
    .material-card {
        padding: 1rem;
    }
}

/* ================================
   Procedures Page - Modern Hexagon Design
   ================================ */

/* Hero Section */
.procedures-hero-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='86.6' viewBox='0 0 100 86.6'%3E%3Cdefs%3E%3Cpattern id='hexagons-procedures-dark' x='0' y='0' width='100' height='86.6' patternUnits='userSpaceOnUse'%3E%3Cpolygon points='50,0 93.3,25 93.3,75 50,100 6.7,75 6.7,25' fill='none' stroke='%234b5563' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23hexagons-procedures-dark)' opacity='0.15'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #1f2937 0%, #111827 100%),
        radial-gradient(circle at 20% 30%, rgba(90, 19, 49, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(54, 102, 110, 0.1) 0%, transparent 50%);
    padding: 120px 0 60px 0;
    margin-top: 80px; /* Account for fixed navigation */
}

.procedures-hero-wrapper::before,
.procedures-hero-wrapper::after {
    content: '';
    position: absolute;
    z-index: 0;
    width: 300px;
    height: 300px;
    clip-path: polygon(
        25% 6.7%,
        75% 6.7%,
        100% 50%,
        75% 93.3%,
        25% 93.3%,
        0% 50%
    );
    filter: blur(30px);
    opacity: 0.15;
    transition: opacity 0.6s ease;
}

.procedures-hero-wrapper::before {
    background: linear-gradient(135deg, #8b2b4f 0%, #b84d7a 50%, #8b2b4f 100%);
    top: -80px;
    left: -80px;
}

.procedures-hero-wrapper::after {
    background: linear-gradient(135deg, #36666e 0%, #4d8a9a 50%, #36666e 100%);
    bottom: -80px;
    right: -80px;
}

.procedures-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.procedures-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.procedures-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.procedures-hero-description {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.7;
    margin: 0;
}

@media (min-width: 768px) {
    .procedures-hero-title {
        font-size: 3rem;
    }
    
    .procedures-hero-description {
        font-size: 1.25rem;
    }
}

/* Resource Gateway Section */
.resource-gateway-section {
    padding: 4rem 20px;
    width: 100%;
    margin: 0 auto;
    padding-top: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resource-gateway-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem auto 0;
    width: 100%;
    max-width: 100%;
}

.resource-gateway-top-row {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.resource-gateway-bottom-row {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .resource-gateway-top-row,
    .resource-gateway-bottom-row {
        grid-template-columns: repeat(3, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-items: stretch;
        margin-left: auto;
        margin-right: auto;
    }
    
    .resource-gateway-top-row .resource-hex-card,
    .resource-gateway-bottom-row .resource-hex-card {
        width: 100%;
        min-width: 0;
    }
}

@media (min-width: 1024px) {
    .resource-gateway-top-row,
    .resource-gateway-bottom-row {
        grid-template-columns: repeat(3, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.resource-hex-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.resource-hex-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5a1331 0%, #36666e 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.resource-hex-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.resource-hex-card:hover::before {
    transform: scaleX(1);
}

.hex-icon-wrapper {
    margin-bottom: 1.5rem;
}

.hex-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #36666e;
    transition: all 0.3s ease;
}

.resource-hex-card:hover .hex-icon {
    background: linear-gradient(135deg, #36666e 0%, #4d8a9a 100%);
    color: white;
    transform: scale(1.05);
}

.resource-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.resource-card-description {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.resource-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.resource-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #36666e;
}

.resource-arrow {
    font-size: 1.25rem;
    color: #36666e;
    transition: transform 0.3s ease;
}

.resource-hex-card:hover .resource-arrow {
    transform: translateX(4px);
}

/* Resource cards with images */
.resource-hex-card-image {
    position: relative;
    overflow: hidden;
}

.resource-card-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: #f3f4f6;
}

.resource-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-hex-card-image:hover .resource-card-image {
    transform: scale(1.05);
}

.resource-hex-card-image .hex-icon-wrapper {
    display: none;
}

/* Quick Info Section */
.quick-info-section {
    padding: 3rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #f9fafb;
    border-radius: 12px;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.quick-info-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.quick-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.quick-info-text {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.quick-info-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #36666e;
    text-decoration: none;
    transition: color 0.2s;
}

.quick-info-link:hover {
    color: #2d5259;
    text-decoration: underline;
}

/* Class System Section */
.class-system-section {
    padding: 2rem 20px 4rem;
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.class-hex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.class-hex-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.class-hex-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.class-hex-badge-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.class-hex-card:hover .class-hex-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #36666e;
}

.class-hex-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.class-hex-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5a1331 0%, #36666e 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.class-hex-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.class-hex-card:hover::before {
    transform: scaleX(1);
}

.class-hex-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #36666e 0%, #4d8a9a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    clip-path: polygon(
        25% 6.7%,
        75% 6.7%,
        100% 50%,
        75% 93.3%,
        25% 93.3%,
        0% 50%
    );
    transition: all 0.3s ease;
}

.class-hex-card:hover .class-hex-number {
    transform: rotate(5deg) scale(1.05);
}

.class-hex-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.class-hex-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
}

.class-hex-description {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.class-hex-links {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.class-hex-link {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #36666e;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    background: #eff6ff;
    border-radius: 0.375rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.class-hex-link:hover {
    color: #2d5259;
    background: #dbeafe;
    text-decoration: none;
}

.class-hex-link-secondary {
    background: #f3f4f6;
    color: #374151;
}

.class-hex-link-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Special Materials Database Card */
.class-hex-card-special {
    background-image: 
        linear-gradient(135deg, rgba(31, 41, 55, 0.85) 0%, rgba(17, 24, 39, 0.85) 100%),
        url('/images/microstructures/Ferrite-Pearlite steel.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border: 2px solid #36666e;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}


.class-hex-card-special::before {
    z-index: 1;
}

.class-hex-card-special > * {
    position: relative;
    z-index: 2;
}

.class-hex-card-special .class-hex-title {
    color: #ffffff;
}

.class-hex-card-special .class-hex-subtitle {
    color: #d1d5db;
}

.class-hex-card-special .class-hex-description {
    color: #e5e7eb;
}

.class-hex-card-special:hover {
    border-color: #2d5259;
    box-shadow: 0 8px 16px -4px rgba(54, 102, 110, 0.2);
}

.class-hex-card-special::before {
    background: linear-gradient(90deg, #36666e 0%, #4d8a9a 100%);
}

.class-hex-number-special {
    background: linear-gradient(135deg, #36666e 0%, #4d8a9a 100%);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.class-hex-link-special {
    background: linear-gradient(135deg, #36666e 0%, #4d8a9a 100%);
    color: white;
    cursor: default;
    pointer-events: none;
    border: none;
}

.class-hex-link-special:hover {
    background: linear-gradient(135deg, #2d5259 0%, #3d6f7a 100%);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .procedures-hero-title {
        font-size: 2rem;
    }
    
    .procedures-hero-description {
        font-size: 1rem;
    }
    
    .resource-gateway-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quick-info-grid {
        grid-template-columns: 1fr;
    }
    
    .class-hex-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .class-hex-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .resource-gateway-grid:not(.resource-gateway-top-row):not(.resource-gateway-bottom-row) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resource-gateway-top-row,
    .resource-gateway-bottom-row {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1400px) {
    .resource-gateway-grid:not(.resource-gateway-top-row):not(.resource-gateway-bottom-row) {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .resource-gateway-top-row,
    .resource-gateway-bottom-row {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
