/* Utils */
.ratio-16-9 {
    aspect-ratio: 16/9;
}

.img-16-9 {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    margin-bottom: 1rem;
}

.img-1-1 {
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
}

.cover {
    object-fit: cover;
}

@media screen and (max-width: 1200px) {
    .img-lg-16-9 {
        aspect-ratio: 16/9;
        object-fit: cover;
    }
    
}

/* Custom Styles */

/* Improved spacing for program pages */
.container.space p {
    margin-bottom: 1.5rem;
}

.row.align-items-center.gy-2 {
    margin-bottom: 2rem;
}

.col-lg-6.text-center, .col-lg-4.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.small.text-muted {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

section.container.space, section.container.space-top, section.container.space-bottom {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Optimize spacing between images and text */
.row.align-items-center.gx-80 {
    margin-bottom: 1.5rem;
}

.row.align-items-center.gy-2.gx-80 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.row.align-items-center.gy-2.gx-80 p {
    margin-bottom: 0;
}

.row.align-items-center.gy-2.gx-80 .col-lg-4.text-center,
.row.align-items-center.gy-2.gx-80 .col-lg-6.text-center {
    padding-top: 0;
    padding-bottom: 0;
}

/* Reduce vertical spacing in image captions */
.col-lg-4.text-center .small.text-muted,
.col-lg-6.text-center .small.text-muted {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Improve image display and alignment */
.img-fluid.img-radius.img-16-9 {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Adjust spacing for text sections */
.title-area {
    margin-bottom: 1rem;
}

.title-area + p {
    margin-top: 0;
}

/* Ensure consistent spacing in different layouts */
.col-lg-8 p {
    margin-bottom: 0;
}

/* Adjust spacing for mobile view */
@media (max-width: 991px) {
    .row.align-items-center.gy-2.gx-80 {
        margin-bottom: 2rem;
    }
    
    .col-lg-4.text-center, .col-lg-6.text-center {
        margin-bottom: 1.5rem;
    }
    
    .col-lg-8 p {
        margin-bottom: 1.5rem;
    }
}
.swiper-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
}

.swiper-slide-visible .hero-background-container,
.swiper-slide-prev .hero-background-container {
    animation: zoomEffect 6s ease-out infinite;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.cta-area-2 {
    position: relative;
    overflow: hidden;
    background-image: url("../img/mamah/about/Violet MAMAH, on the page of ous story .png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

.cta-area-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000F1D80;
    /* Semi-transparent overlay color */
    background-image: url("../img/shape/overlay2.png");
    background-blend-mode: overlay;
    z-index: 1;
    animation: moveOverlay 10s infinite alternate;
}

.cta-area-1 {
    margin: 5rem 0;
}


.home-cta-card {
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .home-cta-card {
        padding: 10px;
    }
}

@media (max-width: 575px) {
    .home-cta-card .box-title {
        font-size: 24px;
    }
}


.home-gallery-sec {
    margin-top: 5rem;
}

.home-gallery-sec,
.home-gallery-sec .swiper-wrapper {
    display: flex;
    align-items: flex-end;
}

.home-gallery-sec .swiper-slide {
    display: flex;
    align-items: flex-end;
    width: auto;
    margin-right: 8px;

    img {
        aspect-ratio: 16/9;
        width: 100%;
        object-fit: cover;
        height: 300px;
    }
}

.home-gallery-sec img {
    width: 100%;
    height: auto;
}

img.top-logo {
    max-width: 156px;
}

.donation-card .box-title {
    min-height: 66px;
}

.donation-card .box-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

#donationSlider1 .box-thumb img {
    aspect-ratio: 16/9;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

#donationSlider1 .box-content p {
    min-height: 84px;
}

.gallery-impact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}

.gallery-impact img {
    aspect-ratio: auto 1015 / 571;
    height: auto;
    max-width: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.donation-details .widget--sec {
    margin-bottom: 0;
    height: 100%;
}

.info-card.recent-post .post-title {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 0;
}

.th-team .team-img img {
    aspect-ratio: 300/360;
    object-fit: cover;
}

.th-team .team-card-content p {
    min-height: 100px;
}

.brand-wrap1 .brand-box img {
    max-height: 62px;
}

.brand-box--bg {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.brand-box--bg img {
    padding: .5rem;
    background-color: var(--default);
}

.brand-box--bg:hover img {
    background-color: var(--hover);
}

.home-sec1-card h3.box-title {
    min-height: 66px;
}

.home-sec1-card .box-text {
    min-height: 84px;
    margin-bottom: 1.5rem;
}

.home-cta-card h3.box-title {
    min-height: 68px;
}

.box-content mark {
    background-color: yellow;
}

.feature-card img {
    width: 60px;
    height: auto;
}

.story-section {
    text-align: justify;
}

.contact-thumb1-1-container {
    align-self: center !important;
}
.contact-thumb1-1 img {
    object-fit: cover;
    max-height: 600px;
}

a.disabled {
    /* pointer-events: none; */
    /* color: gray; */
    /* text-decoration: none; */
    /* opacity: 0.6; */
}

.story-img-box1 {
    padding: 0;
}

.gender-t .video-thumb2-1 {
    height: auto;
    margin: 0;
}

.gender-t .video-thumb2-1 img {
    object-fit: cover;
    max-height: 20rem;
}

.th-social a.svg-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.th-social a.svg-icon svg {
    width: 1rem;
    fill: currentColor;
}

.blog-img img {
    aspect-ratio: 850/456;
    width: 100%;
    object-fit: cover;
}

.media-img img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
}

.img-radius {
    border-radius: 30px;
    margin-bottom: 0.5rem;
}

.donation-form .donation-method-button-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 10px;
}

.donation-form .donation-method-button-list li {
    border: 1px solid var(--th-border-color);
    font-size: 16px;
    font-weight: 600;
    color: var(--title-color);
    border-radius: 30px;
    height: 40px;
    line-height: 40px;
    min-width: 100px;
    padding: 0 34px;
    cursor: pointer;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.donation-form .donation-method-button-list li i {
    margin-right: 5px;
}

.donation-form .donation-method-button-list li.active,
.donation-form .donation-method-button-list li:hover {
    background: var(--theme-color);
    color: var(--white-color);
}

.copy-div {
    background-color: #00000009;
    border-radius: 5px;
    padding: .5rem;
    display: flex;
    gap: 10px;
    align-items: center;
    width: min-content;
}

.copy-div button {
    background: transparent;
    border: none;
    color: var(--theme-color-2);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: 0.4s;
    transition: all .8s ease;
}

.copy-div button.copied i {
    color: var(--theme-color);
}