*{
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: "roboto";
    background-color: #fff;
    align-items: flex-start;
    height: 100vh;
    justify-content: center;

}
.card-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 100px;
    padding: 100px;
}

.card-container h1 {
    width: 100%; /* Full width to span across */
    text-align: left; /* Align left with cards */
    color: #222;
    font-size: 2em; /* Larger heading */
    margin-bottom: 20px; /* Space below heading */
    padding-left: 10px; /* Slight indent */
    background-color: #f0f0f0; /* Light background for contrast */
    border-bottom: 2px solid #007bff; /* Bottom line for emphasis */
}
.wrapper{
    perspective: 3000px;
}
.card{
    position: relative;
    width: 300px;
    height: 400px;
    text-align: center;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2), -5px -5px 10px rgba(0,0,0,0.2);
    border: 1px solid #ccc;
    cursor: pointer;
}
.card:hover{
    transform: rotateY(180deg);
}
.front-page,
.back-page{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}
.wrapper:nth-child(1) .front-page{
    background-image: url('../img/blog/blog-24.jpg')!important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}
.wrapper:nth-child(2) .front-page{
    background-image: url('../img/blog/blog-26.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.wrapper:nth-child(3) .front-page{
    background-image: url('../img/blog/blog-27.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.card-info{
    position: absolute;
    top: 50%;
    left: 45%;
    text-align: center;
    color: #fff;
}
.card-title{
    font-style:2rem;
    font-weight: bold;
    color: rgb(7, 6, 6);
}
.card-subtitle{
    font-size: 1.2rem;
    margin-top: 5px;
    color:#0fbcf9;
}
.wrapper:nth-child(1) .back-page{
    background-color: #1e272e;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.wrapper:nth-child(2) .back-page{
    background-color: #1e272e;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.wrapper:nth-child(3) .back-page{
    background-color: #1e272e;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.card-content{
    text-align: center;
    padding: 20px;
    max-width:300px;

}
.card-description{
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #ccc;
    line-height: 1.6;
}
.card-button{
    background-color: #0fbcf9;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}p
.card-button:hover{
    background-color: transparent;
    color: #0fbcf9;
    border: 1px solid #0fbcf9;
}