/* HERO */
section.hero * {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

section.hero {
    padding-bottom: 0;
}

.blog-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

/* CONTENT */
.faq-posts {
    padding: clamp(40px, 6vw, 80px) 24px;
    border-bottom: 1px solid rgba(var(--brand-rgb, 145, 74, 200), 0.2);
    border-top: 1px solid rgba(var(--brand-rgb, 145, 74, 200), 0.2);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: min(1120px, 80vw);
    margin: 0 auto;
    backdrop-filter: blur(4px);
}

/* Staggered animation for cards */
.faq-card:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out;
}

.faq-card:nth-child(even) {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.faq-card {
    background: rgba(30, 30, 40, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 4px 20px rgba(172, 255, 28, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 -1px 0 rgba(172, 255, 28, 0.2) inset;
    border: 1px solid rgba(172, 255, 28, 0.3);
    padding: 2.5rem;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.faq-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(172, 255, 28, 0.1) 25%,
            rgba(172, 255, 28, 0.15) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.faq-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle,
            rgba(172, 255, 28, 0.15) 0%,
            transparent 70%);
    opacity: 0.8;
    pointer-events: none;
}

.faq-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(172, 255, 28, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(172, 255, 28, 0.5);
}

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

.faq-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #acff1c 0%, #8ef916 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.25rem;
    box-shadow: 
        0 4px 16px rgba(172, 255, 28, 0.35),
        0 2px 0 rgba(255, 255, 255, 0.2) inset;
    transition: all 0.3s ease;
    position: relative;
}

.faq-card:hover .faq-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 6px 20px rgba(172, 255, 28, 0.5),
        0 2px 0 rgba(255, 255, 255, 0.3) inset;
}

.faq-question-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.faq-card:hover .faq-question-title {
    color: var(--brand-light, #b993ea);
}

.faq-question-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
}

.faq-question-text a {
    font-weight: 800;
}

.faq-question-text .valorarinmueble {
    background: linear-gradient(90deg, #FDE047, #FACC15);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Remove old animations and left/right classes */

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-posts {
        grid-template-columns: 1fr;
        padding: 40px 16px;
        gap: 1.5rem;
    }

    .faq-card {
        padding: 2rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .faq-icon {
        align-self: center;
        width: 52px;
        height: 52px;
        font-size: 1.15rem;
    }

    .faq-question-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .faq-question-text {
        font-size: 1rem;
        text-align: left;
    }
}