/* ================================================= Accounting Section ======================================================= */
.accounting-section {
    background-color: #f5f5f5;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

/* Faded gridlines background */
.accounting-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/img/dashboard-img1.png") center/cover no-repeat;
    opacity: 0.06;
    z-index: 0;
    margin: 150px 30px 50px 30px;
}

/* Main inner container that overlays the background */
.accounting-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* ===== Left column ===== */
.accounting-left h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #2a2a0f;
    font-weight: bold;
}

.accounting-left p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #333;
    max-width: 550px;
}

.acc-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #2a2a0f;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;

    transition: background 0.2s;
}
.acc-btn:hover {
    background: transparent;
    border: 3px solid #2a2a0f;
    color: #2a2a0f;
}

/* ===== Right column ===== */
.accounting-right {
    width: 100%;
    max-width: 500px;
}

.hr-img {
    width: 100%;
}

/* ===== Responsive ===== */

/* ===== MEDIA QUERIES FOR RESPONSIVE DESIGN ===== */
@media (max-width: 1030px) {
    .accounting-container {
        text-align: center;
        gap: 30px;
    }

    .accounting-left {
        text-align: left;
    }
    .accounting-left h1 {
        font-size: 45px;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .accounting-left p {
        font-size: 18px;
    }
    .acc-btn {
        margin-top: 0;
        padding: 12px 30px;
        font-size: 18px;
    }
}

/* Tablet screens (768px and below) */
@media screen and (max-width: 768px) {
    .accounting-section {
        padding: 90px 0;
    }

    .accounting-container {
        padding: 20px 40px;
        gap: 40px;
    }

    .accounting-left h1 {
        font-size: 45px;
    }

    .accounting-left p {
        font-size: 18px;
    }

    .accounting-right img {
        max-width: 350px;
    }
}

@media screen and (max-width: 480px) {
    .accounting-section {
        padding: 90px 0 30px;
    }
    .service-section {
        display: flex;
        flex-direction: column;
        padding: 20px !important;
    }

    .accounting-section::before {
        margin: 50px 15px 25px 15px;
    }

    .accounting-container {
        padding: 20px 15px;
        gap: 20px;
        /* Keep flex row but adjust for small screens */
        flex-direction: row;
        align-items: flex-start;
    }

    /* Left column adjustments for 430px */
    .accounting-left {
        flex: 1;
        min-width: 0; /* Prevents flex item from overflowing */
    }

    .accounting-left h1 {
        font-size: 24px;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .accounting-left p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .acc-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Right column adjustments for 430px */
    .accounting-right {
        flex: 0 0 auto;
        width: 40%; /* Takes up 40% of the container width */
        max-width: 150px;
    }

    .accounting-right img {
        width: 100%;
        max-width: none;
        object-fit: contain;
    }
}

/* Extra small screens (below 380px) */
@media screen and (max-width: 380px) {
    .accounting-left h1 {
        font-size: 20px;
    }

    .accounting-left p {
        font-size: 12px;
    }

    .accounting-right {
        max-width: 120px;
    }

    .acc-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 330px) {
    .accounting-left h1 {
        font-size: 18px;
    }

    .accounting-left p {
        font-size: 11px;
    }

    .accounting-right {
        max-width: 140px;
    }

    .acc-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
}

.service-section {
    display: flex;
    flex-direction: column;
    padding: 50px;
}

.HR-payroll {
    display: flex;
    justify-content: flex-start;
    margin: 0 auto;
    max-width: 1400px;
    padding-left: 40px;
    margin-top: 80px;
}

.HR-heading h1 {
    font-size: 40px;
    color: #2a2a0f;
}

.HR-heading p {
    max-width: 1300px;
    font-size: 20px;
    color: rgb(64, 64, 64);
}

@media (max-width: 430px) {
    .HR-payroll {
        display: flex;
        justify-content: flex-start;
        margin: 0 auto;
        max-width: 1400px;
        padding-left: 10px;
        margin-top: 40px;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .HR-heading h1 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .HR-heading p {
        max-width: 1400px;
        font-size: 16px;
        text-align: justify;
        color: rgb(64, 64, 64);
        margin-bottom: 0;
    }
}

/*==============================================================Features Section==========================================*/
.features-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 1400px; /* keep content nicely centered */
    margin: 0 auto; /* center horizontally on the page */
    font-family: "Outfit", sans-serif;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    margin-top: 150px;
    font-size: 40px;
    font-weight: 700;
    color: #2a2a0f;
}

.feature {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start; /* icon and text top-aligned */
    padding-left: 20px;
    margin-bottom: 35px;
    gap: 40px; /* space between icon and text */
}

.feature-icon {
    width: 40px; /* adjust size to match design */
    height: 40px;
    flex-shrink: 0; /* prevent icon from shrinking */
}

.feature-text h3 {
    margin: 0 0 3px;
    font-size: 28px;
    font-weight: 800;
    color: #2a2a0f;
}

.feature-text p {
    margin: 0;
    line-height: 1.3;
    font-size: 1.2rem;
    max-width: 1200px;
    color: #4a4a4a;
}

.POS-features {
    margin-right: 130px;
}

/* ✅ Responsive tweak for small screens */
@media (max-width: 600px) {
    .feature {
        flex-direction: column; /* stack icon above text */
        align-items: center;
        text-align: center;
    }

    .feature-text h3 {
        margin-top: 10px;
    }
}

@media (max-width: 430px) {
    .section-title {
        font-size: 25px;
        margin-top: 60px;
        margin-bottom: 60px;
    }
    .feature-text p {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .feature-text h3 {
        margin-top: 0;
    }
    .feature {
        padding-left: 10px;
        gap: 20px;
    }
    .POS-features {
        margin-right: 20px;
    }
}

@media (max-width: 380px) {
    .POS-features {
        margin-right: 10px;
    }
}

/* Why It Works */

.why-it-section h2 {
    text-align: center;
    font-size: 40px;
    margin-top: 90px;
    color: #2a2a0f;
}

.why-list {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    justify-content: flex-start;
    max-width: 1350px;
    padding-top: 40px;
    padding-left: 40px;
}
.why-list li {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: #444;
}
.why-list li strong {
    color: #2a2a0f;
}

.get-btn-div {
    text-align: center;
    margin-top: 90px;
    margin-bottom: 9%;
}

.get-btn {
    background-color: #2a2a0f;
    color: white;
    text-decoration: none;
    padding: 20px 60px;
    border-radius: 10px;
    text-align: center;
    margin: 40px auto;
    font-weight: 700;
}

@media (max-width: 1030px) {
    .accounts-section {
        padding: 80px;
    }
}

@media (max-width: 430px) {
    .accounts-section {
        padding: 30px;
    }

    .accounts-container {
        max-width: 1350px;
        margin: 0 auto;

        color: #2a2a0f;
    }

    /* Headings */
    .accounts-container h1 {
        font-size: 22px;
        margin-bottom: 8px;
        color: #2a2a0f;
    }
    .accounts-container h2 {
        font-size: 20px;
        margin: 40px 0 20px;
        line-height: 1.2rem;
        color: #2a2a0f;
        font-weight: 800;
        text-align: center;
    }

    /* Paragraphs */
    .accounts-container p {
        font-size: 12px;
        line-height: 1.7;
        margin-bottom: 10px;
        color: #444;
        text-align: justify;
    }

    /* Why It Works */
    .why-it-section h2 {
        font-size: 20px;
        margin-top: 30px;
    }
    .why-list {
        padding-left: 20px;
    }
    .why-list li {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.6;
        color: #444;
    }
    .why-list li strong {
        color: #2a2a0f;
    }

    .get-btn-div {
        text-align: center;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .get-btn {
        background-color: #2a2a0f;
        color: white;
        text-decoration: none;
        padding: 10px 30px;
        border-radius: 10px;
        text-align: center;
        margin: 10px;
        font-size: 12px;
        font-weight: 700;
    }
}

@media (max-width: 330px) {
    .accounts-section {
        padding: 30px;
    }

    .accounts-container {
        max-width: 1350px;
        margin: 0 auto;

        color: #2a2a0f;
    }

    /* Headings */
    .accounts-container h1 {
        font-size: 18px;
        margin-bottom: 6px;
        color: #2a2a0f;
    }
    .accounts-container h2 {
        font-size: 18px;
        margin: 40px 0 20px;
        line-height: 1.2rem;
        color: #2a2a0f;
        font-weight: 800;
        text-align: center;
    }

    /* Paragraphs */
    .accounts-container p {
        font-size: 11px;
        line-height: 1.7;
        margin-bottom: 10px;
        color: #444;
        text-align: justify;
    }

    /* Ordered List for Features */
    .features-list {
        padding-left: 10px;
        margin-bottom: 20px;
        font-weight: 500;
    }

    .features-list p {
        font-size: 11px;
        color: rgb(80, 80, 80);
    }

    .features-list li {
        margin-bottom: 10px;
        font-size: 11px;
        line-height: 1.6;
    }
    .features-list li strong {
        color: #2a2a0f;
        font-size: 11px;
    }

    .features-head {
        font-size: 11px;
    }

    /* Nested unordered list inside features */
    .features-list ul {
        margin-top: 5px;
        margin-left: 10px;
        line-height: 1.3;
        margin-bottom: 30px;
        padding-left: 20px;
    }
    .features-list ul li {
        font-size: 11px;
        margin-bottom: 8px;
        color: #555;
        list-style-type: disc;
    }

    /* Why It Works */
    .why-it-section h2 {
        font-size: 20px;
    }
    .why-list {
        padding-left: 20px;
    }
    .why-list li {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.6;
        color: #444;
    }
    .why-list li strong {
        color: #2a2a0f;
    }

    .get-btn-div {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .get-btn {
        background-color: #2a2a0f;
        color: white;
        text-decoration: none;
        padding: 5px 20px;
        border-radius: 5px;
        text-align: center;
        margin: 8px;
        font-size: 11px;
        font-weight: 700;
    }
}

.get-btn:hover {
    background: transparent;
    border: 3px solid #2a2a0f;
    color: #2a2a0f;
    font-weight: 700;
}
