.background-wrapper {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #e5e5f7;
  background-image: radial-gradient(#444cf7 0.5px, transparent 0.5px), radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.main-content {
  display: flex;
  justify-content: center;
  padding: 20px;
}
.section-title {
  text-align: center;
  padding: 40px 20px 20px;
}

.section-title h1 {
  font-size: 4rem; /* Default for larger screens */
  margin-bottom: 20px;
  background: linear-gradient(180deg, #01fdfd, #2596be);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.2);
  padding-top: 50px;
  text-align: center; /* Center the h1 text */
}

@media (max-width: 768px) {
  .section-title h2 {
      font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title h2 {
      font-size: 1.8rem;
  }
}

.spacer-left,
.spacer-right {
  flex: 1;
  min-width: 50px;
}

.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
}

.card-block, .active {
  flex: 1 1 calc(30% - 20px);
  background-color: #fff;
  color: #000;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  padding: 0;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
      text-decoration: none; /* Prevents underlining by default */
	    transform: translateY(-10px);
}

.active {
  transform: translateY(-10px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  background-color: #003f63;
  color: #fff;
}

.card-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  background-color: #003f63;
  color: #fff;
      text-decoration: none; /* Prevents underlining by default */
}

.image-wrapper {
  height: 150px;
  background-size: cover;
  background-position: center;
}

.block-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px;
}

.block-description {
  margin: 15px;
  line-height: 1.6;
}


/* Mobile Styling */
@media (max-width: 768px) {
  .section-title h1 {
    font-size: 2.5rem; /* Smaller font for tablets */
    letter-spacing: 1px;
    padding-top: 20px; /* Adjust padding for better fit */
    margin-bottom: 15px; /* Reduce bottom margin */
    margin-right: 10px; /* Add right margin for better alignment */
    margin-left: 5px; /* Add left margin for better alignment */
}

  .main-content {
    flex-direction: column;
  }

  .spacer-left,
  .spacer-right {
    display: none;
  }

  .cards-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .card-block {
    flex: 1 1 100%;
  }


}
        body {
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding: 0;
        }

        .payroll-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: #0b1a2d;
            color: white;
            text-align: center;
            padding: 1rem 0;
            z-index: 1000;
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
        }

        .payroll-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #0b1a2d;
            color: white;
            text-align: center;
            padding: 1rem 0;
            z-index: 1000;
            box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.2);
        }

        .payroll-body {
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
        }

        .payroll-sidebar {
            width: 250px;
            background-color: #f9f9f9;
            border-right: 1px solid #ddd;
            height: calc(100vh - 160px); /* Adjust for header and footer height */
            position: fixed;
            top: 80px; /* Header height */
            left: 0;
            padding: 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .payroll-sidebar a {
            text-decoration: none;
            color: #000;
            font-size: 1rem;
            font-weight: 600;
            padding: 0.7rem 1rem;
            border-radius: 5px;
            transition: background-color 0.3s, color 0.3s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border: 1px solid #ddd;
            margin-bottom: 0.5rem;
            width: 100%;
            justify-content: center;
        }

        .payroll-sidebar a:hover {
            background-color: #0b1a2d;
            color: white;
        }

        .payroll-content {
            margin-left: 250px;
            margin-top: 80px; /* Header height */
            margin-bottom: 80px; /* Footer height */
            padding: 2rem;
            flex-grow: 1;
        }

        @media (max-width: 768px) {
          .hero-texts h1 {
            font-size: 2rem; /* Even smaller font for small devices */
            letter-spacing: 0.5px;
            padding-top: 10px; /* Reduce padding further */
            margin-bottom: 10px; /* Reduce bottom margin further */
            margin-right: 5px;
            margin-left: 5px;
        }
            .payroll-sidebar {
                width: 100%;
                height: auto;
                border-right: none;
                border-bottom: 1px solid #ddd;
                position: fixed;
                top: 80px;
                flex-direction: row;
                justify-content: space-around;
                overflow-x: auto;
                z-index: 900;
            }

            .payroll-sidebar a {
                padding: 0.3rem 0.5rem;
                font-size: 0.8rem;
                flex-shrink: 0;
                border: 1px solid #ddd;
                margin: 0 0.3rem;
                width: 25%;
            }

            .payroll-content {
                margin-left: 0;
                margin-top: 140px; /* Header + Sidebar height */
                margin-bottom: 80px; /* Footer height */
            }
        }