.custom-file-button {
    input[type="file"] {
        margin-left: -2px !important;

        &::-webkit-file-upload-button {
            display: none;
        }

        &::file-selector-button {
            display: none;
        }
    }

    &:hover {
        label {
            background-color: #dde0e3;
            cursor: pointer;
        }
    }
}

.sibling-card {
    position: relative;
    background: var(--bg-secondary);
}

.sibling-card .btn-danger {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

@media (min-width: 768px) {
    .responsive-align {
        text-align: right !important;
    }

    .desktop-mt {
        margin-top: 5rem !important;
    }
}

@media (max-width: 767.98px) {
    .responsive-align {
        text-align: center !important;
    }
}

.custom-font-size-22 {
    font-size: 22px !important;
}

.custom-font-size-medium {
    font-size: medium !important;
}

.form-label {
    font-size: 15px !important;
}

.custom-font-size-15 {
    font-size: 15px !important;
}

.rounded-right-13 {
    border-top-right-radius: 1.3rem !important;
    border-bottom-right-radius: 1.3rem !important;
}

.rounded-left-13 {
    border-top-left-radius: 1.3rem !important;
    border-bottom-left-radius: 1.3rem !important;
}

.font-color-black {
    color: rgb(0, 0, 0) !important;
}

.member-list-icon {
    width: 30px;
    height: auto;
}

.happy-story-card {
    width: 100%;
    height: 15vw;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .happy-story-card {
        height: auto !important;
    }
}

@media (max-width: 991.98px) {
    .happy-story-card {
        height: 40vw !important;
    }
}

.profile-photo-wrapper {
    height: 100%;
    /* display: flex; */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 13px;
    border-bottom-left-radius: 13px;
}

.profile-photo-img {
    object-fit: cover;
    border-radius: inherit;
    /* height: 100%; */
    object-position: top;
    /* center */
}

.rounded-75px {
    border-radius: 0.75rem !important;
}

@media (max-width: 576px) {
    .mt-mobile-20 {
        margin-top: 20px !important;
    }
}
/* Member listing animations */
.card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

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

/* Hover effects */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
}

img:hover {
    transform: scale(1.02);
}
/* Member card animations */
.d-flex.flex-column.flex-md-row.border {
    opacity: 0;
    transform: translateY(30px);
    animation: memberCardFadeIn 0.8s ease forwards;
    transition: all 0.3s ease;
}

.d-flex.flex-column.flex-md-row.border:nth-child(1) { animation-delay: 0.1s; }
.d-flex.flex-column.flex-md-row.border:nth-child(2) { animation-delay: 0.2s; }
.d-flex.flex-column.flex-md-row.border:nth-child(3) { animation-delay: 0.3s; }
.d-flex.flex-column.flex-md-row.border:nth-child(4) { animation-delay: 0.4s; }
.d-flex.flex-column.flex-md-row.border:nth-child(5) { animation-delay: 0.5s; }

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

/* Card hover effects */
.d-flex.flex-column.flex-md-row.border:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Profile image animations */
.profile-photo-img {
    transition: transform 0.3s ease;
}

.profile-photo-img:hover {
    transform: scale(1.05);
}

/* Button animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Action button animations */
.action-buttons a {
    transition: all 0.3s ease;
}

.action-buttons a:hover {
    transform: scale(1.1);
}
/* Enhanced Member Card Animations */
.d-flex.flex-column.flex-md-row.border {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    animation: memberCardEnhanced 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px !important;
    overflow: hidden;
    position: relative;
}

.d-flex.flex-column.flex-md-row.border:nth-child(1) { animation-delay: 0.1s; }
.d-flex.flex-column.flex-md-row.border:nth-child(2) { animation-delay: 0.2s; }
.d-flex.flex-column.flex-md-row.border:nth-child(3) { animation-delay: 0.3s; }
.d-flex.flex-column.flex-md-row.border:nth-child(4) { animation-delay: 0.4s; }
.d-flex.flex-column.flex-md-row.border:nth-child(5) { animation-delay: 0.5s; }

@keyframes memberCardEnhanced {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Enhanced Card Hover */
.d-flex.flex-column.flex-md-row.border:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(253, 44, 121, 0.15), 0 0 0 1px rgba(253, 44, 121, 0.1);
}

.d-flex.flex-column.flex-md-row.border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.d-flex.flex-column.flex-md-row.border:hover::before {
    left: 100%;
}

/* Enhanced Profile Image */
.profile-photo-img {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px !important;
}

.profile-photo-img:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Enhanced Buttons */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(253, 44, 121, 0.3);
}

/* Enhanced Action Buttons */
.action-buttons a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.action-buttons a:hover {
    transform: scale(1.15) translateY(-5px);
}

.action-buttons a:hover i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

/* Profile Info Animation */
.profile-fields-grid .col-6 {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInInfo 0.6s ease forwards;
}

.profile-fields-grid .col-6:nth-child(1) { animation-delay: 0.1s; }
.profile-fields-grid .col-6:nth-child(2) { animation-delay: 0.2s; }
.profile-fields-grid .col-6:nth-child(3) { animation-delay: 0.3s; }
.profile-fields-grid .col-6:nth-child(4) { animation-delay: 0.4s; }
.profile-fields-grid .col-6:nth-child(5) { animation-delay: 0.5s; }
.profile-fields-grid .col-6:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInInfo {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Text Glow Effect */
.text-primary-grad:hover {
    text-shadow: 0 0 10px rgba(253, 44, 121, 0.5);
    transition: text-shadow 0.3s ease;
}