/* CHARACTER SECTION - Complete Styles */



.character-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
}

/* Base character item */
.character-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

/* Left layout: Image on left, text on right */
.character-item-left {
    flex-direction: row;
}

.character-item-left .character-text {
    text-align: left;
}

/* Right layout: Image on right, text on left */
.character-item-right {
    flex-direction: row-reverse;
}

.character-item-right .character-text {
    text-align: left;
}

/* Character images */
.character-item img {
    max-width: 450px;
    max-height: 450px;
    min-width: 200px;
    min-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Text content */
.character-item .character-text {
    flex: 1;
    min-width: 250px;
}

.character-item .character-text h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 2em;
    color: #5b4636;
    text-align: center;
}

.character-item .character-text p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #5b4636;
}

/* Mobile responsiveness for characters */
@media (max-width: 768px) {
    .character-item,
    .character-item-left,
    .character-item-right {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .character-item-left .character-text,
    .character-item-right .character-text {
        text-align: center !important;
    }
    
    .character-item img {
        max-width: 90%;
        max-height: 300px;
        min-width: 150px;
    }
    
    .character-item .character-text {
        width: 100%;
        min-width: auto;
    }
}