/* Custom CSS for Hatiko website */

/* Add responsive pet display rules */
@media (max-width: 767.98px) {
    /* Hide pets after the 4th one on mobile */
    .pet-card[data-pet-index]:not([data-pet-index="1"]):not([data-pet-index="2"]):not([data-pet-index="3"]):not([data-pet-index="4"]) {
        display: none;
    }
}

@media (min-width: 768px) {
    /* On desktop, hide pets after the 8th one */
    .pet-card[data-pet-index]:not([data-pet-index="1"]):not([data-pet-index="2"]):not([data-pet-index="3"]):not([data-pet-index="4"]):not([data-pet-index="5"]):not([data-pet-index="6"]):not([data-pet-index="7"]):not([data-pet-index="8"]) {
        display: none;
    }
}

/* IE Panel */
.ie-panel {
	display: none;
	background: #212121;
	padding: 10px 0;
	box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, 0.3);
	clear: both;
	text-align: center;
	position: relative;
	z-index: 1;
}

html.ie-10 .ie-panel,
html.lt-ie-10 .ie-panel {
	display: block;
}

/* Page animation */
.page.animated {
	animation-duration: 500ms;
}

/* Slider slides - background images handled via data attributes in JS */
.swiper-slide[data-slide-bg] {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.swiper-slide[data-slide-bg="images/slider-01-2048x1000.jpg"] {
	background-image: url('../images/slider-01-2048x1000.jpg');
}

.swiper-slide[data-slide-bg="images/slider-02-2048x1000.jpg"] {
	background-image: url('../images/slider-02.jpg');
}

.swiper-slide[data-slide-bg="images/slider-03-2048x1000.jpg"] {
	background-image: url('../images/slider-03-2048x1000.jpg');
}

/* RD Navbar */
.rd-navbar-wrap {
	height: 81.4px;
}

/* Dropdown menu - styles handled by main CSS */

/* WOW animations - visibility handled by JavaScript, but we can set defaults */
.wow {
	visibility: visible;
}

#pets-container .col-xl-3 {
	visibility: visible !important;
	opacity: 1 !important;
}

.google-map {
	position: relative;
	overflow: hidden;
	min-height: 300px;
	background: #e5e3df;
}

.google-map-container {
	min-height: 300px;
}

/* Center logo on mobile (small screens) */
.rd-navbar-fixed .rd-navbar-panel {
	justify-content: center;
	padding-left: 56px;
	padding-right: 56px;
}

.rd-navbar-fixed .rd-navbar-toggle {
	position: absolute;
	left: 4px;
	z-index: 1081;
	cursor: pointer;
}

.rd-navbar-fixed .rd-navbar-brand {
	margin-left: 0;
	margin-right: 0;
	text-align: center;
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.clickable-card {
	text-decoration: none;
	display: block;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	touch-action: manipulation;
	will-change: scroll-position;
}

/* Add active state for touch devices to simulate hover effect */
.clickable-card:active .post-figure,
.clickable-card.active .post-figure {
	opacity: .2;
}

.clickable-card:active .post-body,
.clickable-card.active .post-body {
	transform: translateY(0);
}

.clickable-card:active .post-text,
.clickable-card.active .post-text {
	opacity: 1;
	transform: translateY(0);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 15px 0;
}

.gallery .gallery-item {
    transition: transform 0.2s;
    display: inline-block;
    position: relative;
}

.gallery .gallery-item:hover {
    transform: scale(1.05);
}

.gallery .gallery-item a {
    display: block;
    position: relative;
}

.gallery .gallery-item .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery .gallery-item .video-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
}

/* Blueimp gallery video styles - centered with play button */
.blueimp-gallery {
    text-align: center;
}

.blueimp-gallery video {
    object-fit: contain;
    width: 100% !important;
    height: auto !important;
    max-width: 70%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    position: absolute;
    top: 50%!important;
    left: 50%!important;
    transform: translate(-50%, -50%)!important;
}

/* Make blueimp gallery controls visible */
.blueimp-gallery > .prev,
.blueimp-gallery > .next,
.blueimp-gallery > .play-pause {
    opacity: 1 !important;
    display: block !important;
}

/* Style close button with white X */
.blueimp-gallery > .close {
    opacity: 1 !important;
    display: block !important;
    color: white !important;
    font-size: 2em !important;
    text-align: center !important;
    text-decoration: none !important;
}

.blueimp-gallery > .close:before {
    content: '×';
    font-weight: normal;
}

/* Manual arrows for left and right controls */
.blueimp-gallery-display > .next,
.blueimp-gallery-display > .prev {
    width: 60px !important;
    height: 60px !important;
    background: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    border: none !important;
}

.blueimp-gallery-display > .next:before,
.blueimp-gallery-display > .prev:before {
    content: "" !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 20px solid transparent !important;
    border-bottom: 20px solid transparent !important;
    margin: 0 20px !important;
    border-left: none !important;
    border-right: none !important;
}

.blueimp-gallery-display > .prev:before {
    border-right: 30px solid rgba(255, 255, 255, 0.7) !important;
}

.blueimp-gallery-display > .next:before {
    border-left: 30px solid rgba(255, 255, 255, 0.7) !important;
}

/* Hide arrows on mobile devices */
@media (max-width: 768px) {
    .blueimp-gallery-display > .next,
    .blueimp-gallery-display > .prev {
        display: none !important;
    }
    
    /* Make video width 90% on mobile */
    .blueimp-gallery video {
        max-width: 90% !important;
    }
}

/* Custom play button overlay for videos */
.blueimp-gallery .video-content {
    position: relative;
    display: inline-block;
}

.blueimp-gallery .video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.blueimp-gallery .video-play {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.48)!important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: auto !important;
}

.blueimp-gallery .video-play:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid #333;
    margin-left: 5px;
}

.blueimp-gallery .video-content {
    pointer-events: none !important;
}

.blueimp-gallery .video-content video {
    pointer-events: auto !important;
}

.blueimp-gallery .video-cover {
    max-width: 70%;
    top: 50%!important;
    left: 50%!important;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

/* Custom modal styles */
.custom-modal {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.custom-modal .modal-header {
    background: #598ee6;
    border-bottom: none;
    padding: 15px 20px;
	position: relative;
}

.custom-modal .modal-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    opacity: 0.12;
	background-image: url("../images/paws-bg.png");
}

.custom-modal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: white;
	z-index: 10;
}

.custom-modal .modal-body {
    padding: 20px;
    font-size: 1rem;
    color: #555;
}

/* Navigation highlight styles */
.rd-navbar-nav .rd-nav-item.active .rd-nav-link {
    color: #e0e0e0 !important;
    font-weight: bold;
}

.rd-navbar-nav .rd-nav-link {
    transition: color 0.3s ease;
}

.rd-navbar-nav .rd-nav-link:hover {
    color: #e8e8e8 !important;
}

.rd-navbar {
	position: fixed;
	width: 100%;
	z-index: 1000000;
}

.div-img-block {
	height: 230px;
	display: block;
	background-size: cover;
	background-position: center;
}

.social-networks i {
	font-style: normal !important;
}

/* Contact section styles */
.contact-info .unit {
    align-items: flex-start;
}

.contact-info .unit-left {
    min-width: 24px; /* Ensures icons have consistent width */
}

.contact-info .unit-body {
    flex: 1;
}

/* "Узнать больше" button: centered on mobile, left-aligned on desktop */
.contact-learn-more-wrap {
    text-align: center;
}
@media (min-width: 992px) {
    .contact-learn-more-wrap {
        text-align: left;
    }
}

.post {
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

.post-body {
	-webkit-transition: -webkit-transform 0.5s ease-out;
	transition: transform 0.5s ease-out;
}

.post-text {
	-webkit-transition: opacity 0.3s ease-out, -webkit-transform 0.5s ease-out;
	transition: opacity 0.3s ease-out, transform 0.5s ease-out;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-perspective: 1000px;
	perspective: 1000px;
}

.blueimp-gallery {
	z-index: 9999990!important;
}

.modal {
	z-index: 9999989!important;
}

.gallery i {
	font-style: normal !important;
}

/* Progress bar styles for file uploads */
.progress {
    height: 20px;
    margin-bottom: 10px;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #007bff;
    transition: width 0.6s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position-x: 1rem;
    }
}

.modal-open {
    overflow: hidden;
    position: relative;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

body.modal-open {
    position: fixed;
    width: 100%;
    height: 100%;
}

.modal-backdrop.show {
    opacity: 0.8;
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 3px solid #FFF;
  border-right: 3px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader.loader-button {
  width: 20px;
  height: 20px;
  border-top: 2px solid #FFF;
  border-right: 2px solid transparent;
  margin: 0 auto;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 

/* Copy link button styles */
#copy-link-btn {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

#copy-link-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

#copy-link-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Toastr – modern card-style notifications (high specificity to override toastr.min.css) */
#toast-container {
  position: fixed !important;
  z-index: 9999999999 !important;
  pointer-events: none !important;
}

#toast-container > div {
  position: relative !important;
  pointer-events: auto !important;
  overflow: hidden !important;
  margin: 0 0 6px !important;
  padding: 14px 48px 14px 50px !important;
  width: 300px !important;
  min-width: 280px !important;
  max-width: 420px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  background-repeat: no-repeat !important;
  background-position: 16px center !important;
  background-size: 22px 22px !important;
  font-size: 0.9375rem !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
}

#toast-container > div:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

#toast-container > div.toast-success {
  background-color: #198754 !important;
  color: #fff !important;
  border-left: none !important;
  box-shadow: 0 4px 20px rgba(25, 135, 84, 0.35), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

#toast-container > div.toast-success:hover {
  box-shadow: 0 6px 24px rgba(25, 135, 84, 0.45), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

#toast-container > div.toast-error {
  background-color: #dc3545 !important;
  color: #fff !important;
  border-left: none !important;
}

#toast-container > div.toast-warning {
  background-color: #fd7e14 !important;
  color: #fff !important;
  border-left: none !important;
}

#toast-container > div.toast-info {
  background-color: rgb(89, 142, 243) !important;
  color: #fff !important;
  border-left: none !important;
}

#toast-container .toast-title {
  font-weight: 600 !important;
  font-size: 1rem !important;
  margin-bottom: 0.2rem !important;
  padding-right: 0 !important;
  color: inherit !important;
}

#toast-container .toast-message {
  color: inherit !important;
  padding-right: 0 !important;
}

/* Keep toast content clear of the close button (no overlap with ×) */
#toast-container > div .toast-title,
#toast-container > div .toast-message {
  display: block !important;
  padding-right: 24px !important;
}


#toast-container .toast-message a,
#toast-container .toast-message label {
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: underline !important;
}

#toast-container .toast-message a:hover {
  color: #fff !important;
}

#toast-container .toast-close-button {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  opacity: 0.9 !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  -webkit-text-shadow: none !important;
  text-shadow: none !important;
}

#toast-container .toast-close-button:hover {
  color: #fff !important;
  opacity: 1 !important;
  transform: translateY(-50%) !important;
}

#toast-container.toast-top-right {
  top: 20px !important;
  right: 20px !important;
}

#toast-container.toast-top-full-width {
  top: 20px !important;
  right: 0 !important;
  width: 100% !important;
}


/* Donation / pay options – more separation on mobile */
@media (max-width: 767px) {
    #donation .row-30 > * {
        margin-bottom: 2.5rem;
    }
    #donation .row-30 > *:last-child {
        margin-bottom: 0;
    }
    #donation .col-sm-6,
    #donation .col-lg-3 {
        padding-bottom: 0;
    }
    #donation .unit,
    #donation .donation-info {
        padding-left: 0;
        padding-right: 0;
    }
    #donation .row-30 > [class*="col-"] {
        padding: 1.25rem 1rem;
        margin-bottom: 1.5rem;
        background: #f8f9fa;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        text-align: center;
    }
    #donation .row-30 > [class*="col-"] .unit {
        justify-content: center;
    }
    #donation .row-30 > [class*="col-"] .donation-info,
    #donation .row-30 > [class*="col-"] .unit-body,
    #donation .row-30 > [class*="col-"] h5,
    #donation .row-30 > [class*="col-"] p {
        text-align: center;
    }
    #donation .row-30 > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    #donation .container > .text-center.mt-4 {
        margin-top: 2.5rem !important;
    }
}

/* Contact icon styles */
.contact-icon {
    font-size: 1.2rem;
    color: #55acee;
}

/* Modal z-index adjustments */
#allPetsModal {
    z-index: 9999988 !important;
}

#modalWindow {
    z-index: 9999989 !important;
}

.modal-backdrop {
    z-index: 9999980 !important;
}

.div-img-block {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 230px;
}

.pets-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    margin: 10px 5px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: rgb(89, 142, 243);
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(89, 142, 243, 0.35);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    min-width: 160px;
    justify-content: center;
}

.pets-button:hover {
    background: rgb(74, 127, 240);
    color: #fff;
    box-shadow: 0 4px 12px rgba(89, 142, 243, 0.4);
}

.pets-button:active {
    transform: scale(0.98);
}

.pets-button img {
    height: 22px;
    width: auto;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

/* Load more button – same modern style as pets / help card buttons */
#all-pets-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    background: rgb(89, 142, 243);
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(89, 142, 243, 0.35);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

#all-pets-load-more-btn:hover {
    background: rgb(74, 127, 240);
    color: #fff;
    box-shadow: 0 4px 12px rgba(89, 142, 243, 0.4);
}

#all-pets-load-more-btn:active {
    transform: scale(0.98);
}

/* Help Cards Carousel Styles */
.help-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.help-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.help-card .card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.help-card .card-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.help-card .card-subtitle {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.help-card .card-text {
    flex-grow: 1;
    margin-bottom: 1.75rem;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.help-card .btn {
    align-self: center;
    padding: 0.55rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    background: rgb(89, 142, 243); /* sRGB 0.3483 0.5584 0.9537 */
    color: #fff;
    box-shadow: 0 2px 8px rgba(89, 142, 243, 0.35);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.help-card .btn:hover {
    background: rgb(74, 127, 240);
    color: #fff;
    box-shadow: 0 4px 12px rgba(89, 142, 243, 0.4);
}

.help-card .btn:active {
    transform: scale(0.98);
}

/* Owl Carousel Custom Styles */
#help-cards-carousel .owl-stage-outer {
    padding: 20px 0;
    overflow: hidden;
}

/* Nav (prev/next) visible only on big screens, outside the carousel content */
#help-cards-carousel .owl-nav {
    display: none !important;
}
@media (min-width: 992px) {
    #help-cards-carousel .owl-nav {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        margin: 0 !important;
    }
    #help-cards-carousel .owl-nav .owl-prev,
    #help-cards-carousel .owl-nav .owl-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: auto;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.07);
        color: rgba(0, 0, 0, 0.6);
        border: none;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
        padding: 0;
    }
    #help-cards-carousel .owl-nav .owl-prev:hover,
    #help-cards-carousel .owl-nav .owl-next:hover {
        background: rgba(0, 0, 0, 0.15);
        color: rgba(0, 0, 0, 0.9);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        text-decoration: none;
    }
    #help-cards-carousel .owl-nav .owl-prev.disabled,
    #help-cards-carousel .owl-nav .owl-next.disabled {
        opacity: 0.4;
        cursor: default;
    }
    /* Just outside carousel edges – no wrapper padding, so inner width unchanged */
    #help-cards-carousel .owl-nav .owl-prev {
        left: -60px;
        right: auto;
    }
    #help-cards-carousel .owl-nav .owl-next {
        right: -60px;
        left: auto;
    }
}

#help-cards-carousel .owl-dots {
    display: none !important;
}

#help-cards-carousel .owl-dot {
    display: inline-block;
    margin: 0 !important;
}

#help-cards-carousel .owl-dot span {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    background: #e0e0e0 !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

#help-cards-carousel .owl-dot.active span {
    background: #007bff !important;
    transform: scale(1.2);
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#help-cards-carousel .owl-dot:hover span {
    background: #bbbbbb !important;
    transform: scale(1.1);
}

/* Help Card Consistent Height */
.help-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.help-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.help-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.help-card .card-title {
    flex: 0 0 auto;
}

.help-card .card-subtitle {
    flex: 0 0 auto;
}

.help-card .card-text {
    flex: 1;
    overflow: hidden;
}

.help-card .btn {
    flex: 0 0 auto;
    margin-top: auto;
    align-self: center;
}

/* Owl Carousel Item Height */
#help-cards-carousel .owl-item .item {
    height: 100%;
}

#help-cards-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

#help-cards-carousel .owl-stage .owl-item {
    display: flex;
    align-items: stretch;
}

#help-cards-carousel .owl-stage .owl-item .item {
    height: 100%;
    display: flex;
    align-items: stretch;
}

/* Sortable Drag and Drop */
.sortable-placeholder {
    border: 2px dashed #ccc;
    background: #f9f9f9;
    margin-bottom: 20px;
    border-radius: 5px;
}

.card.dragging {
    opacity: 0.5;
    z-index: 9999;
}

.drag-handle-card {
    cursor: move;
    user-select: none;
}



/* Responsive adjustments for help cards */
@media (max-width: 576px) {
    .help-card .card-img-top {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .help-card .card-body {
        padding: 1rem;
    }
    
    .help-card .card-title {
        font-size: 1.1rem;
    }
    
    .help-card .card-text {
        font-size: 0.85rem;
    }
}

.help-card {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

@media (max-width: 767px) {
    #help-cards-carousel .owl-item .item {
        width: 100%;
        max-width: 100%;
    }
    #help-cards-carousel .owl-item .help-card {
        width: 100%;
        max-width: 100%;
    }
}

.help-cards-carousel-wrapper {
    position: relative;
    width: 100%;
}

#help-cards-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
}

#help-cards-carousel .owl-item {
    min-width: 0;
    box-sizing: border-box;
}
#help-cards-carousel .owl-item .item {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
#help-cards-carousel .owl-item .help-card {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Donation card image: link opens blueimp gallery */
.help-card .donation-card-gallery-link {
    cursor: pointer;
    display: block;
}
.help-card .donation-card-gallery-link .card-img-top {
    display: block;
    width: 100%;
}

#ui-to-top {
    border-radius: 10px;
}