/* Nobles Section */
.nobles-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #CC0000, #990000, #660000, #330000);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.nobles-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
}

.noble-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(178, 34, 34, 0.9), rgba(128, 0, 0, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 0;
    text-align: left;
    border: 4px solid #FFD700;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.4),
        0 20px 60px rgba(139, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 215, 0, 0.3);
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.noble-emoji {
    position: absolute;
    top: 270px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    background: transparent;
    border-radius: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
    z-index: 10;
}

.noble-emblem {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    position: relative;
    z-index: 11;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6)) 
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.noble-card:hover .noble-emblem {
    transform: scale(1.2);
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1.0)) 
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 15px rgba(212, 175, 55, 0.8))
            drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.noble-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.noble-card:hover::before {
    opacity: 1;
}

.noble-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 0 80px rgba(255, 215, 0, 1.0),
        0 30px 90px rgba(139, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 215, 0, 0.2),
        0 0 120px rgba(255, 255, 255, 0.4);
    border-color: #FFFF00;
}

.noble-portrait {
    width: 100%;
    height: 320px;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    border: none;
    position: relative;
}

.noble-portrait::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(101, 67, 33, 0.9), transparent);
}

.noble-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
    position: relative;
    z-index: 1;
}

.noble-card:hover .noble-portrait img {
    transform: scale(1.04);
    transition-delay: 0.05s;
}

.noble-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.noble-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    color: #FFD700;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6);
    text-align: justify;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.noble-title {
    font-style: italic;
    color: #FFFFE0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

.noble-info p {
    line-height: 1.7;
    opacity: 0.98;
    font-size: 1.1rem;
    color: #FFF8DC;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
    text-align: justify;
    margin-bottom: 1rem;
}

.noble-decoration {
    width: 100%;
    height: 80px;
    background: url('./images/emblem.png') center/contain no-repeat;
    margin-top: auto;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
    position: relative;
    overflow: hidden;
    opacity: 0.7;
    filter: sepia(100%) saturate(200%) hue-rotate(30deg) brightness(1.2);
    flex-shrink: 0;
}

.noble-decoration::before {
    content: "✨";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.6;
    animation: sparkle 3s ease-in-out infinite;
}