/* Custom styles for Client Management page */
.container {
    justify-content: center;
    display: flex;
    max-width: 1350px;
    width: 100%;
    margin: 0 auto;
    padding: 0 35px;
}


.client-managment-section {
    padding: 80px 0;
    min-height: calc(100vh - 140px);
    /* Vertical centering in viewport */
    background-image: url('../images/practice/client-managment/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ----------------------------------
Main Card Container
---------------------------------- */
.client-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 1100px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    overflow: hidden;
}

/* ----------------------------------
Left Pane (Text Content)
---------------------------------- */
.card-left {
    flex: 1.3;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-left h2 {
    font-family: "Rethink Sans";
    font-size: 48px;
    font-weight: 700;
    color: #0A1629;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.highlight-blue {
    color: #387BBB;
    display: block;
}

.card-left p {
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 30px;
}

/* Features Row */
.features-row {
    display: flex;
    gap: 30px;
    align-items: center;
}

.feature-item {
    font-family: "Rethink Sans";
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 400;
    color: #0f172a;
}

/* Blue Check Icon */
.check-icon {
    width: 20px;
    height: 20px;
    background-color: #4b7bb4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ----------------------------------
Right Pane (Blue Background & Pills)
---------------------------------- */
.card-right {
    flex: 1;
    background-color: #4b7bb4;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

/* White Pill Item */
.pill-item {
    background-color: #ffffff;
    font-family: 'inter';
    color: #1f2937;
    font-size: 19px;
    font-weight: 400;
    padding: 14px 28px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 4-Point Star Icon */
.star-icon {
    width: 30px;
    height: 30px;
    fill: #4b7bb4;
    flex-shrink: 0;
}

/* ----------------------------------
Responsive Adjustments
---------------------------------- */
@media (max-width: 900px) {
    .card-left {
        padding: 40px 30px;
    }

    .card-right {
        padding: 40px 30px;
    }

    .card-left h2 {
        font-size: 32px;
    }

    .pill-item {
        font-size: 15px;
        padding: 12px 24px;
    }
}

@media (max-width: 768px) {
    .client-card {
        flex-direction: column;
    }

    .features-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .card-left h2 {
        font-size: 28px;
    }
}

/* ----------------------------------
   Matter Section (Why it matters)
---------------------------------- */
.client-matter-section {
    padding: 80px 0;
    background: #F5FAFF;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.matter-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 1300px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); */
    padding: 40px;
    display: flex;
    gap: 50px;
    align-items: center;
}

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

.card-text h2 {
    font-family: "Rethink Sans";
    font-size: 40px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.card-text>p {
    font-family: "DM Sans";
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 24px;
}

.highlight-box {
    background-color: #f9fafb;
    border-left: 4px solid #4a77b4;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.highlight-box p {
    font-family: "Rethink Sans";
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
    color: #000000;
    margin: 0;
}

.custom-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.custom-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Rethink Sans";
    font-size: 16px;
    font-weight: 500;
    color: #606060;
}

.list-bullet {
    width: 8px;
    height: 8px;
    background-color: #387BBB;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin-top: 5px;
    /* Alignment with text */
}

.card-image {
    flex: 1;
    display: flex;
}

.card-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .matter-card {
        padding: 30px;
        gap: 30px;
    }

    .card-text h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .matter-card {
        flex-direction: column;
    }

    .card-image {
        width: 100%;
    }
}

/* ----------------------------------
   Solution Section (One Complete Client Profile)
---------------------------------- */
.solution-section {
    padding: 80px 0;
    background-color: #ffffff;
    width: 100%;
}

.solution-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

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

.subtitle {
    display: block;
    color: #3730a3;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: "Rethink Sans";
    font-size: 48px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 18px;
    font-weight: 400;
    font-family: "DM Sans";
    line-height: 1.6;
    color: #696969;
    max-width: 700px;
    margin: 0 auto;
}

.content-split {
    display: flex;
    gap: 40px;
    align-items: center;
}

.image-pane {
    flex: 1.3;
}

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

.frame-inner {
    padding: 4px;
    border-radius: 12px;
}

.frame-inner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

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

.feature-card {
    background-color: #f6fbfb;
    border: 1px solid #e1eced;
    border-radius: 16px;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.icon-circle svg {
    width: 18px;
    height: 18px;
}

.icon-circle svg.logo-icon-svg {
    width: 60% !important;
    height: auto !important;
}

.feature-card p {
    font-family: "Rethink Sans";
    font-size: 18px;
    line-height: 1.6;
    color: #363739;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 1024px) {
    .content-split {
        gap: 30px;
    }

    .feature-card {
        padding: 24px;
    }

    .section-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .content-split {
        flex-direction: column;
    }

    .image-pane,
    .cards-pane {
        width: 100%;
    }

    .frame-outer {
        padding: 10px;
    }

    .section-header h2 {
        font-size: 28px;
    }
}

/* ----------------------------------
   How It Works Section (Timeline)
---------------------------------- */
.how-it-works-section {
    padding: 100px 0;
    background-color: #387BBB;
    color: #ffffff;
    width: 100%;
}

.timeline-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 0 20px;
}

.left-col {
    flex: 0 0 35%;
    position: sticky;
    top: 100px;
}

.left-col h2 {
    font-family: "Rethink Sans";
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.left-col p {
    font-family: "Rethink Sans";
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    color: #ffffff;
    padding-right: 20px;
}

.right-col {
    flex: 1;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 7px;
    width: 2px;
    height: calc(100% + 50px);
    background-color: #ffffff;
    z-index: 1;
}

.node-col {
    width: 16px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.node {
    width: 16px;
    height: 16px;
    border: 4px solid #ffffff;
    background-color: #5282c1;
    border-radius: 50%;
    margin-top: 16px;
    position: relative;
    z-index: 3;
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    color: #5282c1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-content h3 {
    font-family: "Rethink Sans";
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.step-content p {
    font-family: "DM Sans";
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .timeline-container {
        gap: 40px;
    }

    .left-col h2 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 60px 0;
    }

    .timeline-container {
        flex-direction: column;
    }

    .left-col {
        flex: none;
        width: 100%;
        position: static;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .right-col {
        width: 100%;
    }

    .timeline-step {
        gap: 20px;
    }
}

/* ----------------------------------
   Features Section (Large Cards)
---------------------------------- */
.features-section {
    padding: 80px 0;
    background-color: #f8fafc;
    /* Very light gray/blue background matching test2.html */
    width: 100%;
}

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

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

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

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

.features-section .feature-card {
    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;
    /* Fix stacked layout leak */
    gap: 20px;
    align-items: center;
}

.features-section .card-image {
    flex: 1.1;
    display: block;
    /* Override global flex from other sections */
}

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

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

/* Specific Layout for Card 1 (Dual Overlapping Images) */
.features-section .dual-image-frame {
    min-height: 320px;
    padding: 20px;
    position: relative;
    /* Contain absolute children */
    overflow: hidden;
    /* Conform to design overhang clip */
}

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

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

/* Specific Layout for Card 2 (Narrow Centered Image) */
.features-section .single-image-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

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

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

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

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

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

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

.features-section .icon-circle {
    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 .icon-circle svg {
    width: 12px;
    height: 12px;
}

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

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

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

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

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

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

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

    .features-section .single-image-frame img {

        width: 70%;
    }

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

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

/* ----------------------------------
Split Banner Layout
---------------------------------- */
.benefits-banner {
    display: flex;
    width: 100%;
    margin-top: 60px;
    /* Add some spacing from features */
}

.benefits-banner .pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefits-banner .left-pane {
    background-color: #4f80bb;
    color: #ffffff;
    padding: 60px 7%;
    justify-content: flex-start !important;
}

.benefits-banner .left-pane h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.benefits-banner .left-pane p {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: #f8fafc;
    max-width: 500px;
}

.benefits-banner .right-pane {
    background-color: #121f33;
    color: #ffffff;
    padding: 60px 8% 60px 4%;
    justify-content: flex-start !important;
}

.benefits-banner .right-pane h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 100%;
}

.benefits-banner .benefit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.benefits-banner .benefit-list li {
    display: flex;
    align-items: unset;
    gap: 16px;
    font-size: 17px;
    font-weight: 400;
    color: #e2e8f0;
}

.benefits-banner .icon-circle {
    width: 28px;
    height: 28px;
    background-color: #4f80bb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefits-banner .icon-circle svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

@media (max-width: 1024px) {
    .benefits-banner .left-pane {
        padding: 60px 5%;
    }

    .benefits-banner .right-pane {
        padding: 60px 5%;
    }

    .benefits-banner .left-pane h2 {
        font-size: 36px;
    }

    .benefits-banner .left-pane p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .benefits-banner {
        flex-direction: column;
    }

    .benefits-banner .left-pane,
    .benefits-banner .right-pane {
        width: 100%;
        padding: 60px 20px;
    }

    .benefits-banner .left-pane h2 {
        font-size: 32px;
    }

    .benefits-banner .right-pane h3 {
        font-size: 20px;
    }

    .benefits-banner .benefit-list li {
        font-size: 16px;
    }
}

/* ========================================
   FAQ SECTION
   ======================================== */
.client-faq-section {
    padding: 80px 20px;
    background-color: #f8fafc;
    /* Changed to match practice.html look, or maybe test3 background? Actually test3 has an off-white background (#f8fafc or #f4f6f8) */
}

.client-faq-section .container {
    max-width: 850px;
    margin: 0 auto;
    display: block !important;
}

.client-faq-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.client-faq-section .subtitle {
    display: block;
    color: #6b8ab6;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.client-faq-section .section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #3b6598;
    letter-spacing: -0.5px;
}

.client-faq-section .faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.client-faq-section .faq-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
    transition: border-color 0.2s ease;
}

.client-faq-section .faq-card:hover {
    border-color: #d1d5db;
}

.client-faq-section .faq-question-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.client-faq-section .faq-question-row h3 {
    font-family: 'Rethink Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #170f49;
    line-height: 1.5;
    margin: 0;
}

.client-faq-section .icon-circle {
    width: 28px;
    height: 28px;
    background-color: #4a77b4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-faq-section .icon-circle svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 2px;
    transition: transform 0.2s ease;
}

.client-faq-section .faq-answer {
    max-height: 1000px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin-top: 12px;
    padding-right: 40px;
}

.client-faq-section .faq-answer p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #6f6c8f;
    margin: 0;
}

/* Accordion Collapsed State */
.client-faq-section .faq-card.collapsed .faq-answer {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    margin-top: 0 !important;
}

.client-faq-section .faq-card.collapsed .icon-circle svg {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .client-faq-section .section-header h2 {
        font-size: 28px;
    }

    .client-faq-section .faq-card {
        padding: 20px;
    }

    .client-faq-section .faq-answer {
        padding-right: 0;
    }
}

/* Hero Features Row column override */
.client-managment-section .features-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
}

/* ----------------------------------
   Feature Cards Image Overrides (Card 3 onwards)
   ---------------------------------- */
/* Card 2: Credentials & Access Records */
.features-section .cred-frame {
    overflow: visible !important;
    position: relative !important;
    min-height: 340px !important;
}

.cred-top-right {
    position: absolute !important;
    top: 20px !important;
    right: 15px !important;
    width: 95% !important;
    z-index: 2 !important;
}

.cred-bottom-left {
    position: absolute !important;
    bottom: 0px !important;
    left: 20px !important;
    width: 90% !important;
    z-index: 2 !important;
}

/* Card 3: DSC Status Management */
.dsc-img {
    /* Add individual styles */
}

/* Card 4: Document Register */
.features-section .doc-reg-frame {
    overflow: visible !important;
    position: relative !important;
    min-height: 340px !important;
}

.doc-top-right {
    position: absolute !important;
    top: 13px !important;
    right: 120px !important;
    width: 55% !important;
    z-index: 2 !important;
}

.doc-bottom-left {
    position: absolute !important;
    bottom: 0px !important;
    left: 58px !important;
    width: 75% !important;
    z-index: 2 !important;
}

/* Card 5: Client Nexus */
.features-section .card-image .nexus-img {
    width: 70% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

/* --- Customer Dashboard Section (Migrated from test.html) --- */
.billing-dashboard-section {
    background: #4b7bb4;
    /* min-height: 100vh; */
    /* Removed min-height to fit naturally in the page flow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px;
    padding-bottom: 0;
    overflow: hidden;
    position: relative;
}

.billing-dashboard-wrapper {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

.billing-dashboard-section .subtitle {
    color: #ffffff;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.billing-dashboard-title {
    font-family: "Rethink Sans";
    font-weight: 700;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: 0%;
    color: #f9f9f9;
    margin-bottom: 24px;
}

.billing-dashboard-description {
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    letter-spacing: 0%;
    color: #d0e3ff;
    max-width: 750px;
    margin: 0 auto;
}

.billing-dashboard-image-container {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.billing-dashboard-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .billing-dashboard-title {
        font-size: 32px;
        line-height: 40px;
    }

    .billing-dashboard-section {
        padding-top: 60px;
    }
}

/* --- Auto-Scrolling Dashboard Cards (New Section) --- */
.dash-scroll-section {
    background: #F5FAFF;
    padding: 30px 0 50px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.dash-scroll-track {
    display: flex;
    gap: 30px;
    animation: dash-scroll 40s linear infinite;
    width: max-content;
    padding-left: 20px;
}

.dash-scroll-track:hover {
    animation-play-state: paused;
}

.dash-scroll-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    width: 320px;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: normal;
    transition: transform 0.3s ease;
}

.dash-scroll-card:hover {
    transform: translateY(-5px);
}

.dash-card-icon {
    background: #4b7bb4;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.dash-card-icon img {
    width: 20px;
    height: auto;
    display: block;
}

.dash-card-title {
    font-family: "Rethink Sans";
    font-weight: 700;
    font-size: 20px;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.dash-card-desc {
    font-family: "DM Sans";
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

@keyframes dash-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half the width (first set) */
    }
}



/* --- Invoicing Features Bento Grid --- */

/* Import Inter font to match the clean design system */





.container {
    margin: 0 auto;
}

/* ----------------------------------
       Header Section
       ---------------------------------- */
.features-section#features .tab-headline {
    text-align: center;
    margin-bottom: 50px;
}

.features-section#features .quick-label {
    display: block;
    color: #4a77b4;
    /* Theme blue */
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.features-section#features .tab-headline h2 {
    font-size: 34px;
    font-weight: 700;
    color: #111827;
    /* Dark slate */
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto;
    /* Centered with auto margin */
    letter-spacing: -0.5px;
}

/* ----------------------------------
       Bento Grid Layout
       ---------------------------------- */
.bento-grid {
    display: grid;
    /* 4 Column grid allows perfect spanning (2+2, 2+1+1, 4) */
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ----------------------------------
       Card Base Styles
       ---------------------------------- */
.card {
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensures images clip neatly at the bottom corners */
    position: relative;
}

.blue-card {
    background-color: #4a77b4;
    /* Solid theme blue */
    color: #ffffff;
}

.white-card {
    background-color: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    /* Decreased padding to reduce the height of the white cards */
    padding: 20px 30px;
    justify-content: center;
}

/* Typography inside cards */
.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.blue-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #e0eaf5;
    /* Soft white/blue text for readability */
}

.white-card p {
    font-family: "DM Sans";
    font-size: 18px;
    line-height: 30px;
    color: #696969;
    font-weight: 400;
    /* Gray text */
}

/* Text padding for blue cards (top and sides, no bottom padding so images sit flush) */
.blue-card-text {
    padding: 40px 40px 30px 40px;
}

/* Image styling to mimic software windows */
.mockup-img {
    display: block;
    margin: 0 auto;
    margin-top: auto;
    /* Pushes the image firmly to the bottom of the flex container */
    border-radius: 8px 8px 0 0;
    /* Rounds top corners only */
    object-fit: cover;
    object-position: top;
}

/* ----------------------------------
       Specific Card Placements
       ---------------------------------- */

/* Top Left: Invoice Creation */
.invoice-creation {
    grid-column: span 2;
    /* Restored to original 540px height */
    min-height: 540px;
}

.invoice-creation img {
    width: 64%;
    margin-bottom: -25px;
}

/* Top Right: Proforma Invoice */
.proforma-invoice {
    grid-column: span 2;
    /* Reduced height by 10% from 540px */
    min-height: 486px;
    align-self: start;
    /* Prevents stretching to match invoice-creation */
}

.proforma-invoice img {
    width: 82%;
    margin-bottom: -25px;

}

/* Middle Row: Credit Notes (Span 2), Clone (Span 1), Recurring (Span 1) */
.credit-notes {
    grid-column: span 2;
    align-self: start;
    /* Prevents stretching to match adjacent taller cards */
}

.clone-invoice {
    grid-column: span 1;
    min-height: 200px;
    /* Force minimum height to expand the row */
    margin-top: -100px;
    /* Move up into the gap left by the shorter proforma invoice */
}

.recurring-invoices {
    grid-column: span 1;
    min-height: 200px;
    /* Force minimum height to expand the row */
    margin-top: -100px;
    /* Move up into the gap left by the shorter proforma invoice */
}

/* Bottom Row: Foreign Currency Invoicing */
.foreign-currency {
    grid-column: span 4;
    flex-direction: row;
    /* Horizontal layout */
    min-height: 240px;
}

.fc-text {
    flex: 0 0 35%;
    /* Fixed width for text */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centers text vertically */
}

.fc-images {
    flex: 1;
    display: flex;
    align-items: flex-end;
    /* Flushes both images to the bottom */
    justify-content: flex-end;
    /* Pushes images to the right */
    padding-top: 40px;
    padding-right: 40px;
}

.fc-images img {
    border-radius: 8px 8px 0 0;
}

.fc-img-1 {
    width: 60%;
}

.fc-img-2 {
    width: 35%;
}

/* ----------------------------------
       Responsive Adjustments
       ---------------------------------- */
@media (max-width: 1024px) {
    .blue-card-text {
        padding: 30px 30px 20px 30px;
    }

    .white-card {
        padding: 20px 24px;
    }

    .fc-text {
        flex: 0 0 40%;
    }

    .fc-images {
        padding-right: 30px;
    }
}

@media (max-width: 900px) {

    /* Switch to 2-column grid for tablets */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .invoice-creation {
        grid-column: span 2;
    }

    .proforma-invoice {
        grid-column: span 2;
    }

    .credit-notes {
        grid-column: span 2;
    }

    .clone-invoice {
        grid-column: span 1;
        margin-top: 0;
        /* Reset custom negative margin */
    }

    .recurring-invoices {
        grid-column: span 1;
        margin-top: 0;
        /* Reset custom negative margin */
    }

    .foreign-currency {
        grid-column: span 2;
    }
}

@media (max-width: 650px) {

    /* Stack everything on mobile */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .clone-invoice {
        grid-column: span 1;
    }

    .recurring-invoices {
        grid-column: span 1;
    }

    .foreign-currency {
        flex-direction: column;
        /* Stack text and images */
    }

    .fc-text {
        padding: 30px 30px 0 30px;
    }

    .fc-images {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
        justify-content: center;
    }
}

.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);
}