/* ====================================================================== */
/*                          HOME BANNER CSS                              */
/* ====================================================================== */

.homebanner {
    /* background: linear-gradient(to bottom right, #8e0006, #4e0003); */
    color: white;
    border-radius: 16px;
    font-family: var(--body-font-family);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Ensures space is distributed */
}

/* Title */
.homebanner .homebannerpmay__title {
    font-size: 19px;
    text-align: left;
    line-height: 1.3;
    margin: 24px 24px 15px 24px;
}

/* Stacked icon list */
.homebanner .homebannerpmay__icon-grid {
    margin-bottom: 2rem;
    padding: 0 1rem;
    min-height: 157px;
}

/* Icon card */
.homebanner .homebannerpmay__icon-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    margin-bottom: 15px;
}

/* Icon image */
.homebanner .homebannerpmay__icon {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.homebanner .homebannerpmay__icon img {
    /* width: minmax(70%, 100%);  Use minmax-width only for images */
    max-width: 70%;
}

/* Icon text */
.homebanner .homebannerpmay__text {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    margin: 0;
    padding-left: 10px;
}

/* Bottom image */
/* .homebanner .homebannerpmay__image {
    position: absolute;
    bottom: 0;
} */

.homebanner .homebannerpmay__image picture,
.homebanner .homebannerpmay__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.homebannerpmay.block.pmaybanner,
.homebannerpmay.block.homebanner {
    /* position: relative; */
}

.homebannerpmay.block.pmaybanner .homebannerpmay__image,
.homebannerpmay.block.homebanner .homebannerpmay__image {
    position: absolute;
    top: 0;
    width: 100%;
}

/* CTA button */
.carousel-track-banner .carousel-card-banner .carousel-cta {
    /* background: linear-gradient(to left, #e5461c, #ee6f32); */
    /* color: white; */
    /* padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; */
    position: absolute;
    font-size: 14px;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: 10px;
    align-items: center;
    justify-content: flex-start;
    display: flex;
    width: 82%;
    /* height: 51px; */
    text-transform: capitalize;
    font-family: var(--body-font-family-semibold);
}

/* .carousel-track-banner .carousel-card-banner .carousel-cta:after{
   content: '';
  position: absolute;
  right: 16px; 
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  border-right: 2px solid #ffffff;
  border-top: 2px solid #ffffff;
  background: transparent;
} */
.carousel-track-banner .carousel-card-banner .carousel-cta:hover {
    background: linear-gradient(to right, #e5461c, #ee6f32);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Home Banner Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.homebanner .homebannerpmay__icon-card {
    animation: fadeInUp 0.6s ease forwards;
}

.homebanner .homebannerpmay__icon-card:nth-child(2) {
    animation-delay: 0.1s;
}

.homebanner .homebannerpmay__icon-card:nth-child(3) {
    animation-delay: 0.2s;
}

.homebanner .homebannerpmay__icon-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Home Banner Responsive */
@media (max-width: 767px) {
    .homebanner {
        width: 100%;
        height: 570px;

    }

    /* Keep standalone banners out of document flow until carousel claims them */
    .homebannerpmay.block:not(.carousel-card-banner) {
        visibility: hidden;
        position: absolute;
        pointer-events: none;
    }

    .carousel-scroll-track .homebannerpmay.block {
        visibility: visible;
        position: relative;
        pointer-events: auto;
    }

    .carousel-scroll-track .carousel-card-banner.homebannerpmay {
        contain: layout style;
        height: 490px;
        min-height: 490px;
        max-height: 490px;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .homebanner {
        width: 100%;
        margin: 0 auto;
    }
}

/* ====================================================================== */
/*                          PMAY BANNER CSS                              */
/* ====================================================================== */

.pmaybanner {
    /* background: linear-gradient(to bottom right, #8e0006, #4e0003); */
    color: white;
    padding: 1rem;
    border-radius: 16px;
    font-family: var(--body-font-family);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* height: 430px; */
    box-sizing: border-box;
}

/* Title cards wrapper */
.pmaybanner .title-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Title */
.pmaybanner .homebannerpmay__title {
    font-size: 19px;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.4;
    padding: 0 16px;
}

/* 2-column icon grid */
.pmaybanner .homebannerpmay__icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
    margin-bottom: 32px;
}

/* Icon card */
.pmaybanner .homebannerpmay__icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Icon image */
.pmaybanner .homebannerpmay__icon {
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmaybanner .homebannerpmay__icon img {
    /* width: minmax(70%, 100%);  Use minmax-width only for images */
    max-width: 70%;
}

/* Icon text */
.pmaybanner .homebannerpmay__text {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

/* Bottom image */
.homebannerpma .homebannerpmay__image {
    position: absolute;
    bottom: 0;
    left: 0;
}

.pmaybanner .homebannerpmay__image picture,
.pmaybanner .homebannerpmay__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    /* object-fit: cover; */
    display: block;
    max-height: 490px;
}

/* CTA button */
.pmaybanner .homebannerpmay__button {

    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: 10px;
    align-items: center;
    justify-content: flex-start;
    display: flex;
    width: 82%;
    /* height: 48px; */
}

.pmaybanner .homebannerpmay__button:hover {
    background: linear-gradient(to right, #e5461c, #ee6f32);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Hide the hidden divs */
.pmaybanner>div[style*="display: none"] {
    display: none !important;
}

/* PMAY Banner Animations */
.pmaybanner .homebannerpmay__icon-card {
    animation: fadeInUp 0.6s ease forwards;
}

.pmaybanner .homebannerpmay__icon-card:nth-child(2) {
    animation-delay: 0.1s;
}

.pmaybanner .homebannerpmay__icon-card:nth-child(3) {
    animation-delay: 0.2s;
}

.pmaybanner .homebannerpmay__icon-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* PMAY Banner Responsive */
@media (max-width: 767px) {
    .carousel-scroll-track .carousel-card-banner.pmaybanner {
        height: 490px;
        overflow: hidden;
    }

    .carousel-scroll-track .pmaybanner .homebannerpmay__title {
        min-height: 54px;
    }

    .carousel-scroll-track .pmaybanner .homebannerpmay__icon-grid {
        min-height: 120px;
    }

    .carousel-scroll-track .pmaybanner .homebannerpmay__buttons,
    .carousel-scroll-track .pmaybanner .carousel-cta-btn {
        min-height: auto;
    }

    .carousel-scroll-track .homebannerpmay__icon-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    /* Flush CTA to card bottom — bottom padding lifts absolute buttons */
    .carousel-scroll-track .homebanner,
    .carousel-scroll-track .pmaybanner {
        height: 100%;
        padding-bottom: 0;
    }

    .carousel-scroll-track .pmaybanner {
        width: 100%;
        padding: 1rem 1rem 0;
        display: flex;
        flex-direction: column;
    }

    .carousel-scroll-track .pmaybanner .homebannerpmay__button {
        bottom: 0;
        min-width: 100%;
    }

    .pmaybanner:not(.carousel-card-banner) {
        width: 100%;
        padding: 1.5rem 1rem;
        display: flex;
        flex-direction: column;
    }

    .pmaybanner:not(.carousel-card-banner) .homebannerpmay__button {
        bottom: -12px;
        min-width: 89%;
    }
}

@media (max-width: 480px) {
    .pmaybanner {
        width: 100%;
        margin: 0 auto;
    }
}