/* ========================= PAYROLL BANNER ========================= */
.payroll-banner {
    height: 400px;
    background: url("payrollbanner.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(56, 75, 66, 0.7); /* Matching header emerald tone */
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.25rem;
    max-width: 650px;
    opacity: 0.95;
    font-weight: 300;
}

/* ========================= PAYROLL SERVICES ========================= */ 
.payroll-services {
    padding: 6rem 0;
    background: #f8fafc;
}

.payroll-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .payroll-grid { grid-template-columns: repeat(2, 1fr); }
}

.payroll-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.payroll-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -5px rgba(16, 185, 129, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border-color: #a7f3d0;
}

/* New Icon Box Styles */
.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.payroll-card:hover .icon-box {
    background: #10b981;
    color: white;
}

.card-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.payroll-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    /* Removed bottom border for cleaner look */
}

.payroll-card ul {
    padding-left: 1.25rem;
    list-style-type: disc;
    margin-top: auto; /* Pushes list down if we add more content */
}

.payroll-card li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #64748b;
    line-height: 1.6;
}

/* ========================= FEATURES SECTION ========================= */
.payroll-features {
  padding: 6rem 0;
  background: url("source1.jpg") center/cover no-repeat fixed;
  position: relative;
}
.payroll-features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 78, 59, 0.85); /* Deep emerald overlay */
  z-index: 1;
}
.payroll-features .container {
  position: relative;
  z-index: 2;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================= CTA ========================= */
.payroll-cta {
  width: 100%;
  background: url("coffee.jpg") center/cover no-repeat;
  padding: 5rem 0;
  margin: 0;
  position: relative;
  text-align: center;
  color: #fff;
}
.payroll-cta::before {
    content: ''; position: absolute; inset: 0; background: rgba(15, 23, 42, 0.6); z-index: 0;
}
.cta-content {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
}

.payroll-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
}

.payroll-cta p {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  transition: transform 0.4s ease;
}

/* Hover upscale effect */
.cta-content:hover h2,
.cta-content:hover p {
  transform: scale(1.02);
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #10b981;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

.cta-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}