/* =========================================
   REFERENCES PAGE STYLES (FLEXBOX + WRAP FIX)
   ========================================= */

   .references-page .modulecontent {
    max-width: 1170px;
    width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
}

.references-page .references-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px 20px;
    width: 100%;
    margin-top: 40px;
}

.references-page .reference-item {
    width: calc(50% - 20px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.references-page .reference-item h2.h4 {
    color: #40464a;
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    line-height: 1.3;
    margin: 0 0 20px 0;
    padding: 0;
    position: relative;
}

.references-page .reference-item h2.h4:after {
    content: ' ';
    width: 160px;
    height: 5px;
    border-bottom: 3px solid #21256d;
    position: absolute;
    bottom: -15px;
    left: 0px;
}

.references-page .reference-item p {
    color: #40464a;
    font-size: 19px;
    font-weight: 400;
    text-align: justify;
    line-height: 25px;
    margin: 0 0 20px 0;
}

.references-page .reference-item p strong {
    font-weight: 600;
}

/* 4. Lists */
.references-page .reference-item ul {
    margin-bottom: 25px;
    margin-top: 15px;
    padding: 0;
    list-style: none;
}

.references-page .reference-item ul li {
    float: left;
    width: 100%;
    box-sizing: border-box;
    font-size: 19px;
    position: relative;
    line-height: 25px;
    text-align: left;
    font-weight: 400;
    color: #40464a;
    margin-bottom: 10px;
    padding: 0 0 0 30px;
}

.references-page .reference-item ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8.5px;
    width: 8px;
    height: 8px;
    background: #21256d;
}

/* 5. Link */
.references-page .reference-item a {
    font-weight: 600;
    color: #21256d;
    text-decoration: underline;
    z-index: 99;
}

.references-page .reference-item a:hover {
    text-decoration: none; 
}

.references-page .reference-item .ref-link {
    margin-top: auto; 
    text-align: left;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .references-page .reference-item {
        width: 100%;
    }
}