/* Enhanced Minister Word Section Animations */

/* Image hover effects */
.minister-word .image-wrapper {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.minister-word .image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}

.minister-word .image-wrapper img {
    transition: transform 0.5s ease;
}

.minister-word .image-wrapper:hover img {
    transform: scale(1.05);
}

.minister-word .image-wrapper::before {
    transition: all 0.5s ease;
}

.minister-word .image-wrapper:hover::before {
    top: 25px !important;
    left: -25px !important;
    border-width: 3px !important;
}

/* Quote styling */
.minister-word .lead {
    position: relative;
    font-size: 1.3rem !important;
    font-style: italic;
    color: var(--secondary-color);
    padding-left: 30px;
    margin: 30px 0 !important;
    line-height: 1.8;
    font-weight: 500;
    animation: fadeInQuote 1s ease-out 0.3s both;
}

.minister-word .lead::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--primary-color);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.3;
}

/* Paragraph animations */
.minister-word .col-text p {
    opacity: 0;
    animation: fadeInText 0.8s ease-out forwards;
}

.minister-word .col-text p:nth-of-type(2) {
    animation-delay: 0.5s;
}

.minister-word .col-text p:nth-of-type(3) {
    animation-delay: 0.7s;
}

@keyframes fadeInQuote {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Signature enhancements */
.minister-word .signature {
    margin-top: 30px !important;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
    opacity: 0;
    animation: fadeInSignature 1s ease-out 1s both;
    position: relative;
}

@keyframes fadeInSignature {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.minister-word .signature::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    animation: expandLine 1.5s ease-out 0.5s forwards;
}

@keyframes expandLine {
    to {
        width: 100%;
    }
}

.minister-word .signature strong {
    font-size: 1.3rem !important;
    margin-bottom: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.minister-word .signature:hover strong {
    letter-spacing: 1px;
}

.minister-word .signature span {
    color: var(--text-color);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Section title animation */
.minister-word .section-title {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}