/* Adjust main content to account for fixed navbar */
body {
    padding-top: 60px; /* Should match the navbar height */
}
a{
    text-decoration: none;
    text-transform: none;

}
a :visited{
    text-decoration: none;
    text-transform: none;
    
}
.module-hero {
    padding: 5rem 0 3rem;
    margin-top: 0px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .module-cards {
        grid-template-columns: 1fr;
    }
    
    .module-header h1 {
        font-size: 2rem;
    }
    
    .module-header p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .module-hero {
        padding: 5rem 0 3rem;
        margin-top: 50px;
    }
    
    .module-hero h1 {
        font-size: 2.25rem;
    }
    
    .module-hero p {
        font-size: 1.125rem;
    }
    
    body {
        padding-top: 50px;
    }
}

/* Module Page Specific Styles */
.module-features {
    margin: 3rem 0;
}

/* Module Features Grid (6 columns) */
.module-features .features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.module-features .feature-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-item h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Module Details Grid (5 columns) */
.module-details .features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.module-details .feature-card {
    background-color: #f0f7ff;  /* Very light blue shade */
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e1f0ff;  /* Slightly darker border for subtle definition */
}

.module-details .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 119, 255, 0.1);
}

/* Adjust icon and text sizes for 5-column layout */
.module-details .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    margin: 0 auto 0.75rem;
}

.module-details .feature-card h3 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.module-details .feature-card p {
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive adjustments for module-details */
@media (max-width: 1600px) {
    .module-details .feature-card {
        padding: 1rem 0.5rem;
    }
    
    .module-details .feature-card h3 {
        font-size: 0.85rem;
    }
    
    .module-details .feature-card p {
        font-size: 0.7rem;
    }
}

@media (max-width: 1400px) {
    .module-details .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .module-details .feature-card {
        padding: 1.25rem;
    }
    
    .module-details .feature-card h3 {
        font-size: 1rem;
    }
    
    .module-details .feature-card p {
        font-size: 0.85rem;
    }
}

/* Responsive adjustments for module-features */
@media (max-width: 1600px) {
    .module-features .feature-card {
        padding: 0.75rem 0.5rem;
    }
    
    .module-features .feature-card h3 {
        font-size: 0.85rem;
    }
    
    .module-features .feature-card p {
        font-size: 0.7rem;
    }
}

@media (max-width: 1400px) {
    .module-features .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .module-features .feature-card {
        padding: 1rem;
    }
    
    .module-features .feature-card h3 {
        font-size: 1rem;
    }
    
    .module-features .feature-card p {
        font-size: 0.8rem;
    }
}

/* Responsive adjustments for both sections */
@media (max-width: 992px) {
    .module-features .features-grid,
    .module-details .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .module-features .features-grid,
    .module-details .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .module-features .feature-card,
    .module-details .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* Container Styles */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Module Hero Section */
.module-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.module-hero .container {
    position: relative;
    z-index: 2;
}

.module-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
    max-width: 700px;
    margin-left:0px;
}

.hero-text h1 {
    font-size: 3rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 250px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.hero-image img:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .module-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        margin-left:0px;
    }
    
    .hero-image {
        margin-top: 2rem;
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
}

/* Module Details Section */
.module-details {
    padding: 5rem 0;
    background-color: #ffffff;
}

.module-content {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.module-content h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    color: #1a202c;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.module-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3182ce;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .module-details {
        padding: 3rem 0;
    }
    
    .module-content h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    
    .feature-card {
        width: 100%;
        margin: 0;
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* Additional small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .module-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container{
        padding: 0 1rem;
    }
    
    .module-hero,
    .module-details {
        padding: 2.5rem 0;
    }
}

/* Small devices (phones, 576px and up) */
@media (min-width: 576px) {
    .container,
    .module-content {
        padding: 0 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container,
    .module-content {
        padding: 0 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container,
    .module-content {
        padding: 0 1rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container{
        padding: 0 70px;
        max-width: 100%;
        
    }
}

/* Button Styles */
.secondary-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #3182ce;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.secondary-button:hover {
    background-color: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Payroll Cycle Section */
.payroll-cycle {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.payroll-cycle .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.payroll-cycle h2 {
    color: #1e293b;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.payroll-cycle .section-header p {
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.6;
}

.cycle-steps {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.cycle-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-right: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.cycle-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.step-content {
    margin-left: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    transition: all 0.3s ease;
}

.cycle-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.step-content h3 {
    color: #1e293b;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.step-connector {
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: -3rem;
    width: 2px;
    background: linear-gradient(to bottom, #e2e8f0, #cbd5e1);
    z-index: 1;
}

.cycle-step:last-child .step-connector {
    display: none;
}

.cycle-cta {
    text-align: center;
    margin-top: 4rem;
}

.cycle-cta .primary-button {
    margin-right: 1rem;
}

/* Payroll Cycle Images */
.cycle-image-desktop,
.cycle-image-mobile {
    margin: 2rem auto;
    max-width: 100%;
    text-align: center;
}

.cycle-image-desktop img,
.cycle-image-mobile img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* Show/Hide images based on screen size */
.cycle-image-desktop {
    display: block;
}

.cycle-image-mobile {
    display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .cycle-image-desktop {
        display: none;
    }
    
    .cycle-image-mobile {
        display: block;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .cycle-step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-content {
        margin: 1rem 0 0 0;
        width: 100%;
    }
    
    .step-connector {
        left: 30px;
        top: 60px;
        bottom: -3rem;
        height: calc(100% + 1rem);
    }
}

@media (max-width: 768px) {
    .payroll-cycle h2 {
        font-size: 2rem;
    }
    
    .payroll-cycle .section-header p {
        font-size: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-content {
        padding: 1.25rem;
    }
    
    .step-content h3 {
        font-size: 1.125rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cycle-step {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.cycle-step:nth-child(1) { animation-delay: 0.1s; }
.cycle-step:nth-child(2) { animation-delay: 0.2s; }
.cycle-step:nth-child(3) { animation-delay: 0.3s; }
.cycle-step:nth-child(4) { animation-delay: 0.4s; }
.cycle-step:nth-child(5) { animation-delay: 0.5s; }
.cycle-step:nth-child(6) { animation-delay: 0.6s; }

/* Module Features - Feature Cards */
.module-features .feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 600;
}

.module-features .feature-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cta-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .primary-button,
.cta-section .secondary-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-section .primary-button {
    background-color: white;
    color: #3b82f6;
    border: 2px solid white;
}

.cta-section .primary-button:hover {
    background-color: transparent;
    color: white;
}

.cta-section .secondary-button {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-section .secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .streamline-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .streamline-text > p {
        max-width: 100%;
    }
    
    .streamline-image {
        order: -1;
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .streamline-section,
    .cta-section {
        padding: 3.5rem 0;
    }
    
    .streamline-text h2,
    .cta-content h2 {
        font-size: 1.875rem;
    }
    
    .streamline-text > p,
    .cta-content p {
        font-size: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-section .primary-button,
    .cta-section .secondary-button {
        width: 100%;
        margin: 0;
    }
}
/* Payroll Management Section */
.payroll-management {
    padding: 5rem 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.payroll-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.payroll-text {
    padding-right: 2rem;
}

.payroll-text h2 {
    font-size: 2.25rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.payroll-text .lead {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.payroll-text h3 {
    font-size: 1.5rem;
    color: #1e40af;
    margin: 2.5rem 0 1.25rem;
    font-weight: 600;
}

.payroll-text p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Feature Highlight */
.feature-highlight {
    display: flex;
    align-items: flex-start;
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid #3b82f6;
}

.feature-highlight i {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-right: 1.25rem;
    margin-top: 0.25rem;
}

.feature-highlight h4 {
    color: #1e40af;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Benefits List */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2.5rem;
    padding: 0;
    list-style: none;
}

.benefits-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.6;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* CTA Box */
.cta-box {
    background: #f0f7ff;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2.5rem;
    text-align: center;
}

.cta-box h3 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

/* Payroll Image */
.payroll-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.payroll-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.payroll-image:hover img {
    transform: scale(1.02);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.image-caption i {
    color: #3b82f6;
    font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .payroll-content {
        gap: 3rem;
    }
    
    .payroll-text {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .payroll-content {
        grid-template-columns: 1fr;
    }
    
    .payroll-image {
        margin-top: 2rem;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .payroll-management {
        padding: 3rem 0;
    }
    
    .payroll-text h2 {
        font-size: 1.875rem;
    }
    
    .payroll-text .lead {
        font-size: 1.125rem;
    }
    
    .feature-highlight {
        flex-direction: column;
    }
    
    .feature-highlight i {
        margin-bottom: 1rem;
    }
}
@media (max-width: 768px) {
    .payroll-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "image"
            "text";
    }
    
    .payroll-text {
        grid-area: text;
    }
    
    .payroll-image {
        grid-area: image;
        margin: 0 0 2rem 0;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
}