.secondary-page-banner {
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  margin-top: 40px;
  position: relative;
}
.secondary-page-banner {
  
}
.secondary-page-banner h1 {
  color: white;
  font-size: 40px;
}
.lower-h1 {
  font-size: 24px;
  border-bottom: 4px solid red;
}

.secondary-page-info-body {
  margin: 10px 0px 25px 0px;
}
.secondary-page-info-body {
  font-size: 20px;
}

.secondary-page-info-body iframe {
    width: 100%;
    height: 325px;
    margin: 0px auto 25px auto;
}
.secondary-page-info-header h3 {
  font-size: 24px;
  text-align: left;
}
.secondary-page-info-list {
  list-style: none;
  margin: 10px 0px 0px 0px;
  padding: 0;
}
.list-width {
  width: 50%;
  text-align: justify;
}
.secondary-page-info-list i {
  color: red;
  
}
.secondary-pg-call-btn {
  background: #005A9C;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0px;
}
.secondary-pg-call-btn a {
  color: white;
  width: 100%;
  text-decoration: none;

  font-size: 20px;
  font-weight: bold;
}


@media screen and (min-width: 800px) {
  .secondary-page {
    background-color: #F6F7F8;
  }
  .secondary-page-banner {
    margin-top: 200px;
    padding: 300px 0;
    background-position: center;
    background-size: cover;
    position: relative;
  }
  .secondary-page-intro p {
    text-align: justify;
    font-size: 24px;
    color: black;
    line-height: 1.6;
    padding: 40px 120px;
  }
  .secondary-page-container {
    display: flex;
    min-height: 300px;
    padding: 20px 40px;
    margin-bottom: 30px;
    gap: 30px;
    justify-content: center;
  }

  /* Find a way to set font-size and line height in one class. See how repetitive it is here */
  .secondary-page-info-body {
    font-size: 24px;
    line-height: 1.6;
  }
  .secondary-page-info {
    width: 40%;
    font-size: 24px;
    line-height: 1.6;
  }
  
  .secondary-page-info-list {
    padding-bottom: 40px;
    font-size: 24px;
    list-style: none;
    line-height: 2.0;
  }
  .secondary-page-info-list i {
    text-align: justify;
    margin-right: 10px;
    color: #C62E2E;
  }
  .secondary-page-info-header h3 {
    font-size: 40px;
    
  }
  .secondary-page-text {
    text-align: justify;
    padding-right: 40px;
  }
  .full-width {
    width: 80%;
  }
  .secondary-page-img {
    width: 40%;
  }
  .secondary-page-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  .div-line {
    width: 78%;
    display: flex;
    text-align: center;
    justify-content: center;
    border-top: 2px solid grey;
    margin: 20px auto;
  }

  /* this is the stying for the slideshow on the preventative maintenance page */

  .slideshow-container {
    width: 50%;
    height: 700px;
    position: relative;
    overflow: hidden;
  
    margin: 20px auto;
  }

  .wrapper-container {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .wrapper-container img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    object-fit: cover;
  }

  .wrapper-container img.active {
    opacity: 1;
    object-fit: cover;
  }

  /* This is the sytling for the industries we serve section on the Comercial services page */
  .industries-we-serve {
    padding: 50px 50px;
    background-color: #f4f9fd;
    text-align: center;
  }
  
  .industries-we-serve h2 {
    font-size: 2.5rem;
    color: #005a9c;
    margin-bottom: 20px;
  }
  
  .intro-text {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 40px;
  }
  
  .industry-cards {
    display: grid;
    grid-template-columns: repeat( 4, 1fr);
    gap: 50px;
    justify-items: center;
  }
  
  .industry-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 250px;
  }
  
  .industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }
  
  .industry-card .icon {
    font-size: 3rem;
    color: #296ab1;
    margin-bottom: 15px;
  }
  
  .industry-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
  }
  
  .cta-container {
    margin-top: 40px;
    padding: 30px 0;
    background-color: #296ab1;
    color: white;
  }
  
  .cta-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .cta-btn {
    background-color: #005a9c;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
  }
  
  .cta-btn:hover {
    background-color: #1d549b;
  }

  .promo-container {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background: linear-gradient(90deg, #C62E2E, #005A9C);
    width: 100%;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
  }
  .promo-container p {
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.02);
    }
    100% {
      transform: scale(1);
    }
  }

  .desktop-air-quality { display: block; }
  .mobile-air-quality { display: none; }
  .desktop-call-button { display: block; }
  .mobile-call-button { display: none; }
  
  .mobile-call-section {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
  }
  .mobile-call-section h2 {
    color: #1B4B8F;
    font-size: 36px;
    font-family: 'Roboto Condensed', sans-serif;
    margin: 0 0 20px 0;
  }
  .mobile-call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #C62E2E;
    color: white !important;
    text-decoration: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
  }
  .mobile-call-button i {
    color: white;
  }
}

  

/* Mobile-specific styles for industry cards */
@media screen and (max-width: 768px) {
  .industries-we-serve {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .industries-we-serve h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 15px;
  }

  .intro-text {
    font-size: 1rem;
    margin-bottom: 30px;
    text-align: center;
    max-width: 90%;
  }

  .industry-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .industry-card {
    padding: 25px 15px;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
  }

  .industry-card .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
  }

  .industry-card h3 {
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    line-height: 1.3;
  }

  /* Add smooth transitions */
  .secondary-page-info-list li,
  .button,
  .secondary-page-img img {
    transition: all 0.3s ease;
  }

  /* Enhance visual hierarchy */
  .secondary-page-info-header {
    position: relative;
    margin-bottom: 35px;
  }

  /* .secondary-page-info-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: #C62E2E;
    border-radius: 2px;
  } */

  .secondary-page-info-header h3 {
    display: inline-block;
    position: relative; /* Optional, only needed if you add pseudo-elements */
    padding-bottom: 10px;
    text-align: center;
  }
  .secondary-page-info-header h3::after {
    content: '';
    display: block;
    margin: 10px auto 0 auto;
    width: 70px;
    height: 3px;
    background-color: #C62E2E;
    border-radius: 2px;
  }

  /* Improve list item interactions */
  .secondary-page-info-list li:active {
    transform: scale(0.98);
  }

  /* Enhance image presentation */
  .secondary-page-img {
    position: relative;
    overflow: hidden;
  }

  .secondary-page-img img {
    transform: scale(1);
    transition: transform 0.3s ease;
  }

  .secondary-page-img:hover img {
    transform: scale(1.02);
  }

  /* Improve button interactions */
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Enhance form elements */
  .input-group input,
  .input-group textarea {
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
  }

  .input-group input:focus,
  .input-group textarea:focus {
    border-color: #C62E2E;
    box-shadow: 0 0 0 3px rgba(198, 46, 46, 0.1);
  }

  /* Improve spacing between sections */
  /* .secondary-page-container:not(:last-child) {
    margin-bottom: 40px;
  } */

  /* Add subtle animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .secondary-page-info,
  .secondary-page-img,
  .secondary-page-info-list li {
    animation: fadeIn 0.5s ease forwards;
  }

  /* Enhance form submission button */
  .submit-btn {
    background-color: #C62E2E;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    display: block;
  }

  .submit-btn:hover {
    background-color: #a52525;
    transform: translateY(-2px);
  }

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

/* Extra small devices */
@media screen and (max-width: 480px) {
  .industries-we-serve {
    padding: 30px 15px;
  }

  .industries-we-serve h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .intro-text {
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 95%;
  }

  .industry-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 280px;
  }

  .industry-card {
    padding: 20px 15px;
    min-height: 120px;
  }

  .industry-card .icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
  }

  .industry-card h3 {
    font-size: 1.1rem;
  }

  /* Adjust animations for smaller screens */
  .secondary-page-info,
  .secondary-page-img,
  .secondary-page-info-list li {
    animation-duration: 0.3s;
  }

  /* Optimize touch targets */
  .button,
  .submit-btn {
    min-height: 44px;
  }
}

/* Mobile styles for preventative maintenance page */
@media screen and (max-width: 768px) {
  .secondary-page-banner {
    padding: 60px 20px;
    min-height: auto;
  }

  .secondary-page-banner h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
  }

  .secondary-page-intro {
    padding: 20px;
    text-align: center;
  }

  .secondary-page-intro p {
    font-size: 16px;
    line-height: 1.6;
  }

  .secondary-page-container {
    flex-direction: column;
    padding: 20px;
    margin-bottom: 30px;
  }

  .secondary-page-info {
    width: 100%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .secondary-page-info-header h3 {
    font-size: 24px;
    line-height: 1.3;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center !important;
  }

  .secondary-page-info-list {
    padding-left: 0;
  }

  .secondary-page-info-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.6;
  }

  .secondary-page-info-list li i {
    margin-right: 15px;
    margin-top: 4px;
    font-size: 18px;
    flex-shrink: 0;
  }

  .secondary-page-info-list li p {
    margin: 8px 0 0 35px;
    font-size: 15px;
    line-height: 1.5;
  }

  .secondary-page-img {
    width: 100%;
    margin: 0;
    height: auto;
  }

  .secondary-page-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .phone-number {
    text-align: center;
    margin: 30px 0;
  }

  .phone-number p {
    margin-bottom: 10px;
  }

  .phone-number .button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px;
    font-size: 18px;
  }

  .div-line {
    margin: 40px 20px;
  }

  .full-width {
    padding: 30px 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin: 0 15px;
  }

  .full-width .secondary-page-info-list li {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 480px) {
  .secondary-page-banner h1 {
    font-size: 28px;
  }

  .secondary-page-info-header h3 {
    font-size: 22px;
  }

  /* .secondary-page-info-list li {
    font-size: 15px;
  } */

  /* .secondary-page-info-list li p {
    font-size: 14px;
  } */

  .phone-number .button {
    font-size: 16px;
  }

  .full-width {
    margin: 0 10px;
    padding: 20px 15px;
  }
}

@media screen and (max-width: 768px) {
  .secondary-page-container[style*="background-image"] {
    background-attachment: scroll;
    padding: 20px;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .secondary-page-container[style*="background-image"] .secondary-page-info-header h3 {
    color: #333;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
  }

  .secondary-page-container[style*="background-image"] .secondary-page-info-list li {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .secondary-page-container[style*="background-image"] .secondary-page-info-list li span {
    color: #C62E2E;
    display: inline-block;
    margin-bottom: 5px;
  }

  .secondary-page-container[style*="background-image"] p[style*="text-align: center"] {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
  }

  /* Enhance list items for better readability */
  .secondary-page-info-list li {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  /* Improve spacing for nested content */
  .secondary-page-info-list li p {
    background-color: #fff;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0 0 35px;
  }
  .secondary-page-info {}
  .secondary-page-text p {
    line-height: 1.6;
    text-align: justify;
  }
  /* Enhance buttons and interactive elements */
  .button {
    width: 100%;
    max-width: 150px;
    margin: 0px auto;
    color: white;
    background-color: #C62E2E;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .desktop-air-quality { display: none; }
  .mobile-air-quality { display: block; }
  .desktop-call-button { display: none; }

  .mobile-call-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .mobile-call-button a {
    margin-top: 20px;
    display: block;
    text-align: center;
    padding: 15px 12px;
  }
  .mobile-call h2 {
    color: #1B4B8F;
    font-size: 28px;
    text-align: center;
  }
  .mobile-call-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    
   
    margin: 0 auto;
    
    font-size: 24px;
    font-weight: bold;
  }
  .mobile-call-button i {
    margin-right: 10px;
  }
}


@media screen and (max-width: 480px) {
  .secondary-page-container[style*="background-image"] {
    margin: 15px;
    padding: 15px;
  }

  .secondary-page-info-list li p {
    margin: 8px 0 0 30px;
    padding: 10px;
  }

  .button {
    padding: 12px;
    font-size: 16px;
  }
}


