/* Modal container */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Modal content */
.video-modal-content {
    position: relative;
    margin: 10% auto;
    padding: 0;
    width: 80%;
    max-width: 900px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Close button */
.video-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.video-modal-close:hover {
    color: #ccc;
}

.features-area {
    position: relative;
    overflow: hidden;
}

.features-area .feature-item,
.instagram-area {
    position: relative;
    z-index: 0;
}

.person-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.news_image_div {
    display: flex;
    flex-direction: column;
    height: 200px;
    overflow: hidden;
}

.news_image_div img {
    width: 100%;
    height: 200px;
    object-position: center;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news_image_div:hover img {
    transform: scale(1.1); 
    cursor:pointer;
}

.news_content_div {
    flex: 1;
    display: flex;
    align-items: start;
    justify-content: center;
    text-align: left;
    height:calc(100% - 200px);
}


.card {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
}

.card-logo {
    flex: 1;
    width: 50%;
    height: auto;
    max-width: 100%;
    margin: auto;
    display: block;
    border-radius: 10px;
}

.card-content {
    flex: 1;
}

@media (max-width: 600px) {
    .card {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .navbar-brand-par {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}




.dropdown-menu {
    transition: all 0.3s ease-in-out;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
}

.dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}


/* Desktop hover */
@media (min-width: 992px) {
    .has-submenu:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Show when active (for mobile) */
.dropdown-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.language-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    display: block;
}

.language-item:hover .language-options {
    max-height: 100px;
}


/* news css */
.upcoming_News_area .news_image_div img {
    max-height: 200px;
    object-fit: cover;
}

.upcoming_News_area .news_content_div {
    padding-top: .5rem;
}

.upcoming_News_area .title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.upcoming_News_area .title a:hover {
    color: #FFAC21;
    /* Match your theme color */
}

.upcoming_News_area .primary-btn2 {
    margin-top: .5rem;
}

.upcoming_News_area .h-100 {
    display: flex;
    flex-direction: column;
}

.upcoming_News_area .news_content_div p {
    margin-bottom: 1rem;
    color: #666;
}

.location_icon {
    width: 20px;
    height: 20px;
}


/* event css */

.single-popular-cause {
    height: 90%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.single-popular-cause .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0;
}

.events_image_div {
    height: 200px;
    overflow: hidden;
}

.events_image_div img {
    width: 100%;
    height: 200px;
    object-position: center;
    display: block;
    object-fit: cover;
}

.card_inner_body {
    flex-grow: 1;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: calc(100% - 200px);
}

.card_inner_body .card-title {
    margin-bottom: .1rem;
    min-height: 3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    border-bottom: 1px solid #cfcfcf;
    padding-bottom: .5rem;
    margin-bottom: .5rem;
}

.card_inner_body .donation {
    margin-top: auto;
}

.card_inner_body .donation p {
    margin-bottom: 0.5rem;
}

.card_inner_body .primary-btn {
    margin-top: .1rem;
}

.location_icon {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    vertical-align: middle;
}



/* event play-zoom button */

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.image-modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    margin: auto;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: rgb(255, 172, 33);
    color: white;
    font-size: 24px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
}

.image-modal-close:hover {
    background: #e69500;
}

.play-button {
    cursor: pointer;
    transition: transform 0.2s;
}

.play-button:hover {
    transform: scale(1.1);
}


@media all and (max-width:992px) {

    /* Reset Bootstrap's collapse */
    #navbarSupportedContent {
        display: block !important;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-20px);
        transition:
            max-height 0.6s ease-in-out,
            opacity 0.6s ease-in-out,
            transform 0.6s ease-in-out;
        pointer-events: none;
    }

    /* When toggled open */
    #navbarSupportedContent.menu-open {
        /* max-height: 500px; */
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); */
        border-radius: 0 0 10px 10px;
        /* background-color: white; */
        min-height: 100vh;
        min-width: 200px;
    }

    .navbar-nav {
        overflow: auto;
        min-height: 100vh;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .navbar-nav.menu-open::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }


    #navbarSupportedContent.menu-open .navbar-nav>li {
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }

    #navbarSupportedContent.menu-open .navbar-nav>li:nth-child(1) {
        animation-delay: 0.1s;
    }

    #navbarSupportedContent.menu-open .navbar-nav>li:nth-child(2) {
        animation-delay: 0.2s;
    }

    #navbarSupportedContent.menu-open .navbar-nav>li:nth-child(3) {
        animation-delay: 0.3s;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

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

    /* Show with slide effect */
    .dropdown.open .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0px);
    }

    /* Nested language options */
    .language-options {
        display: none;
        padding-left: 1rem;
    }

    .language-item:hover .language-options {
        display: block;
    }
}


.a_event {
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
}


.responsive-wrapper {
    width:100%;
    display: flex;
    gap: 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .responsive-wrapper > div {
    flex: 1;
  }
  @media (max-width: 991px) {
    .responsive-wrapper {
      flex-direction: column;
    }
  }

  .navbar-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-left:1rem;
}

@media all and (max-width: 993px) { 
    .navbar-nav {
        display:flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }
}

#navbarSupportedContent{
    width:100%;
}