/* Animation for shorter text sections */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation for longer text sections with accordion */
.accordion-text {
    opacity: 0;
    transform: translateY(200px);
    max-height: 155px; /* Show preview height */
    overflow: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, max-height 0.5s ease-out;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    position: relative;
}

.accordion-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(transparent, #ffffff);
    pointer-events: none;
}

.accordion-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.accordion-text.expanded {
    max-height: 2000px; /* Adjust based on your content */
}

.accordion-text.expanded::after {
    display: none; /* Remove gradient when expanded */
}

/* Animation for titles */
.slide-title {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
    overflow:0;
}

.slide-title.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0px;
    background-color: #d9e2ec;
    transition: width 0.8s ease-out;
}

.slide-title.visible::after {
    width: 100%;
}

.ver-mais-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.ver-mais-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.ver-mais-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ver-mais-btn.expanded {
    background-color: #dc3545;
}

.ver-mais-btn.expanded:hover {
    background-color: #c82333;
}

/* Add hover effect to text boxes */
.reveal-text:hover,
.accordion-text:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Ensure text is readable */
.reveal-text p,
.accordion-text p {
    margin: 0;
    line-height: 1.6;
    color: #333;
} 