/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
}

a {
  text-decoration: none;
  color: #fff;
}

a:hover {
  color: #8ec4dd;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
}

#main {
  margin-top: 90px;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 998;
  background: #4b4f58;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #a9a9a9;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  transition: all 0.5s;
  z-index: 997;
  padding: 10px 0;
  background: #4b4f58;
}

#header.header-transparent {
  background: transparent;
}

#header.header-scrolled {
  background: #4b4f58;
  padding: 2px;
}

#header .logo img {
  padding: 0;
  margin: 0;
  width: 80px;
}

@media (max-width: 768px) {
  #header.header-scrolled {
    padding: 15px 0;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar {
  padding: 0;
}

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

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  margin-left: 10px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a:hover {
  color: #ed1c23;
}

.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(43, 111, 142, 0.9);
  transition: 0.3s;
}
.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}
.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}
.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #2f4d5a;
}
.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: #67b0d1;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  position: relative;
  margin-bottom: -50px;
}
.swiper-container {
  width: 100%;
}
/* Updated for full responsiveness */
#hero .swiper-slide img {
  width: 100%;
  /* Use 85% of the viewport height for a large, adaptive hero image */
  height: 85vh;
  /* Set a maximum height to prevent it from being too tall on very large desktop monitors */
  max-height: 650px;
  /* Ensures the image covers the area without being stretched or distorted */
  object-fit: cover;
}

/* Adjust the slider height for smaller (mobile) screens */
@media (max-width: 768px) {
  #hero .swiper-slide img {
    /* Make the hero section shorter on mobile to see content below */
    height: 60vh;
    max-height: 450px;
    display: none;
  }
}

/* You can keep the existing swiper-pagination rules as they are */
.swiper-pagination {
  position: absolute;
  bottom: 20px; /* A little more space from the bottom */
  left: 50%;
  transform: translateX(-50%);
}
.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #fff;
  opacity: 0.5;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}
.section-title {
  text-align: center;
  padding-bottom: 30px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  position: relative;
  margin-bottom: 30px;
  color: #2f4d5a;
  z-index: 2;
}
.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 122px;
  height: 66px;
  background: url(../img/section-title-bg.png) no-repeat;
  z-index: -1;
}
.subsection-heading {
  margin-top: 50px;
  margin-bottom: 20px;
  width: 100%;
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 15px 0;
  background-color: #fff0;
  min-height: 80px;
  background-image: linear-gradient(180deg, #ed1c24 0%, #8c0207 100%);
  margin-top: 90px;
}
.breadcrumbs h2 {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin-top: 20px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
.breadcrumbs ol li + li {
  padding-left: 10px;
}
.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #fff;
  content: "/";
}

/*--------------------------------------------------------------
# Services & Team Sections
--------------------------------------------------------------*/
.services .icon-box,
.team .member {
  text-align: center;
}
.services .icon-box {
  background: #fefefe;
  box-shadow: 0px 5px 80px 0px rgba(110, 123, 131, 0.1);
  padding: 10px;
  transition: all ease-in-out 0.3s;
  border-radius: 10px;
}
.services .icon-box img {
  width: 350px;
  max-width: 100%;
  background: #fff;
  border-radius: 5px;
  margin: 10px auto 20px auto;
}
.services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 24px;
  color: #000;
}
.services .get-started-btn,
.team .get-started-btn {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
  background: #ed1c23;
  border: 2px solid #ed1c23;
  color: #fff;
  text-decoration: none;
  margin-top: 20px;
}
.services .get-started-btn:hover,
.team .get-started-btn:hover {
  color: #000;
  border-color: #3d3d3d;
  background: #fff;
}
.team .member {
  margin-bottom: 20px;
}
.team .member .member-info {
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  border-radius: 10px;
  background: white;
  margin: -40px 20px 0 20px;
  position: relative;
  z-index: 2;
}
.team .member h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  padding-bottom: 80px;
}
.contact .info-box {
  color: #444444;
  background: #fff;
  text-align: center;
  box-shadow: 0 0 30px rgba(214, 215, 216, 0.4);
  padding: 30px;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
.contact .info-box i {
  font-size: 32px;
  color: #ed1c23;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px auto;
  background: #fdf1f1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact .info-box h3 {
  font-size: 20px;
  color: #444;
  font-weight: 700;
  margin: 0 0 10px 0;
}
.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  color: #777;
}
.contact iframe {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 485px; /* Adjust to match form height */
  border-radius: 8px;
}
.contact .php-email-form {
  width: 100%;
  height: 100%;
  box-shadow: 0 0 30px rgba(214, 215, 216, 0.4);
  padding: 30px;
  background: #fff;
  border-radius: 8px;
}
.contact .php-email-form .form-control {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
  border: 1px solid #ced4da;
  padding: 10px 15px;
}
.contact .php-email-form .form-control:focus {
  border-color: #ed1c23;
  box-shadow: none;
}
.contact .php-email-form textarea.form-control {
  padding: 12px 15px;
}
.contact .php-email-form button[type="submit"] {
  background: #ed1c23;
  border: 0;
  padding: 12px 34px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
}
.contact .php-email-form button[type="submit"]:hover {
  background: #c81218;
}
.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}
.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
  border-radius: 4px;
}
.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: 4px;
}

/*--------------------------------------------------------------
# Footer (Previous Version)
--------------------------------------------------------------*/
#footer {
  background: #4b4f58;
  padding: 0 0 30px 0;
  color: #fff;
  font-size: 14px;
}

#footer .footer-top {
  padding: 60px 0 10px 0;
}

#footer .footer-top .footer-info {
  margin-top: -60px;
  margin-bottom: 15px;
  background: #4b4f58; /* Match footer background */
  color: #fff;
  text-align: left;
  padding: 30px 20px;
}

#footer .footer-top .footer-info img {
  width: 100px;
}

#footer .footer-top .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: "Raleway", sans-serif;
  color: #fff;
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: #d3d3d3;
  color: #000;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: #ed1c23;
  color: #fff;
  text-decoration: none;
}

#footer .footer-top h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
}

#footer .footer-top .footer-links {
  margin-bottom: 30px;
  margin-top: 83px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul i {
  padding-right: 2px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

#footer .footer-top .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul a {
  color: #fff;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#footer .footer-top .footer-links ul a:hover {
  color: #ed1c23;
}

#footer .footer-top .footer-newsletter {
  margin-top: 85px;
}

#footer .footer-top .footer-newsletter img {
  width: 80px;
}

#footer .footer-top .footer-newsletter form {
  margin-top: 30px;
  background: #fff;
  padding: 6px 10px;
  position: relative;
  border-radius: 4px;
}

#footer .footer-top .footer-newsletter form input[type="email"] {
  border: 0;
  padding: 4px;
  width: calc(100% - 110px);
}

#footer .footer-top .footer-newsletter form input[type="submit"] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 20px;
  background: #a9a9a9;
  color: #000;
  transition: 0.3s;
  border-radius: 4px;
}

#footer .footer-top .footer-newsletter form input[type="submit"]:hover {
  background: #ed1c23;
  color: #fff;
}

#footer .copyright {
  border-top: 1px solid #ed1c23;
  text-align: center;
  padding-top: 30px;
}

#footer .credits {
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #fff;
}

@media (max-width: 575px) {
  #footer .footer-top .footer-info {
    margin-top: 30px;
  }
}

/*--------------------------------------------------------------
# Product & Inner Pages
--------------------------------------------------------------*/
.inner-page .product-image-container {
  margin-bottom: 30px;
  text-align: left;
}

.inner-page .product-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.inner-page .product-links-row {
  margin-top: 40px;
}

/* General Table Styling for Inner Pages */
.inner-page table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
}

.inner-page th {
  text-align: center;
  padding: 12px;
  border: 1px solid #dddddd;
  background-color: #f2f2f2;
  font-weight: 600;
}

.inner-page td {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 12px;
}

.inner-page tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Ensure the get-started-btn is defined once and correctly */
.get-started-btn {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
  background: #ed1c23;
  border: 2px solid #ed1c23;
  color: #fff;
  text-decoration: none;
}

.get-started-btn:hover {
  color: #000;
  border-color: #3d3d3d;
  background: #fff;
}

/* Container to align product action buttons */
.inner-page .product-actions {
  text-align: left;
  margin-top: 20px;
}

/* Ensure buttons in the grid are full width on smaller screens */
.inner-page .product-links-row .get-started-btn {
  width: 100%;
  text-align: center;
}

/*--------------------------------------------------------------
# Product Accessories Page
--------------------------------------------------------------*/
.inner-page h3 {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 30px;
  color: #4b4f58;
}

.product-accessory-card {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease-in-out;
}

.product-accessory-card:hover {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  border-color: #fff;
  transform: translateY(-5px);
}

.product-accessory-card img {
  max-width: 100%;
  height: 200px; /* Gives all images a consistent height */
  object-fit: contain; /* Prevents images from stretching */
  margin-bottom: 15px;
}

.product-accessory-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #444444;
  margin-top: auto; /* Pushes title down if image is small */
  margin-bottom: 15px;
}

.product-accessory-card .get-started-btn {
  width: 100%;
}

/*--------------------------------------------------------------
# Floor Trunking Page
--------------------------------------------------------------*/
.product-sub-section {
  padding-top: 30px;
  padding-bottom: 30px;
}

.product-divider {
  margin-top: 40px;
  margin-bottom: 20px;
  border-top: 1px solid #e9ecef;
}
/*--------------------------------------------------------------
# Certificates Page
--------------------------------------------------------------*/
.certificate-section {
  margin-bottom: 40px;
}

.certificate-section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #4b4f58;
  margin-bottom: 30px;
}

.certificate-subsection-title {
  font-size: 28px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #555;
  text-align: left;
  border-bottom: 2px solid #ed1c23;
  padding-bottom: 10px;
}

.certificate-card {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease-in-out;
}

.certificate-card:hover {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  border-color: #fff;
  transform: translateY(-5px);
}

.certificate-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border: 1px solid #eee;
  padding: 5px;
  border-radius: 4px;
}

.certificate-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #444444;
  margin-top: auto;
  margin-bottom: 15px;
  min-height: 54px; /* Allocates space for up to 2 lines of text */
}

/*--------------------------------------------------------------
# Certificate Detail Page
--------------------------------------------------------------*/
.certificate-detail {
  padding: 40px 0;
}

.certificate-detail h2 {
  font-size: 28px;
  font-weight: 700;
  color: #4b4f58;
}

.certificate-detail hr {
  margin-top: 10px;
  margin-bottom: 20px;
  border-top: 2px solid #ed1c23;
  width: 50px;
}

.certificate-detail table {
  width: 100%;
  margin-bottom: 20px;
}

.certificate-detail table td {
  padding: 10px 5px;
  border-bottom: 1px solid #eef0f2;
}

.certificate-detail table td:first-child {
  font-weight: 600;
  color: #555;
  width: 35%;
}

.certificate-detail .org-logo {
  width: 100px;
  margin-top: 15px;
}

.certificate-detail .certificate-image {
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.certificate-detail .certificate-image:hover {
  transform: scale(1.03);
}
.about {
  background: url(../img/about-bg.jpg) center center no-repeat;
  background-size: cover;
  padding: 60px 0;
  position: relative;
  margin-bottom: 100px;
}

.about::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.75);
  z-index: 9;
}

.about .container {
  position: relative;
  z-index: 10;
}

.about .content {
  padding: 30px 30px 30px 0;
}

.about .content h3 {
  font-weight: 700;
  font-size: 34px;
  color: #000;
  margin-bottom: 30px;
}
.about .content p {
  margin-bottom: 30px;
}
.about .content .about-btn {
  display: inline-block;
  background: #4b4f58;
  padding: 6px 44px 8px 30px;
  color: #fff;
  border-radius: 50px;
  transition: 0.3s;
  position: relative;
}

.about .icon-boxes .icon-box i {
  font-size: 40px;
  color: #ed1c23;
  margin-bottom: 10px;
}
.about .icon-boxes .icon-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
}
.about .icon-boxes .icon-box p {
  font-size: 15px;
  color: #848484;
}
