/* Participation Page Styles */

.page-header {
    padding: 100px 0 20px;
    background-color: var(--find-blue-primary);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.86);
    max-width: 600px;
    margin: 0 auto;
}

/* Letters Section (Carousel 3D) */
.letters-section {
    padding: 40px 0;
    background-color: #fff;
    overflow: hidden; /* Prevent overflow from transformed cards */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--find-blue-primary); /* Use brand color for title */
}

.letters-carousel-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 60px 0;
    position: relative;
    height: 440px; /* Reduced height for compactness */
}

.letters-wrapper-3d {
    width: 100%;
    max-width: 900px;
    height: 100%;
    position: relative;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.letter-card-3d {
    position: absolute;
    width: 300px;
    height: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Card States */
.card-center {
    transform: translateX(0) scale(1) translateZ(50px);
    z-index: 10;
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-left {
    transform: translateX(-80%) scale(0.85) translateZ(-50px) rotateY(15deg);
    z-index: 5;
    opacity: 0.6;
    filter: blur(1px);
}

.card-right {
    transform: translateX(80%) scale(0.85) translateZ(-50px) rotateY(-15deg);
    z-index: 5;
    opacity: 0.6;
    filter: blur(1px);
}

.card-hidden {
    transform: scale(0.5) translateZ(-200px);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.letter-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.letter-text {
    font-family: "Brush Script MT", "Comic Sans MS", cursive; /* Fallback to cursive */
    font-size: 1.5rem; /* Larger font for card text */
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-author {
    margin-top: auto;
}

.author-name {
    font-family: "Brush Script MT", "Comic Sans MS", cursive;
    font-weight: 600;
    color: #333;
    font-size: 1.2rem;
    display: block;
}

.author-info {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    display: block;
}

/* Navigation Buttons */
.carousel-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--find-text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 20;
    padding: 10px;
}

.carousel-btn:hover {
    color: var(--find-blue-primary);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Footer Text */
.letters-footer-text {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.letters-footer-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #c0392b; /* Reddish color similar to the image text */
    font-weight: 600;
}

/* Recruitment Section (List) */
.recruitment-section {
    padding: 40px 0;
    background-color: #fff;
}

.recruitment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.recruitment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--find-border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.recruitment-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--find-primary-color);
    transform: translateY(-2px);
}

.recruitment-info {
    flex: 1;
    padding-right: 40px;
}

.recruitment-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--find-text-primary);
    margin-bottom: 12px;
}

.recruitment-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--find-text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item.status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.meta-item.status.recruiting {
    background-color: #e3f2fd;
    color: #1976d2;
}

.meta-item.status.full {
    background-color: #f5f5f5;
    color: #757575;
}

.recruitment-desc {
    color: var(--find-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.recruitment-action {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .letters-wrapper {
        padding: 20px;
    }
    
    .quote-icon {
        font-size: 2rem;
    }
    
    .letter-text {
        font-size: 1rem;
    }

    .recruitment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .recruitment-info {
        padding-right: 0;
    }
    
    .recruitment-action {
        width: 100%;
    }
    
    .recruitment-action .btn {
        width: 100%;
        text-align: center;
    }
    
    .recruitment-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}