/* Base settings for the module */
.module-container {
    margin: 0 auto;
    width: 1401px;
    padding: 0;
    gap: 20px;

    h2,
    h3,
    h5,
    p,
    ul {
        margin-top: 0;
    }

    p {
        color: #676767;
    }

    /* HEADER SECTION */
    .header-container {
        display: grid;
        grid-template-columns: 927px 453px;
        grid-template-rows: min-content min-content;
        gap: 20px;
        max-width: 1401px;

        .module-name {
            grid-column: 1;
            grid-row: 1 / 3;
            width: 927px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }

        .goals {
            grid-column: 2;
            grid-row: 1;
        }

        .theories {
            grid-column: 2;
            grid-row: 2;
        }

        .goals,
        .theories {
            color: #fff;
            background-color: #000;
            padding: 24px;
            box-sizing: border-box;

            h5,
            p {
                color: #fff;
            }

            h5 {
                margin-bottom: 85px !important;
            }

            ul {
                padding-left: 24px;
                margin-bottom: 0;
                list-style: none;

                li {
                    position: relative;
                    padding-left: 35px;
                    margin-bottom: 11px;
                    font-size: 14px;
                    line-height: 140%;
                    color: #fff;

                    &::before {
                        content: "";
                        position: absolute;
                        left: 0;
                        top: 0;
                        width: 10px;
                        height: 6px;
                        background-image: url("/wp-content/uploads/2025/11/Vector-2.svg");
                        background-size: contain;
                        background-repeat: no-repeat;
                    }

                    &:not(:last-child) {
                        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
                        padding-bottom: 11px;
                    }
                }
            }
        }
    }

    /* FORMULAS SECTION */
    .formulas-container {
        background-color: #dddce5;
        gap: 28px;

        .formulas-grid {
            gap: 20px;

            .formula {
                padding: 16px 50px;
                height: 233px;
                background-color: #fff;
                text-align: center;

                p {
                    flex-grow: 1;
                    color: var(--black);
                }

                p:last-child {
                    margin-top: 0 !important;
                }
            }
        }
    }

    /* SITUATIONS SECTION */
    .situations-container {
        margin-top: 84px !important;
        max-width: 926px !important;
        gap: 40px;

        .situation {
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px 16px 24px 24px;
            gap: 12px;
            width: 926px;
            background: var(--gray);

            &::after {
                content: "";
                position: absolute;
                right: 25px;
                top: 50%;
                width: 16px;
                height: 12px;
                transform: translateY(-50%) rotate(-135deg);
                background-image: url("/wp-content/uploads/2025/11/→.svg");
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center;
            }

            .txt {
                gap: 8px;
                max-width: 80%;
            }

            p {
                margin: 0;
            }

            h5 {
                margin: 0 !important;
                flex-grow: 1;
            }
        }
    }

    /* QUESTIONS SECTION */
    .questions-container {
        max-width: 1400px !important;
        margin-top: 84px !important;
        gap: 20px;

        .questions-grid {
            gap: 20px;

            .question {
                display: flex;
                flex-direction: column;
                padding: 16px;
                gap: 8px;
                height: 240px;
                background-color: #000;
                box-sizing: border-box;

                p,
                h5 {
                    color: #fff !important;
                }

                p:first-child {
                    padding: 3px 8px;
                    background: rgba(255, 255, 255, 0.2);
                    border-radius: 30px;
                    margin: 0;
                    width: fit-content;
                }

                p:last-child {
                    position: relative;
                    padding: 11px 16px 11px 16px;
                    padding-right: 35px;
                    background: rgba(255, 255, 255, 0.8);
                    border-radius: 30px;
                    color: #000 !important;
                    margin-top: auto;
                    cursor: pointer;

                    &::after {
                        content: "";
                        position: absolute;
                        right: 16px;
                        top: 50%;
                        transform: translateY(-50%);
                        width: 16px;
                        height: 16px;
                        background-image: url("/wp-content/uploads/2025/11/Icone-1.svg");
                        background-size: contain;
                        background-repeat: no-repeat;
                        background-position: center;
                    }
                }
            }
        }
    }

    /* METHODOLOGY / CA CONTAINER */
    .ca-container {
        margin-top: 84px !important;
        max-width: 926px !important;
        gap: 40px;

        >p {
            color: #676767;
        }

        .wp-block-buttons {
            margin: 0;

            .wp-block-button__link {
                padding: 11px 16px;
                gap: 66px;
                font-size: 14px !important;
                background: rgba(0, 0, 0, 0.75);
                backdrop-filter: blur(2px);
                border-radius: 30px;
                color: #fff;
                text-decoration: none;
            }
        }

        .dropdown {
            display: flex;
            justify-content: space-between;
            padding: 24px;
            gap: 12px;
            width: 926px;
            background: #fff;
            border-top: 1px solid #000;
            margin: 0;

            >div {
                gap: 8px;
                width: 687px;
            }

            p:first-child,
            strong {
                font-weight: 500;
                color: #000;
            }

            p {
                color: #676767;
                margin: 0;
            }
        }
    }

    /* AA CONTAINER */
    .aa-container {
        max-width: 926px !important;
        margin-top: 84px !important;
        gap: 40px;

        .article {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px 16px 24px 24px;
            gap: 12px;
            width: 926px;
            background: var(--gray);

            .txt {
                gap: 8px;
            }

            p {
                margin: 0;
            }

            h5 {
                margin: 0 !important;
                flex-grow: 1;
            }
        }
    }

    /* BREAKDOWN TABLE */
    .breakdown-container {
        max-width: 1156px !important;
        margin-top: 84px !important;
        margin-bottom: 39px !important;
        gap: 24px;

        table {
            width: 1156px;
            border: 1px solid #000;
            border-collapse: collapse;
            color: var(--black) !important;

            tr.black-row td {
                background-color: #000;
                padding: 29px 24px;

                strong {
                    font-size: 18px;
                    font-weight: 500;
                    line-height: 140%;
                    color: #f0eee4;
                }
            }

            td {
                padding: 29px 24px;
                border-bottom: 1px solid #1c1c1c;
                background: #fff;
                font-size: 14px;
                line-height: 140%;
                color: #1c1c1c;
            }
        }
    }

    /* REFLECTION SECTION */
    .reflection-container {
        max-width: 1401px;
        padding: 24px;
        background-color: #000;
        margin-bottom: 21px !important;
        justify-content: space-between;

        h3 {
            width: 50%;
            margin: 0;
            color: #fff;
            align-self: flex-start;
        }

        p {
            width: 50%;
            margin: 0;
            padding-top: 99px;
            color: #fff;
            align-self: flex-end;
        }
    }
}