body {
    background-color: aqua;
}
.headbox{
    background-color: rgb(241, 230, 29);
    text-align: center;
    padding: 1vw;
}

.row {
    display: flex;
    gap: 10px;
}
.card {
    border: 1px rgb(6, 10, 11, 0) solid;
    border-radius: 10px;
    transition: all 150ms;
    width: 33.3%; 
    height: auto; 
    background-color: #d59c33; 
    padding: 16px;
    margin-top: 60px; 
    margin-left:40px;  
    text-align: center;
    
}
p{
    position: relative;
}
.card-img {
    height: 150px;
    overflow: hidden;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1000ms;
}
.card-content {
    padding: 20px;
}
.card-content h2 {
    margin-top: 0;
}
.story-extra {
    display: none;
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1f1d1d;
}
.card.is-open .story-extra {
    display: block;
}
.toggle-btn {
    margin-top: 12px;
    background-color: #00646b;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.toggle-btn:hover {
    transform: translateY(-2px);
    background-color: #004d52;
}
.card:hover {
    transform: translateY(3px);
    .card-img img {
    transform: scale(1.3);
    }

}
a.button {
    border-radius: 3px;
    padding: 0.8em 1.2em;
    background-color: rgb(0, 100, 107);
    color: white;
    text-decoration: none;
    height: 4vw;
    
}
a.button:hover {
        animation: bounce 1000ms linear 3;
        
}
@keyframes bounce {
  0% {transform: translateY(0); }
  50% {transform: translateY(-8px);}
  100% {transform: translateY(0);}
}


@media screen and (max-width: 768px) {
    body {
        margin-left: 5vw;
        margin-right: 5vw;
    }
    .row {
        display: block;
    }
    .card {
        width: auto;
        margin-bottom: 10px;
    }
}