.link-library-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.link-library-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: 60px;
    max-height:120px;
    
}

.link-library-card:hover {
    scale: 1.03;
}

.link-library-card:hover h3 {
    color:var( --e-global-color-01dff2d );
}

.link-text-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 5px;
    
}

.link-library-card h3 {
    margin: 0 0 5px 0;
    font-size: 1px;
    font-family: bpg_banner_extrasquare_caps;
    max-width: 1000px;
    transition: 0.3s;
}

.buttons{
    display: flex;
    align-items: center;
    gap: 10px;
}


.link-library-card .link-button {
    background-color: var( --e-global-color-01dff2d);
    padding:10px;
    border-radius:10px;
    display: inline-flex;
    transition: 0.3s;
}

 .link-button .visit{
    font-family: bpg_banner_extrasquare_caps;
    color: white;
    font-size: 13px;
    margin-top:4px;
    margin-right:4px;
}

.link-library-card .link-button:hover {
    background-color: var( --e-global-color-a787fef );
}

.link-library-card .link-button:active{
    background-color: var(--e-global-color-104c556);
}

.link-button svg{
    height: 20px;
    fill: #fff;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .link-library-grid{
        justify-content:center;
    }
    
    .link-library-card {
        flex-direction: column;       /* Stack elements vertically */
        align-items: center;          /* Center everything horizontally */
        padding: 15px 10px;           /* Optional: adjust padding for mobile */
        width:95%;
    }

    .link-text-content {
        width: 100%;                  /* Take full width */
        align-items: center;          /* Center children */
        text-align: center;           /* Center text inside */
    }

    .link-library-card h3 {
        width: 100%;                  /* Full width title */
        margin-bottom: 5px;
    }

    .link-library-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 */
    }
}
