.spirit-hero {
    position: relative;
    background-image: url('../img/about_hero.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin: 5px auto 0; 
    max-width: calc(100% - 20px);
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px; 
    padding-bottom: 30px;
    text-align: center;
    color: #444;
    overflow: hidden;
}

.spirit-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.spirit-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spirit-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: #1965c0;
    margin: 15px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.spirit-section {
    padding: 20px 0;
    background-color: #fff;
}

.spirit-section:nth-child(even) {
    background-color: #f8fbff;
}

.spirit-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    line-height: 1.2;
    color: #444;
    margin-bottom: 25px;
}

.spirit-title .text-blue {
    color: #1965c0;
    font-weight: 700;
}

.spirit-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #5a5a5a;
    text-align: left;
}

.spirit-section:first-of-type {
    padding-top: 10px;
}

.quote-box {
    background: #fff;
    border-left: 5px solid #1965c0;
    padding: 30px;
    margin: 15px 0 30px 0; /* Reduced top margin */
    border-radius: 0 20px 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    color: #444;
    line-height: 1.6;
}

.quote-author {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: #1965c0;
    margin-top: 15px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spirit-img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.spirit-img-wrapper img {
    transition: transform 0.6s ease;
    width: 100%;
    display: block;
}

.spirit-hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.spirit-hero-content.show {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    opacity: 0 !important;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-up.show {
    opacity: 1 !important;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .spirit-hero {
        min-height: 400px;
        padding-top: 100px;
    }
    .spirit-hero-content {
        padding: 0 20px;
    }
    .spirit-hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .spirit-hero {
        padding-top: 100px;
        padding-bottom: 25px;
        min-height: auto;
    }

    .spirit-hero-title {
        font-size: 34px;
        margin: 10px 0;
    }
    
    .spirit-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .spirit-section {
        padding: 20px 0;
    }
    
    .quote-box {
        padding: 20px;
        margin: 10px 0 20px 0;
    }
}