
.cad-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* Default (Desktop) */
.cad {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
    min-width: 250px;
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Mobile View */
@media (max-width: 767px) {
    .cad {
        flex: 1 1 100%;
        max-width: 100%;
        margin-left: 0 !important;
    }

    .container {
        padding: 5px;
    }
}

.cad-image {
    height: 250px;
    overflow: hidden;
}

    .cad-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cad-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cad-title {
    font-size: 22px;
    font-weight: bold;
    height: 40px;
    overflow: hidden;
}

.cad-description {
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Show max 5 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cad-footer {
    margin-top: auto;
    text-align: center;
}

.cad-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f4a261;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

    .cad-button:hover {
        background-color: #e07a5f!important;
    }

.pge-title.bg-1 {
    position: relative;
    /* Replace with your real image path */
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: darkgrey;
    text-align: center;
}

.pge-title .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    margin-top: 62px;
    background: rgba(0, 0, 0, 0.5); /* dark overlay */
    z-index: 1;
}

.pge-title .container {
    position: relative;
    z-index: 2;
    height: 100%;
}

.pge-title .block {
    color: white;
}

.pge-title .subtitle {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.pge-title .title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
}

.buton-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
