.cards{
    padding: 1em;
    margin: 1em;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(30%,1fr));
    gap: 1.5em; 
    align-items: center;
    width: 95vw;
}
.card{
    border: 2px solid #FF7A3D;
    border-radius: 20px;
    height: 53vh;
    padding: 1em;
}

.image{
    border: 2px solid #E76F51;
    overflow: hidden;
    border-radius: 18px;  
    height: auto;          
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(231, 62, 11, 0.377),
    0 0 0 1px rgba(199, 42, 3, 0.534);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
    cursor: pointer;
}

.image:hover{
    transform: translateY(-8px) scale(1.02);
}

.image img{
    object-fit: cover;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image:hover img{
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(231, 111, 81, 0.25);
    background: blur(10px) ; 
    backdrop-filter: blur(8px);    
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;  
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image:hover .image-overlay{
    opacity: 1;
    transform: translateY(0);
}

.overlay-content{
    text-align: center;
    max-width: 95%;  
}

.overlay-content h1 {
    font-family:  sans-serif;
    font-size: 2rem;   
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.image:hover .overlay-content h1{
    transform: translateY(0);
    opacity: 1;
}

/* .overlay-content p {
    font-size: 0.95rem; 
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.image:hover .overlay-content p{
    transform: translateY(0);
    opacity: 1;
} */

button {
      background: rgba(255,255,255,0.9);
    color: #222;
    border: none;
    padding: 10px 22px;  
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;  
    font-weight: 600;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.02em;
    margin: 0.3em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
    transform 0.3s ease, box-shadow 0.3s ease;
}

.image:hover button {
    transform: translateY(0);
    opacity: 1;
}

button:hover {
     background: #E76F51;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

button a {
    color: #222;
    text-decoration: none;
    display: inline-block;
}
.btn3{
    padding: 10px 3.5em;
}

.image::after{
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease;
        z-index: 1;
    }
    
    .image:hover::after{
        opacity: 1;
    }

    .details{
        margin: 0.8em 0 1.5em ;
        padding: 0.8em;
    }
    .details h1{
        margin-bottom: 0.2em;
    font-family:  sans-serif;
    }
    .lan{
        display: flex;
        padding: 0.8em 0.5em 0.5em 0 ;
    }
    .details>p{
        /* font-family: "Playwrite NZ Basic", cursive; */
        margin: 0.8em 0;
        font-style: italic;
    font-family:  sans-serif;
    letter-spacing: 1px;
    font-weight: 400;

    }
    .lan p{
        border: 1px solid orangered;
        margin-right:0.5em;
        padding: 0.3em 0.5em;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 700;
        font-family: 'Courier New', Courier, monospace;
    }
    .Hpre{
        padding: 0.5em;
        display: flex;
        justify-content: center;
    }
.hEADINGS {
    position: relative;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 900;
    margin: 1em 0;
}

.hEADINGS::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: #ff7a00;
    transition: 0.3s ease-in-out;
    transform: translateX(-50%);
}

.hEADINGS:hover::after {
    width: 100%;
}
