/* ----------------------------------
   Work Management - Workflow Tab Layout (Scoped from test.html)
   ---------------------------------- */

#wm-tab-workflow .workflow-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    /* Fixed width for sides, flexible center */
    gap: 30px;
    align-items: stretch;
    margin-top: 40px;
}

/* ----------------------------------
   Side Columns & Cards
   ---------------------------------- */
#wm-tab-workflow .side-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#wm-tab-workflow .feature-card {
    background-color: #F5FAFF;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

/* Circular Check/Arrow Icon */
#wm-tab-workflow .icon-circle {
    width: 36px;
    height: 36px;
    background-color: #4a77b4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 20px;
}

#wm-tab-workflow .icon-circle svg {
    width: 18px;
    height: 18px;
}

#wm-tab-workflow .feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

#wm-tab-workflow .feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* ----------------------------------
   Center Column (Blue Image Container)
   ---------------------------------- */
#wm-tab-workflow .center-col {
    display: flex;
}

#wm-tab-workflow .image-wrapper {
    background-color: #4a77b4;
    border-radius: 16px;
    padding: 20px;
    /* added padding as image looks absolute */
    width: 100%;
    position: relative;
    /* overflow: hidden; */
    /* user left commented */
}

/* Shared styling for all 5 mockup images */
#wm-tab-workflow .mockup-img {
    border-radius: 8px;
    object-fit: contain;
    /* subtle depth */
}

/* Image 1: Acts as the base layer. */
#wm-tab-workflow .mockup-1 {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

/* Images 2-5: Custom positioned absolute layers. */
#wm-tab-workflow .mockup-2 {
    position: absolute;
    width: 65%;
    top: 15%;
    left: 35%;
    z-index: 2;
}

#wm-tab-workflow .mockup-3 {
    position: absolute;
    width: 80%;
    top: 35%;
    left: 2%;
    z-index: 3;
}

#wm-tab-workflow .mockup-4 {
    position: absolute;
    width: 85%;
    bottom: 24%;
    left: 16%;
    z-index: 4;
}

#wm-tab-workflow .mockup-5 {
    position: absolute;
    width: 800%;
    /* User left width: 80% with typo? Let's fix to fit container comfortably */
    width: 80%;
    bottom: 0%;
    left: 1%;
    z-index: 1;
}

/* ----------------------------------
   Responsive Adjustments
   ---------------------------------- */
@media (max-width: 1100px) {
    #wm-tab-workflow .workflow-layout {
        grid-template-columns: 260px 1fr 260px;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    #wm-tab-workflow .workflow-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "center center"
            "left right";
    }

    #wm-tab-workflow .center-col {
        grid-area: center;
        margin-bottom: 20px;
    }

    #wm-tab-workflow .side-col:first-child {
        grid-area: left;
    }

    #wm-tab-workflow .side-col:last-child {
        grid-area: right;
    }
}

@media (max-width: 650px) {
    #wm-tab-workflow .workflow-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "left"
            "right";
    }

    #wm-tab-workflow .image-wrapper {
        padding: 15px;
    }
}

/* ----------------------------------
   Work Management - Task Board Tab Layout (Scoped from test2.html)
   ---------------------------------- */

#wm-tab-taskboard .workflow-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 30px;
    align-items: stretch;
    margin-top: 40px;
}

#wm-tab-taskboard .side-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* ensures 4 items distribute evenly */
    gap: 20px;
}

#wm-tab-taskboard .feature-card {
    background-color: #F5FAFF;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

#wm-tab-taskboard .icon-circle {
    width: 36px;
    height: 36px;
    background-color: #4a77b4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 20px;
}

#wm-tab-taskboard .icon-circle svg {
    width: 18px;
    height: 18px;
}

#wm-tab-taskboard .feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

#wm-tab-taskboard .feature-card p {
    font-family: "DM Sans";
    font-size: 18px;
    line-height: 30px;
    color: #696969;
    margin: 0;
    font-weight: 400;
}

#wm-tab-taskboard .center-col {
    display: flex;
}

#wm-tab-taskboard .image-wrapper {
    background-color: #4a77b4;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#wm-tab-taskboard .mockup-img {
    position: relative;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

#wm-tab-taskboard .mockup-6 {
    width: 90%;
    z-index: 1;
    margin-left: -130px;
}

#wm-tab-taskboard .mockup-7 {
    width: 30%;
    z-index: 2;
    margin-top: -50px;
    /* adjusted overlap since Flex negative margin needs to match screenshot depth */
}

#wm-tab-taskboard .mockup-7 {
    width: 30%;
    z-index: 2;
    margin-top: -290px;
    margin-right: -450px;
}

#wm-tab-taskboard .mockup-9 {
    width: 95%;
    z-index: 4;
}

/* ----------------------------------
   Responsive Adjustments (Taskboard)
   ---------------------------------- */
@media (max-width: 1100px) {
    #wm-tab-taskboard .workflow-layout {
        grid-template-columns: 260px 1fr 260px;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    #wm-tab-taskboard .workflow-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "center center"
            "left right";
    }

    #wm-tab-taskboard .center-col {
        grid-area: center;
        margin-bottom: 20px;
    }

    #wm-tab-taskboard .side-col:first-child {
        grid-area: left;
    }

    #wm-tab-taskboard .side-col:last-child {
        grid-area: right;
    }
}

@media (max-width: 650px) {
    #wm-tab-taskboard .workflow-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "left"
            "right";
    }

    #wm-tab-taskboard .image-wrapper {
        padding: 15px;
    }
}

/* ----------------------------------
   Work Management - Cost Calculation Tab Layout
   ---------------------------------- */

#wm-tab-cost .workflow-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 30px;
    align-items: stretch;
    margin-top: 40px;
}

#wm-tab-cost .side-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centering 2 items evenly */
    gap: 40px;
}

#wm-tab-cost .feature-card {
    background-color: #F5FAFF;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

#wm-tab-cost .icon-circle {
    width: 36px;
    height: 36px;
    background-color: #4a77b4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 20px;
}

#wm-tab-cost .icon-circle svg {
    width: 18px;
    height: 18px;
}

#wm-tab-cost .feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

#wm-tab-cost .feature-card p {
    font-family: "DM Sans";
    font-size: 18px;
    line-height: 30px;
    color: #696969;
    margin: 0;
    font-weight: 400;
}

#wm-tab-cost .center-col {
    display: flex;
}

#wm-tab-cost .image-wrapper {
    background-color: #4a77b4;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wm-tab-cost .mockup-img {
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

#wm-tab-cost .mockup-10 {
    position: relative;
    width: 110%;
    z-index: 1;
    margin-top: -134px;
}

#wm-tab-cost .mockup-11 {
    position: absolute;
    width: 65%;
    bottom: 5%;
    left: 17%;
    z-index: 2;
}

@media (max-width: 1100px) {
    #wm-tab-cost .workflow-layout {
        grid-template-columns: 260px 1fr 260px;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    #wm-tab-cost .workflow-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "center center"
            "left right";
    }

    #wm-tab-cost .center-col {
        grid-area: center;
        margin-bottom: 20px;
    }

    #wm-tab-cost .side-col:first-child {
        grid-area: left;
    }

    #wm-tab-cost .side-col:last-child {
        grid-area: right;
    }
}

@media (max-width: 650px) {
    #wm-tab-cost .workflow-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "left"
            "right";
    }

    #wm-tab-cost .image-wrapper {
        padding: 15px;
    }
}

/* ----------------------------------
   Work Management - Team Management Tab Layout
   ---------------------------------- */

#wm-tab-team .workflow-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    /* 2 card cols, 1 image col on right */
    gap: 30px;
    align-items: stretch;
    margin-top: 40px;
}

#wm-tab-team .side-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#wm-tab-team .feature-card {
    background-color: #F5FAFF;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

#wm-tab-team .icon-circle {
    width: 36px;
    height: 36px;
    background-color: #4a77b4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

#wm-tab-team .icon-circle svg {
    width: 18px;
    height: 18px;
}

#wm-tab-team .feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

#wm-tab-team .feature-card p {
    font-family: "DM Sans";
    font-size: 18px;
    line-height: 30px;
    color: #696969;
    margin: 0;
    font-weight: 400;
}

#wm-tab-team .center-col {
    display: flex;
    /* actually Acts as column 3 wrapper */
}

#wm-tab-team .image-wrapper {
    background-color: #4a77b4;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    /* stacks flex images vertically with gaps */
}

#wm-tab-team .mockup-img {
    position: relative;
    width: 100%;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

@media (max-width: 1100px) {
    #wm-tab-team .workflow-layout {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 900px) {
    #wm-tab-team .workflow-layout {
        grid-template-columns: 1fr;
        /* Single column stack simplifies overlap */
    }
}

/* ----------------------------------
   Work Management - Recurring Templates Tab Layout
   ---------------------------------- */

#wm-tab-recurring .workflow-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 30px;
    align-items: stretch;
    margin-top: 40px;
}

#wm-tab-recurring .side-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centering 2 items evenly */
    gap: 40px;
}

#wm-tab-recurring .feature-card {
    background-color: #F5FAFF;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

#wm-tab-recurring .icon-circle {
    width: 36px;
    height: 36px;
    background-color: #4a77b4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 20px;
}

#wm-tab-recurring .icon-circle svg {
    width: 18px;
    height: 18px;
}

#wm-tab-recurring .feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

#wm-tab-recurring .feature-card p {
    font-family: "DM Sans";
    font-size: 18px;
    line-height: 30px;
    color: #696969;
    margin: 0;
    font-weight: 400;
}

#wm-tab-recurring .center-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* gap between image container and center card */
}

#wm-tab-recurring .image-wrapper {
    background-color: #4a77b4;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wm-tab-recurring .mockup-img {
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

#wm-tab-recurring .mockup-15 {
    position: relative;
    width: 105%;
    z-index: 1;
    margin-top: -32px;
}


#wm-tab-recurring .mockup-16 {
    position: absolute;
    width: 57%;
    bottom: -4%;
    left: 22%;
    z-index: 2;
}

@media (max-width: 1100px) {
    #wm-tab-recurring .workflow-layout {
        grid-template-columns: 260px 1fr 260px;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    #wm-tab-recurring .workflow-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "center center"
            "left right";
    }

    #wm-tab-recurring .center-col {
        grid-area: center;
        margin-bottom: 20px;
    }

    #wm-tab-recurring .side-col:first-child {
        grid-area: left;
    }

    #wm-tab-recurring .side-col:last-child {
        grid-area: right;
    }
}

@media (max-width: 650px) {
    #wm-tab-recurring .workflow-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "left"
            "right";
    }

    #wm-tab-recurring .image-wrapper {
        padding: 15px;
    }
}

/* ----------------------------------
   Sticky Headers Configuration
   ---------------------------------- */

html body header.practice-header {
    position: sticky;
    top: 0;
    z-index: 1010;
    /* Keep above tabs header */
    background: #ffffff;
}

.work-tabs-section {
    padding-bottom: 60px;
    background: #ffffff
        /* Light greenish tint background */
}

.work-tabs-section .tabs-header-wrapper {
    position: sticky;
    top: 80px;
    /* Offset to sit nicely under the sticky main header (~80px height) */
    z-index: 999;
    background-color: var(--billing-hero-bg);
    width: 100%;
    margin-bottom: 40px;
    border-top: 1px solid #E5E7EB;
}

.work-tabs-section .tabs-header-inner {
    padding: 20px;
    background-color: #ffffff;
    margin-top: -5px;
}

/* Tabs Header */
.work-tabs-section .tabs-header {
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow-x: auto;
    /* Allow scrolling on small screens */
    white-space: nowrap;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.work-tabs-section .tabs-header::-webkit-scrollbar {
    display: none;
}

.work-tabs-section .container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.work-tabs-section .container,
.row-middle,
.row-bottom,
.left-stacked,
.whatsapp-card {
    gap: 80px !important;
}

.quick-label {
    font-family: "Rethink Sans";
    font-weight: 600;
    font-size: 16px;
    line-height: 18px;
    text-align: center;
    margin-bottom: 12px;
    display: block;
    color: #4a77b4;
}

.tab-item.active {
    color: #4a77b4;
    font-weight: 700;
}

.tab-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #4a77b4;
    transition: width 0.3s ease;
}

.feature-card-work {
    background-color: #E0F1FD;
    border: 1px solid #e1eced;
    border-radius: 16px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cards-pane-work {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ----------------------------------
   Features Section (Large Cards) - Work Suffix
---------------------------------- */
.features-section-work {
    padding: 80px 0;
    background-color: #f8fafc;
    width: 100%;
}

.features-container-work {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.features-section-work .section-header-work {
    text-align: center;
    margin-bottom: 50px;
}

.features-section-work .section-header-work h2 {
    font-family: "Rethink Sans";
    font-size: 48px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.5px;
}

.features-section-work .section-header-work p {
    font-family: "DM Sans";
    font-size: 18px;
    font-weight: 400;
    color: #696969;
    letter-spacing: -0.5px;
}

.features-section-work .features-list-work {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Scoped specifically for features-section-work to avoid conflict with the existing .feature-card-work */
.features-section-work .feature-card-work {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 40px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.frame-outer-work-board {
    background-color: #3c73b9;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.features-section-work .card-image-work {
    flex: 1.1;
    display: block;
}

.features-section-work .frame-outer-work {
    background-color: #4a77b4;
    padding: 30px 15px;
    border-radius: 16px;
}

.features-section-work .frame-outer-work img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.features-section-work .dual-image-frame-work {
    min-height: 320px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.features-section-work .img-top-right-work {
    width: 85%;
    margin-left: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.features-section-work .img-bottom-left-work {
    width: 75%;
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-radius: 8px;
}

.features-section-work .single-image-frame-work {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.features-section-work .single-image-frame-work img {
    margin-bottom: -40px;
    width: 55%;
    height: auto;
    border-radius: 8px;
}

.features-section-work .card-text-work {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.features-section-work .card-text-work h3 {
    font-family: "Rethink Sans";
    font-size: 24px;
    font-weight: 700;
    color: #04101C;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.features-section-work .card-text-work p.description-work {
    font-family: "Inter";
    font-size: 16px;
    line-height: 1.6;
    color: #404040;
    margin-bottom: 15px;
}

.features-section-work .feature-bullets-work {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.features-section-work .feature-bullets-work li {
    font-family: "Inter";
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: #696969;
    line-height: 1.5;
}

.features-section-work .icon-circle-work {
    width: 24px;
    height: 24px;
    background-color: #4a77b4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -2px;
}

.features-section-work .icon-circle-work svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 900px) {
    .features-section-work .feature-card-work {
        padding: 30px;
        gap: 30px;
    }

    .features-section-work .card-text-work h3 {
        font-size: 22px;
    }

    .features-section-work .dual-image-frame-work {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .features-section-work .section-header-work h2 {
        font-size: 32px;
    }

    .features-section-work .feature-card-work {
        flex-direction: column;
    }

    .features-section-work .card-image-work,
    .features-section-work .card-text-work {
        width: 100%;
    }

    .features-section-work .frame-outer-work {
        padding: 12px;
    }

    .features-section-work .single-image-frame-work img {
        width: 70%;
    }

    .features-section-work .dual-image-frame-work {
        min-height: 240px;
    }

    .features-section-work .img-bottom-left-work {
        bottom: 10px;
    }
}

.copyright-bar {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.brand-desc {
    font-family: 'DM Sans';
    font-weight: 300;
    font-style: normal;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0%;
    vertical-align: middle;
    margin-top: 20px;
    color: #99A8AB;
    opacity: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}