.dd-documents-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dd-document-card {
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 250px;
    flex-direction: row;
    background-color: white;
    border-radius: 10px;
    box-shadow: 4px 4px 13px 5px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
    width:100%;
    min-height:90px;
}

.dd-document-card:hover {
    scale: 1.03;
}

.text-content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
}
.dd-document-card h3 {
    margin: 0 0 5px 0;
    font-size: 12px;
    font-family: bpg_banner_extrasquare_caps;
    max-width: 1000px;
}

.dd-document-card:hover .h3 {
    color:var( --e-global-color-01dff2d );
}

.dd-document-card span {
    color: #666;
    font-size: 14px;
    font-family: bpg_banner_extrasquare_caps;
}

.buttons{
    display: flex;
    align-items: center;
    gap: 10px;
}


.dd-document-card .document-button {
    background-color: var( --e-global-color-01dff2d );
    padding:10px;
    border-radius:10px;
    display: inline-flex;
    transition: 0.3s;
}

.dd-document-card .document-button:hover {
    background-color: var( --e-global-color-a787fef );
}

.dd-document-card .document-button:active{
    background-color: var(--e-global-color-104c556);
}

.document-button svg{
    height: 25px;
    fill: #fff;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .dd-document-card {
        flex-direction: column;       /* Stack elements vertically */
        align-items: center;          /* Center everything horizontally */
        padding: 15px 10px;           /* Optional: adjust padding for mobile */
    }

    .text-content {
        width: 100%;                  /* Take full width */
        align-items: center;          /* Center children */
        text-align: center;           /* Center text inside */
    }

    .dd-document-card h3 {
        width: 100%;                  /* Full width title */
        margin-bottom: 5px;
    }

    .dd-document-card span {
        display: block;               /* Ensure it behaves as a block */
        margin-bottom: 10px;          /* Space below span */
        text-align: center;           /* Center date */
    }

    .buttons {
        justify-content: center;      /* Center the buttons */
        width: 100%;                  /* Full width container */
    }
}
