.highlight-spacer {
    height: 10vh; 
}

.highlight-card {
    width: 95%;
    background-color: white;
    border-radius: 30px;
    box-shadow: 4px 4px 18px 6px rgba(0, 0, 0, 0.15);
    margin: 2% auto;
    position: relative;
    padding: 40px 20px; 
	overflow: visible; /* added for troubleshooting */

    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box; 
}

@keyframes rotateImage {
  0%, 100% { transform: perspective(500px) rotateY(0deg); }
  25% { transform: perspective(500px) rotateY(-7deg); }
  50%, 75% { transform: perspective(500px) rotateY(7deg); }
}






.card-image {
animation: rotateImage 20s infinite;
    max-width: 100%;
	width: 80%;
    max-height: 60vh;
    margin-top: -30vh; 
    left: 10%; 
    box-shadow: 4px 4px 18px 6px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    border-radius: 5px;
position:relative;
 z-index: 1; /* added for troubleshooting */
}

.card-content {
    padding: 0px 0px 0px 20px
}

.card-body {
    margin-bottom: 20px;
}

.card-title {
    font-size: 30px;
    /*margin-bottom: -10px;*/
padding-top: 0;
hyphens: none;
  -webkit-hyphens: none; /* Safari 5.2-5.3 */
  -moz-hyphens: none;    /* Firefox 6-23 */
  -ms-hyphens: none;     
}

.card-subtitle {
    font-size: 22px;
   
    margin-top: 0;
padding-top: 0.5rem; 
font-weight: 400;

}

.card-details {
    color: #777778;
    font-size: 18px;
    margin-bottom: 35px;
}

.card-button {
    display: block;
    text-decoration: none; 
    margin: 5px 0;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 16px;
    width: 100%; 
    box-sizing: border-box; 
    text-align: center;
   

    transition: filter 0.3s ease;
    transition: background-color 0.3s ease;


}

.card-button.outline:hover {
  
    filter: brightness(85%);
}

.card-button.highlight {
    background-color: #E0C6BF;

}

.card-button.highlight:hover {
    background-color: #D0A99E;

}

.card-button.outline {
    background-color: white;
    color: black;
    border: 2px solid black;
}


@media (max-width: 767px) {
    .card-title, .card-subtitle, .card-details {
        text-align: center;
    }
 .highlight-card {
        margin-top: 40%; 
    }
.card-content {
    padding: 20px;
}
}


@media (min-width: 768px) {
    .highlight-card {
        flex-direction: row;
        align-items: stretch;
        padding: 40px;
        

    }

 .card-image {
        margin-top: 0; 
        top: 0;
        left: 0; 
        width: 95%; 
        max-height: none;
    }

    .card-content {
       /*  width: 50%; */

    padding: 0px 0px 0px 20px

    }
}