/*==============================================
   Welcome Charity
===============================================*/

.welcome-charity {
    position: relative;
    display: block;
    background-color: var(--givewell-base);
    padding: 120px 0 120px;
    overflow: hidden;
    z-index: 1;
}

.welcome-charity__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.2;
    z-index: -1;
}

.welcome-charity__shape-1 {
    position: absolute;
    top: -514px;
    right: 0;
    z-index: -1;
}

.welcome-charity__shape-1 img {
    width: auto;
}

.welcome-charity__shape-2 {
    position: absolute;
    bottom: -340px;
    left: 0;
    opacity: .06;
    z-index: -1;
}

.welcome-charity__shape-2 img {
    width: auto;
}

.welcome-charity__left {
    position: relative;
    display: block;
    margin-right: -30px;
}

.welcome-charity__left .section-title {
    margin-bottom: 0;
}

.welcome-charity__left .section-title-two .section-title__tagline {
    color: var(--givewell-white);
}

.welcome-charity__left .section-title__title {
    color: var(--givewell-white);
}

.welcome-charity__right {
    position: relative;
    display: block;
    margin-left: 104px;
}

.welcome-charity__carousel {
    position: relative;
    display: block;
}

.welcome-charity__single {
    position: relative;
    display: block;
}

.welcome-charity__img-box {
    position: relative;
    display: block;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    margin: 0 auto 0;
    z-index: 3;
}

.welcome-charity__img-box:before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    bottom: -10px;
    background-color: #e5cbb9;
    border-radius: 50%;
    box-shadow: none;
    z-index: -1;
}

.welcome-charity__img {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 50%;
    border: 8px solid var(--givewell-white);
    /* thin white ring like reference design */
    background: transparent;
}

.welcome-charity__img img {
    width: 100%;
    border-radius: 50%;
    transform: scale(1.0);
    transition: all 1500ms ease;
    background: var(--givewell-primary);
    /* transparent image bg so section shows through */
}

.welcome-charity__single:hover .welcome-charity__img img {
    transform: scale(1.05) rotate(0deg);
}

.welcome-charity__content {
    position: relative;
    display: block;
    text-align: center;
    padding: 115px 0 0;
    margin-top: -80px;
    z-index: 1;
    background-color: var(--givewell-secondary);
    /* subtle card background for text area */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #dcdcd9;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.welcome-charity__content-shape-1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f7f5f5;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    z-index: -1;
}


/* CSS triangles for top decorative corners (no images) */

.welcome-charity__content-shape-1::before,
.welcome-charity__content-shape-1::after {
    /* content: "";
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-bottom: 65px solid #f39233;
    default orange */
}

.welcome-charity__content-shape-1::before {
    left: 0;
    border-right: 70px solid transparent;
    border-bottom-color: transparent;
    /* keep left wedge transparent so card bg shows */
}

.welcome-charity__content-shape-1::after {
    right: 0;
    border-left: 70px solid transparent;
}


/* Alternate color for every 2nd card (teal) */

.welcome-charity__carousel .item:nth-child(3n+2) .welcome-charity__content-shape-1::before,
.welcome-charity__carousel .item:nth-child(3n+2) .welcome-charity__content-shape-1::after,
.welcome-charity__grid .welcome-charity__grid-item:nth-child(3n+2) .welcome-charity__content-shape-1::before,
.welcome-charity__grid .welcome-charity__grid-item:nth-child(3n+2) .welcome-charity__content-shape-1::after {
    border-bottom-color: #1aa79b;
}

.welcome-charity__single:hover .welcome-charity__content-shape-1 {
    opacity: .10;
}

.welcome-charity__title-box {
    position: relative;
    display: block;
    margin-bottom: 36px;
}

.welcome-charity__title-divider {
    position: relative;
    display: block;
    width: 70px;
    height: 2px;
    background-color: var(--givewell-base);
    margin: 15px auto 0;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
}

.welcome-charity__single:hover .welcome-charity__title-divider {
    width: 80px;
    background-color: var(--givewell-base);
}

.welcome-charity__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    color: var(--givewell-black);
    margin-bottom: 0;
    text-align: center;
    padding: 0 10px;
    word-wrap: break-word;
    hyphens: auto;
}

.welcome-charity__title a {
    color: var(--givewell-black);
    text-decoration: none;
}

.welcome-charity__single:hover .welcome-charity__title,
.welcome-charity__single:hover .welcome-charity__title a {
    color: var(--givewell-black);
}

.welcome-charity__title-shape-1 {
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 1;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
}

.welcome-charity__title-shape-1 img {
    width: auto !important;
    margin: 0 auto 0;
}

.welcome-charity__single:hover .welcome-charity__title-shape-1 {
    opacity: 0;
}

.welcome-charity__title-shape-2 {
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 0;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
}

.welcome-charity__title-shape-2 img {
    width: auto !important;
    margin: 0 auto 0;
}

.welcome-charity__single:hover .welcome-charity__title-shape-2 {
    opacity: 1;
}

.welcome-charity__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
    width: 85px;
    background-color: rgba(243, 222, 216, 1);
    border: 1px solid #e7e7e7;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    margin: 0 auto 0;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
}

.welcome-charity__icon span {
    position: relative;
    display: inline-block;
    font-size: 40px;
    color: var(--givewell-primary);
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
}

.welcome-charity__icon--two {
    background-color: rgba(224, 218, 245, 1);
}

.welcome-charity__icon--two span {
    color: #8139e7;
}

.welcome-charity__icon--three {
    background-color: rgba(243, 234, 213, 1);
}

.welcome-charity__icon--three span {
    color: #fca215;
}

.welcome-charity__single:hover .welcome-charity__icon {
    background-color: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .10);
}

.welcome-charity__single:hover .welcome-charity__icon span {
    color: var(--givewell-white);
}


/* Sub Services List Styling */

.welcome-charity__sub-services {
    position: relative;
    display: block;
    margin: 20px 0 25px;
    padding: 0 15px;
    z-index: 2;
    opacity: 1;
    max-height: 300px;
    overflow: visible;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
}

.welcome-charity__sub-services ul {
    position: relative;
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
}

.welcome-charity__sub-services ul li {
    position: relative;
    display: block;
    font-size: 18px;
    text-align: left;
    /* line-height: 20px; */
    color: var(--givewell-black);
    padding: 1px 0 1px 8px;
    margin-bottom: 5px;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
    font-weight: 500;
}

.welcome-charity__sub-services ul li a {
    color: var(--givewell-black);
}

.welcome-charity__sub-services ul li a:hover {
    color: #6171a1;
}

.welcome-charity__sub-services ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--givewell-primary);
    font-size: 18px;
    font-weight: bold;
    line-height: 20px;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}

.welcome-charity__single:hover .welcome-charity__sub-services ul li {
    color: var(--givewell-black);
}

.welcome-charity__single:hover .welcome-charity__sub-services ul li:before {
    color: #6878a5;
}

.welcome-charity__sub-services ul li:hover {
    color: var(--givewell-primary);
    padding-left: 25px;
}

.welcome-charity__sub-services ul li:hover:before {
    transform: scale(1.3);
    color: var(--givewell-primary);
}

.welcome-charity__single:hover .welcome-charity__sub-services ul li:hover {
    color: #405fb4;
}


/* Enhanced Content Box */

.welcome-charity__content {
    min-height: 380px;
    padding-bottom: 5px;
}

.welcome-charity__single:hover .welcome-charity__content {
    padding-bottom: 20px;
}


/* Enhanced Title Hover Effect */

.welcome-charity__single:hover .welcome-charity__title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


/* Enhanced Icon Styling */

.welcome-charity__icon--four {
    background-color: rgba(255, 182, 193, 1);
}

.welcome-charity__icon--four span {
    color: #ff69b4;
}

.welcome-charity__icon--five {
    background-color: rgba(173, 216, 230, 1);
}

.welcome-charity__icon--five span {
    color: #4682b4;
}

.welcome-charity__icon--six {
    background-color: rgba(255, 228, 196, 1);
}

.welcome-charity__icon--six span {
    color: #ff8c00;
}


/* Enhanced Single Card Hover Effect */

.welcome-charity__single {
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    transform: translateY(0);
}

.welcome-charity__single:hover {
    transform: translateY(-5px);
}

.welcome-charity__single:hover .welcome-charity__content-shape-1 {
    opacity: 0.1;
    transform: scale(1.02);
}

.welcome-charity__single:hover .welcome-charity__content-shape-1::before,
.welcome-charity__single:hover .welcome-charity__content-shape-1::after {
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

.welcome-charity__carousel.owl-theme .owl-nav {
    position: absolute;
    bottom: 68px;
    left: -552px;
    margin: 0 !important;
}

.welcome-charity__carousel.owl-theme .owl-nav .owl-next {
    height: 55px;
    width: 55px;
    line-height: 55px;
    border-radius: 5px;
    color: var(--givewell-black);
    background-color: var(--givewell-white);
    border: none;
    font-size: 20px;
    margin: 0;
    text-align: center;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    position: relative;
    display: inline-block;
}

.welcome-charity__carousel.owl-theme .owl-nav .owl-prev {
    height: 55px;
    width: 55px;
    line-height: 55px;
    border-radius: 5px;
    color: var(--givewell-black);
    background-color: var(--givewell-white);
    border: none;
    font-size: 20px;
    margin: 0;
    text-align: center;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    position: relative;
    display: inline-block;
}

.welcome-charity__carousel.owl-theme .owl-nav .owl-next {
    margin-left: 5px;
}

.welcome-charity__carousel.owl-theme .owl-nav .owl-prev {
    margin-right: 5px;
}

.welcome-charity__carousel.owl-theme .owl-nav .owl-next span,
.welcome-charity__carousel.owl-theme .owl-nav .owl-prev span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-charity__carousel.owl-theme .owl-nav .owl-next:hover,
.welcome-charity__carousel.owl-theme .owl-nav .owl-prev:hover {
    background-color: var(--givewell-primary);
    color: var(--givewell-white);
}


/* 2-Row Layout for Welcome Charity Carousel */

@media (min-width: 992px) {
    .welcome-charity__carousel .owl-stage-outer {
        overflow: visible;
    }
    .welcome-charity__carousel .owl-stage {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 24px;
        width: 100% !important;
        transform: none !important;
    }
    .welcome-charity__carousel .owl-item {
        width: 100% !important;
        margin: 0 !important;
    }
}


/* Grid Layout for Welcome Charity Services - All 6 items displayed */

.welcome-charity__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

.welcome-charity__grid-item {
    width: 100%;
}


/* Tablet - 2 columns */

@media (min-width: 768px) {
    .welcome-charity__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Desktop - 3 columns in 2 rows (keeping same design as carousel) */

@media (min-width: 992px) {
    .welcome-charity__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 24px;
    }
    .welcome-charity__grid-item {
        width: 100%;
        margin: 0;
    }
}

@media only screen and (max-width: 767px) {
    .welcome-charity__right {
        margin-left: 0;
        margin-top: 40px;
    }
}


/*--------------------------------------------------------------
# End
--------------------------------------------------------------*/