/* ------------------------------------------------------------------
   Additions for the dynamic (Laravel) version of the theme
------------------------------------------------------------------ */

/* language switcher in the navbar */
.header-language {
  position: relative;
}
.header-language .header-language-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 30px;
  border: 1px solid rgba(20, 31, 25, 0.2);
  background: rgba(255, 255, 255, 0.35);
  color: rgb(var(--mostly-black));
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.header-language .header-language-btn i.fa-globe {
  font-size: 14px;
  opacity: 0.85;
}
.header-language .header-language-btn .arrow {
  font-size: 11px;
  transition: transform 0.3s ease;
}
.header-language .header-language-btn:hover,
.header-language .header-language-btn[aria-expanded="true"] {
  background: rgb(var(--white));
  color: rgb(var(--primary-color));
  border-color: rgb(var(--white));
}
.header-language .header-language-btn[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

/* On dark navbars (Header 2, 3, 5) */
.navbar.two .header-language .header-language-btn,
.navbar.three .header-language .header-language-btn,
.navbar.five .header-language .header-language-btn {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: rgb(var(--white));
}
.navbar.two .header-language .header-language-btn:hover,
.navbar.two .header-language .header-language-btn[aria-expanded="true"],
.navbar.three .header-language .header-language-btn:hover,
.navbar.three .header-language .header-language-btn[aria-expanded="true"],
.navbar.five .header-language .header-language-btn:hover,
.navbar.five .header-language .header-language-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgb(var(--secondary-color));
  color: rgb(var(--secondary-color));
}

/* Dropdown Menu */
.header-language .header-language-menu {
  min-width: 175px;
  margin-top: 10px !important;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: rgb(var(--white));
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  z-index: 1050;
}
.header-language .header-language-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgb(var(--heading-color));
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.header-language .header-language-menu .dropdown-item .code {
  min-width: 32px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(var(--primary-color), 0.1);
  color: rgb(var(--primary-color));
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.header-language .header-language-menu .dropdown-item:hover {
  background: rgba(var(--primary-color), 0.08);
  color: rgb(var(--primary-color));
}
.header-language .header-language-menu .dropdown-item.active {
  background: rgb(var(--primary-color));
  color: rgb(var(--white));
}
.header-language .header-language-menu .dropdown-item.active .code {
  background: rgba(255, 255, 255, 0.2);
  color: rgb(var(--white));
}

/* uploaded banner image keeps the theme gradient */
.banner-section.has-image {
  background-image: linear-gradient(270deg, rgba(19, 34, 27, 0.4) 0.05%, #13221b 82.65%), var(--banner-image);
}

/* rich text coming from the admin editor */
.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.rich-content ul,
.rich-content ol {
  padding-left: 20px;
}
.rich-content p:last-child {
  margin-bottom: 0;
}

/* empty states */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: rgba(var(--body-color), 0.8);
}
.empty-state i {
  font-size: 40px;
  margin-bottom: 15px;
  color: rgb(var(--primary-color));
}

/* donation form */
.payment-list .item input:checked + label {
  border-color: rgb(var(--primary-color));
}
.donation-list li {
  cursor: pointer;
}
.donation-list li.active {
  background: rgb(var(--primary-color));
  color: rgb(var(--white));
}
.count-single .donation-amount {
  width: 90px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  color: rgb(var(--heading-color));
  -moz-appearance: textfield;
}
.count-single .donation-amount::-webkit-outer-spin-button,
.count-single .donation-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.invalid-text {
  display: block;
  margin-top: -10px;
  margin-bottom: 15px;
  font-size: 14px;
  color: rgb(var(--light-red));
}
.cause-closed-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(var(--light-red), 0.1);
  color: rgb(var(--light-red));
  font-weight: 600;
}

/* map embed of events */
.sidebar-map iframe {
  width: 100%;
  min-height: 300px;
  border: 0;
}

/* pagination links rendered by Laravel */
.pagination .page-item.disabled .page-link {
  opacity: 0.5;
  pointer-events: none;
}

/* donation preview / receipt / gateway pages */
.payment-details {
  padding: 100px 0;
}
.payment-summary li {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px dashed #ecebeb;
}
.payment-summary li:last-child {
  border-bottom: 0;
}
.receipt-icon i {
  font-size: 60px;
  color: rgb(var(--primary-color));
}
.payment-details .card {
  border: 0.5px solid #ecebeb;
  border-radius: 10px;
}
.receipt-icon.failed i {
  color: rgb(var(--light-red));
}

/* ------------------------------------------------------------------
   Uploaded images can have any size: keep the card ratios of the
   template and crop the image instead of stretching the card.
------------------------------------------------------------------ */
.causes-box:not(.one) .img-box img,
.event-box .img-box img,
.event-box2 .img-box img,
.blog-box .img-box img,
.service-box2 .img-box img,
.team-box .img-box img,
.team-box3 .img-box img {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.causes-box:not(.one) .img-box img {
  aspect-ratio: 459 / 324;
}
.event-box .img-box img {
  aspect-ratio: 336 / 270;
}
.event-box2 .img-box img,
.blog-box .img-box img {
  aspect-ratio: 460 / 363;
}
.service-box2 .img-box img {
  aspect-ratio: 304 / 217;
}
.team-box .img-box img,
.team-box3 .img-box img {
  aspect-ratio: 336 / 320;
}
.blog-box-list .img-box img,
.recent-post-image img {
  aspect-ratio: 169 / 147;
  -o-object-fit: cover;
  object-fit: cover;
}
.service-details-thumb {
  height: auto;
}
.service-details-thumb > img {
  width: 100%;
  height: auto;
  aspect-ratio: 891 / 600;
  -o-object-fit: cover;
  object-fit: cover;
}
.hero-donation-box .img-box img,
.profile-thumbs img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  -o-object-fit: cover;
  object-fit: cover;
}
.profile-thumbs img {
  border-radius: 50%;
}

/* big brand word at the bottom of footer two / four (replaces the template image) */
.footer-section .footer-big-text {
  color: #1f2a24;
  font-size: 150px;
  line-height: 0.75;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 991px) {
  .footer-section .footer-big-text {
    font-size: 66px;
  }
}

/* causes details: long donor list scrolls inside the sidebar box */
.donate-details-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--primary-color), .4) transparent;
}
.donate-details-list li:last-child { margin-bottom: 0; }
.donate-details-list::-webkit-scrollbar { width: 5px; }
.donate-details-list::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .2); border-radius: 10px; }

/* language switcher in footer style one (replaces the question icon) */
.footer-language .footer-language-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 30px;
  border: 1px solid rgba(var(--white), 0.2);
  background: rgba(var(--white), 0.06);
  color: rgb(var(--white));
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.footer-language .footer-language-btn:hover,
.footer-language .footer-language-btn[aria-expanded="true"] {
  border-color: rgb(var(--secondary-color));
  color: rgb(var(--secondary-color));
}
.footer-language .footer-language-btn .arrow {
  font-size: 13px;
  transition: transform 0.3s ease;
}
.footer-language .footer-language-btn[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}
.footer-language .footer-language-menu {
  min-width: 190px;
  margin-bottom: 10px !important;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: rgb(var(--white));
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}
.footer-language .footer-language-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgb(var(--heading-color));
  font-size: 15px;
}
.footer-language .footer-language-menu .dropdown-item .code {
  min-width: 34px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(var(--primary-color), 0.1);
  color: rgb(var(--primary-color));
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.footer-language .footer-language-menu .dropdown-item:hover {
  background: rgba(var(--primary-color), 0.08);
  color: rgb(var(--primary-color));
}
.footer-language .footer-language-menu .dropdown-item.active {
  background: rgb(var(--primary-color));
  color: rgb(var(--white));
}
.footer-language .footer-language-menu .dropdown-item.active .code {
  background: rgba(var(--white), 0.2);
  color: rgb(var(--white));
}

/* Mobile offcanvas menu: active & hover link visibility */
@media (max-width: 1199.98px) {
  #offcanvasNavbar .navbar-nav .nav-link:hover,
  #offcanvasNavbar .navbar-nav .nav-link.active {
    color: rgb(var(--primary-color)) !important;
  }
  .navbar.five #offcanvasNavbar .navbar-nav .nav-link:hover,
  .navbar.five #offcanvasNavbar .navbar-nav .nav-link.active {
    color: rgb(var(--secondary-color)) !important;
  }
}

.offcanvas.show .navbar-nav .nav-link:hover,
.offcanvas.show .navbar-nav .nav-link.active {
  color: rgb(var(--primary-color)) !important;
}
.navbar.five .offcanvas.show .navbar-nav .nav-link:hover,
.navbar.five .offcanvas.show .navbar-nav .nav-link.active {
  color: rgb(var(--secondary-color)) !important;
}

/* Footer style two overflow fix */
.footer-section.two {
  overflow: hidden;
}


/* Equal-height cause cards */
.row > [class*="col-"] > .causes-box {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.row > [class*="col-"] > .causes-box .text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.row > [class*="col-"] > .causes-box .text-box .cmn-hr {
  margin-top: auto !important;
}
.row > [class*="col-"] > .causes-box .text-box .custom-progress + .text-center {
  margin-top: 0;
}
.row > [class*="col-"] > .causes-box .text-box .custom-progress + .text-center {
  margin-bottom: 30px;
}

/* Equal-height event cards */
.row > [class*="col-"] > .event-box,
.row > [class*="col-"] > .event-box2{
  height: 100%;
  display: flex;
  flex-direction: column;
}
.row > [class*="col-"] > .event-box .text-box,
.row > [class*="col-"] > .event-box2 .text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.row > [class*="col-"] > .event-box2 .text-box .title {
  margin-bottom: 25px;
}
.row > [class*="col-"] > .event-box2 .text-box .cmn-hr2 {
  margin-top: auto !important;
}
.row > [class*="col-"] > .event-box .text-box .donate-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Equal-height service cards */
.row > [class*="col-"] > .service-box,
.row > [class*="col-"] > .service-box2,
.row > [class*="col-"] > .service-box3 {
  height: 100%;
}

/* Service card: stretch না করে ছবি cover করবে */
.service-box {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
}

/* Causes card "one" (horizontal): ছবি বামে, লেখা ডানে */
.row > [class*="col-"] > .causes-box.one {
  flex-direction: row;
  align-items: stretch;
}
.row > [class*="col-"] > .causes-box.one .img-box {
  width: 50%;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.row > [class*="col-"] > .causes-box.one .text-box {
  width: 50%;
  padding: 24px 16px 24px 24px;
}
@media (max-width: 575px) {
  .row > [class*="col-"] > .causes-box.one {
    flex-direction: column;
  }
  .row > [class*="col-"] > .causes-box.one .img-box,
  .row > [class*="col-"] > .causes-box.one .text-box {
    width: 100%;
  }
  .row > [class*="col-"] > .causes-box.one .img-box {
    aspect-ratio: 1/1;
  }
}

/* Event/Blog card "two" (horizontal): ছবি বামে, লেখা ডানে */
.row > [class*="col-"] > .blog-box.two {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.row > [class*="col-"] > .blog-box.two .img-box {
  width: 48%;
  flex-shrink: 0;
}
.row > [class*="col-"] > .blog-box.two .text-box {
  width: 52%;
}
@media (max-width: 991px) {
  .row > [class*="col-"] > .blog-box.two {
    flex-direction: column;
  }
  .row > [class*="col-"] > .blog-box.two .img-box,
  .row > [class*="col-"] > .blog-box.two .text-box {
    width: 100%;
  }
}
.blog-box.two .img-box img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

/* Home four causes slider: equal-height cards */
.cause-carousel .owl-stage {
  display: flex;
}
.cause-carousel .owl-item {
  display: flex;
  height: auto;
}
.cause-carousel .owl-item > .item {
  display: flex;
  width: 100%;
}
.cause-carousel .causes-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cause-carousel .causes-box .text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* "View Details" + admin row stays at the bottom */
.cause-carousel .causes-box .text-box > .d-flex {
  margin-top: auto !important;
  padding-top: 30px;
}
