/* Estilos para os cards do blog */
.blog-card {
    width: 100%;
    height: 100%;
    perspective: 1000px;
    cursor: pointer;
}

.blog-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.blog-card:hover .blog-card-inner {
    transform: rotateY(180deg);
}

.blog-card-front, .blog-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.blog-card-front {
    z-index: 2;
}

.blog-card-back {
    transform: rotateY(180deg);
    padding: 20px;
    background: var(--white);
}

.back-content {
    height: 100%;
    overflow-y: auto;
}

.back-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.back-content ul {
    list-style: none;
    padding: 0;
}

.back-content li {
    margin-bottom: 12px;
    font-size: 0.9em;
    line-height: 1.4;
    color: var(--text-color);
}

/* Ajustes para o grid do blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.blog-post {
    height: 400px; /* Altura fixa para os cards */
}

/* Estilos para a scrollbar no conteúdo do card */
.back-content::-webkit-scrollbar {
    width: 6px;
}

.back-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.back-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.back-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}