:root {
    --main-color: #3498db; /* This is changed dynamically by the Admin settings */
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background: #f4f7f6; }

/* Flip Card Container */
.flip-card {
    background-color: transparent;
    width: 300px;
    height: 400px;
    perspective: 1000px;
    margin: 20px auto;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    transform-origin: left center; /* Vertical Hinge effect */
}

/* The "Hinge" Action */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(-180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.flip-front img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.flip-back {
    background-color: white;
    transform: rotateY(180deg);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .flip-card { width: 90%; height: 500px; }
}
