/* 
Theme Name: Ummah Relief Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Ummah Relief Child is a child theme of Hello Elementor, created by Team Swiss Tech
Author: Talha Rafique
Author URI: https://elementor.com/
Template: hello-elementor
Version: 3.4.1
Text Domain: ummah-relief-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* root classes */
:root {
    --error-colr: #dc3545;
    --green: #259447;
    --bs-orange: #f36622;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --default-color: #f36622;
    --input-color: #000000;
    --pre-span-text-color: #fff;
    --input-border: #6c757d;
    --input-background: #fff;
    --input-placeholder: #cbd1dc;

    --input-border-focus: var(--default-color);

    --bs-primary: var(--default-color);
    --bs-btn-active-color: darken(var(--default-color));
    --bs-btn-active-bg: darken(var(--default-color));
    --bs-btn-active-border-color: darken(var(--default-color));

    --group-color: black;
    --group-border: var(--input-border);
    --group-background: #6c757d;
    /* #EEF4FF; */

    --group-color-focus: #fff;
    --group-border-focus: var(--input-border-focus);
    --group-background-focus: var(--default-color);

    --text-color: black;

    --menus-color: #27465e;
    --input-border-2: #dee2e6;

    --main-font: "Poppins", Sans-serif;

    --gradient-to-r: linear-gradient(
            to right,
            var(--bs-orange),
            var(--bs-yellow)
    );
    --gradient-to-l: linear-gradient(to left, var(--bs-orange), var(--bs-yellow));
    --bs-green-light: #ebfdf1;
    --text-color-2: #585858;
    --dark-green-color: #195a44;
    --error-shadow-colr: rgba(220, 53, 69, 0.2);
}

*,
body {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    padding: 0;
}

/* utility classes */
.text-shadow-2xs {
    text-shadow: 0px 1px 0px rgb(0 0 0 / 0.15);
}

.text-shadow-3xs {
    text-shadow: 0px 1px 0px rgb(0 0 0 / 0.05);
}

.bg-linear-to-r {
    background-image: var(--gradient-to-r);
}

.bg-linear-to-l {
    background-image: var(--gradient-to-l);
}

.bg-linear-to-tr {
    background-image: linear-gradient(
            to right top,
            #d1ffe9,
            #d4ffff,
            #e5feff,
            #f7fdff,
            #ffffff
    );
}

/* other input  */
.other-input-value {
    width: auto !important;
    max-width: 100% !important;
    padding: 0.3rem 0.75rem !important;
    border: 1px solid inherit !important;
    transition: transform 0.25s ease-in;
}

.other-input-value:focus {
    border: 1px solid var(--bs-green) !important;
}

/* radio button styling */
.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-right: 5px;
}

/* hover effect */
.custom-radio:hover {
    border-color: var(--bs-green, #198754);
}

/* focus for accessibility */
.custom-radio:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.2);
}

/* inner dot */
.custom-radio::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10.5px;
    height: 10.5px;
    background: var(--bs-green, #198754);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.25s ease-out;
}

/* checked state with animation */
.custom-radio:checked {
    border-color: var(--bs-green, #198754);
    animation: pulse 0.3s ease-out;
}

.custom-radio:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

.grey-bg {
    background: #f6f3f1;
}

/* pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* form group */
.frm-group {
    display: flex;
}

.frm-group:not(.frm-row) {
    flex-direction: column;
    gap: 0.1rem;
}

.frm-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Apply margin to labels inside frm-group that do NOT contain qurbani-frm-label and zakat form label */
.frm-group:not(:has(.qurbani-frm-label), .frm-row) label {
    margin-bottom: 0.5rem;
}

/* form label */
.frm-label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 16px;
}

/* form input */
.frm-input,
.frm-qty-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none !important;
    color: var(--text-color) !important;
}

.frm-input {
    border: 1px solid var(--input-border-2) !important;
    box-shadow: 0 0 1px 0 rgb(0 0 0 / 0.15);
}

.frm-other-input {
    padding: 0.3rem 0.75rem !important;
}

.frm-qty-input {
    border: none !important;
    box-shadow: none;
    width: 80px !important;
    padding: 0 !important;
    text-align: center;
}

.frm-qty-input:focus {
    border: none !important;
    box-shadow: none;
}

.frm-input:focus {
    box-shadow: 0 0 3px 0 rgb(0 0 0 / 0.25);
}

.frm-input:not(.frm-other-input, .just-validate-error-field):focus {
    border-color: var(--text-color) !important;
}

/* Prevent Chrome autofill yellow background */
.frm-input:-webkit-autofill,
.frm-input:-webkit-autofill:hover,
.frm-input:-webkit-autofill:focus,
.frm-input:-webkit-autofill:active,
.frm-qty-input:-webkit-autofill,
.frm-qty-input:-webkit-autofill:hover,
.frm-qty-input:-webkit-autofill:focus,
.frm-qty-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    /* text-gray-900 */
    transition: background-color 5000s ease-in-out 0s !important;
}

/* select tag styling */

/* style select like input */
.frm-select {
    appearance: none;
    /* remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    /* match input background */
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23aaa' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2rem;
    /* space for arrow */
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid var(--input-border-2) !important;
}

/* keep focus effects same as input */
.frm-select:focus,
.frm-select:focus-visible {
    box-shadow: 0 0 3px 0 rgb(0 0 0 / 0.25);
    border: 1px solid var(--text-color) !important;
    outline: none !important;
}

/* optional: adjust for autofill if browser supports */
.frm-select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Options styling */
.frm-select option {
    padding: 10px;
    background-color: white;
    color: var(--text-color);
}

/* Options styling */
.frm-select option:focus,
.frm-select option:active,
.frm-select option:hover {
    background-color: var(--bs-green) !important;
    color: white !important;
}

/* input decorator at start */
.input-decorator {
    position: relative;
    display: flex;
    align-items: center;
}

/* Decorator with gradient background */
.decorator {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-size: 16px;
    color: #fff;
    background-color: var(--input-border);
    /* Tailwind green gradient */
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    pointer-events: none;
    width: 24px;
    /* fixed width for decorator */
}

/* Input padding to avoid overlap with decorator */
.input-decorator .frm-input {
    padding-left: 35px !important;
    /* adjust based on decorator width */
    border-radius: 6px;
    /* keep rounded corners */
}

.input-decorator .frm-input:disabled {
    background-color: var(--bs-green-light) !important;
}

/* text area */
/* Style textarea same as input */
.frm-textarea {
    width: 100%;
    min-height: 120px;
    /* adjust based on your design */
    padding: 0.5rem 1rem;
    border-radius: 3px;
    resize: vertical;
    /* allow vertical resize only */
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--input-border-2) !important;
    outline: none !important;
    color: var(--text-color) !important;
    box-shadow: 0 0 1px 0 rgb(0 0 0 / 0.15);
}

/* focus same as input */
.frm-textarea:focus {
    box-shadow: 0 0 3px 0 rgb(0 0 0 / 0.25);
    border-color: var(--text-color) !important;
    outline: none !important;
}

/* tab button */
.tab-btn {
    border-color: var(--bs-orange) !important;
}

.tab-btn.active {
    color: white !important;
}

.tab-btn:hover {
    background: linear-gradient(
            to right,
            var(--input-border),
            rgba(108, 117, 125, 0.75)
    ) !important;
    border-color: var(--input-border) !important;
    color: var(--text-color) !important;
}

.tab-btn:active,
.tab-btn:focus,
.tab-btn.active {
    background: linear-gradient(
            to right,
            var(--bs-green),
            rgba(25, 135, 84, 0.75)
    ) !important;
    border-color: var(--bs-green) !important;
}

/* custom button */
.cus-btn,
.swal2-confirm,
.swal2-deny,
.swal2-cancel,
.cus-btn-icon,
.cus-btn-icon-2,
.swal2-close,
.reset-icon-style {
    font-family: var(--main-font) !important;
    font-weight: 500 !important;
    text-shadow: 0px 1px 0px rgb(0 0 0 / 0.15) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.cus-btn-icon,
.cus-btn-icon-2,
.swal2-close,
.reset-icon-style {
    box-shadow: 0 0 1px 2px rgb(0 0 0 / 0.05);
    font-size: 1rem !important;
    border-radius: 50% !important;
    padding: 4px !important;
}

.cus-btn-icon,
.cus-btn-icon-2,
.reset-icon-style {
    justify-content: center !important;
    align-items: center !important;
}

.cus-btn-icon,
.cus-btn-icon-2 {
    display: flex !important;
}

.reset-icon-style {
    display: none;
    transition: all 0.3s ease-in-out;
}

.special-reset-btn,
.one-time-reset-btn {
    opacity: 0;
    cursor: pointer;
}

.cus-btn-icon,
.swal2-close {
    border: 1px solid var(--input-border-2) !important;
    color: var(--text-color) !important;
    width: 24px !important;
    height: 24px !important;
}

.cus-btn-img img,
.cus-btn-icon-2 {
    width: 36px !important;
    height: 36px !important;
}

.cus-btn-icon-2 {
    color: white !important;
    border: none !important;
    background-color: var(--bs-orange) !important;
    border-radius: 0 !important;
}

.swal2-close {
    margin: 10px !important;
}

.cus-btn,
.swal2-confirm {
    border-radius: 0 !important;
    padding: 7.5px 24px !important;
    border-color: transparent !important;
    font-size: 16px !important;
}

.cus-btn svg,
.swal2-confirm svg {
    width: 16px !important;
    height: 16px !important;
}

.reset-btn,
.cancel-btn,
.swal2-deny {
    color: var(--input-border) !important;
    background-color: transparent !important;
    border: 1.5px solid transparent !important;
    transition: border 0.2 ease-in-out;
}

.reset-icon-style,
.reset-icon-style:focus,
.reset-icon-style:hover,
.reset-icon-style:active {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.reset-btn:hover,
.cancel-btn:hover,
.reset-btn:active,
.cancel-btn:active,
.swal2-deny:hover,
.swal2-deny:active {
    color: var(--bs-orange) !important;
    background-color: transparent !important;
    border-color: var(--bs-orange) !important;
    box-shadow: 0 0 2px rgba(243, 102, 34, 0.1) !important;
}

.cus-btn-primary,
.cus-btn-secondary,
.swal2-confirm {
    color: white !important;
}

.cus-btn-primary,
.swal2-confirm {
    background-color: var(--bs-orange) !important;
    border: 1px solid var(--bs-orange) !important;
}

.cus-btn-secondary {
    background-color: var(--bs-green) !important;
    border: 1px solid var(--bs-green) !important;
}

.cus-btn-primary-outline,
.cus-btn-secondary-outline {
    background-color: white !important;
}

.cus-btn-primary-outline {
    border: 1px solid var(--bs-orange) !important;
    color: var(--bs-orange) !important;
}

.cus-btn-secondary-outline {
    border: 1px solid var(--bs-green) !important;
    color: var(--bs-green) !important;
}

/* custom button hover effect */
.cus-btn-icon:focus,
.cus-btn-icon:active,
.cus-btn-icon:hover,
.cus-btn-icon-2:focus,
.cus-btn-icon-2:active,
.cus-btn-icon-2:hover,
.swal2-close:hover,
.swal2-close:active,
.swal2-close:focus {
    box-shadow: 0 0 3px 0px rgb(0 0 0 / 0.05);
}

.cus-btn-icon:focus,
.cus-btn-icon:active,
.cus-btn-icon:hover,
.swal2-close:focus,
.swal2-close:active,
.swal2-close:hover {
    background-color: var(--input-border-2) !important;
}

.cus-btn-primary:hover,
.cus-btn-primary-outline:hover,
.cus-btn-primary:focus,
.cus-btn-primary-outline:focus,
.swal2-confirm:hover,
.swal2-confirm:focus {
    box-shadow: 0 0 0 2px rgba(243, 102, 34, 0.2) !important;
}

.cus-btn-secondary:hover,
.cus-btn-secondary-outline:hover,
.cus-btn-secondary:focus,
.cus-btn-secondary-outline:focus {
    box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.2) !important;
}

.cus-btn-primary:hover,
.cus-btn-primary:focus,
.swal2-confirm:hover,
.swal2-confirm:focus {
    background-color: var(--bs-orange) !important;
}

.cus-btn-secondary:hover,
.cus-btn-secondary:focus {
    background-color: var(--bs-green) !important;
}

.cus-btn-primary-outline:hover,
.cus-btn-secondary-outline:hover,
.cus-btn-primary-outline:focus,
.cus-btn-secondary-outline:focus {
    background-color: white !important;
}

.cus-btn-primary-outline:hover,
.cus-btn-primary-outline:focus {
    color: var(--bs-orange) !important;
}

.cus-btn-secondary-outline:hover,
.cus-btn-secondary-outline:focus {
    color: var(--bs-green) !important;
}

.cus-btn-text-green,
.swal2-cancel {
    border: none !important;
    font-size: 16px !important;
    padding: 0 !important;
    background-color: transparent !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}

.swal2-cancel {
    color: var(--bs-orange) !important;
}

.cus-btn-text-green {
    color: var(--green) !important;
}

.cus-btn-text-green span {
    display: inline-block;
    margin-left: 3px;
    font-size: 1rem;
    transition: transform 0.3s ease;
    font-weight: 600 !important;
}

.cus-btn-text-green:hover span {
    transform: translateX(5px);
}

/* Fitra quantity buttons */
.fitra-qty-btn {
      width: 28px !important;
      height: 28px !important;
      border-radius: 6px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-weight: 900 !important;
      font-size: 14px !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      background-color: white !important;
      padding: 0 !important;
}
.fitra-qty-btn-minus {
      border: 1px solid rgba(243, 102, 34, 0.3) !important;
      color: #f36622 !important;
}
.fitra-qty-btn-minus:hover {
      background-color: #f36622 !important;
      border-color: #f36622 !important;
      color: white !important;
}
.fitra-qty-btn-plus {
      border: 1px solid rgba(25, 135, 84, 0.3) !important;
      color: #198754 !important;
}
.fitra-qty-btn-plus:hover {
      background-color: #198754 !important;
      border-color: #198754 !important;
      color: white !important;
}
.fitra-qty-btn:active {
      transform: scale(0.9) !important;
}
/* zakat reset button */
.zakat-reset-btn {
  background-color: transparent !important;
  border: 1px solid #6b7280 !important; /* gray-500 */
  color: #4b5563 !important; /* gray-600 */
  padding: 6px 16px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 6px -1px rgba(75, 85, 99, 0.3) !important;
  outline: none !important;
}
.zakat-reset-btn:hover {
  background-color: #f3f4f6 !important; /* gray-100 */
  color: #000000 !important; /* black */
  border-color: #9ca3af !important;
}
.zakat-reset-btn:active {
  background-color: #e5e7eb !important; /* gray-200 */
  transform: scale(0.95);
}
.zakat-reset-btn i {
  transition: transform 0.3s ease !important;
}
.zakat-reset-btn:hover i {
  transform: rotate(180deg);
}



/* error field styling which is showing below on form validation */
.just-validate-error-label,
.custom-error {
    font-weight: 400 !important;
    font-size: 14px !important;
    color: rgb(239 68 68 / var(--tw-text-opacity, 1)) !important;
    font-family: var(--main-font) !important;
    line-height: 1 !important;
    display: block !important;
    /* ensures it starts on a new line */
    width: 100% !important;
    padding: 1px 1px !important;
}

/* Hide arrows in Chrome, Safari, Edge, Opera */
.frm-qty-input::-webkit-outer-spin-button,
.frm-qty-input::-webkit-inner-spin-button,
.frm-input[type="number"]::-webkit-outer-spin-button,
.frm-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide arrows in Firefox */
.frm-qty-input[type="number"],
.frm-input[type="number"] {
    -moz-appearance: textfield;
}

/* cause item styling */
.cause_item_shot_des {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color-2);
    font-size: 16px;
}

.cause-img,
.cause-img-2 {
    width: 100% !important;
    object-fit: cover !important;
}

.cause-img {
    height: 140px !important;
}

.cause-img-2 {
    height: 100% !important;
}

/* cause details page */
.our-overview-area .nav-tabs-02 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* Allow tabs to wrap on small screens */
}

.nav-tabs {
    border: 0;
    margin: 0 auto;
}

.our-overview-area .nav-tabs-02 .nav-link {
    font-size: 20px;
    width: 255px;
    background: #02b663;
    -webkit-transition: all 0.3s ease-out 0s;
    -moz-transition: all 0.3s ease-out 0s;
    -ms-transition: all 0.3s ease-out 0s;
    -o-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
}

.nav-tabs .nav-link {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-align: center;
    background-color: white;
    box-shadow: 0px 10px 30px 0px rgb(224 224 224 / 35%);
    border: 0;
    border-radius: 0;
    padding: 19px 0;
    border-bottom: 2px solid #02b663;
    width: auto;
    /* Removed fixed width */
    flex-grow: 1;
    /* Allow flexbox to handle width */
}

.our-overview-area .nav-tabs-02 .nav-link.active {
    background: #fed857;
}

.nav-tabs .nav-link.active {
    color: white;
    background: var(--green);
}

.our-overview-area .nav-tabs-02 .nav-link {
    font-size: 20px;
    width: fit-content;
    background: var(--green);
    -webkit-transition: all 0.3s ease-out 0s;
    -moz-transition: all 0.3s ease-out 0s;
    -ms-transition: all 0.3s ease-out 0s;
    -o-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
}

.our-overview-area .nav-tabs-02 {
    display: flex;
    justify-content: space-between;
}

.nav-tabs {
    border: 0;
    margin: 0 auto;
}

.nav.nav-tabs .nav-item .nav-link {
    color: white !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
}

.nav.nav-tabs .nav-item .nav-link {
    color: #000000 !important;
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

.our-overview-area .nav-tabs .nav-link.active {
    color: var(--green) !important;
    border-bottom: 4px solid var(--green) !important;
    cursor: pointer;
}

#tab-content {
    padding-top: 12px;
}

.tabcontent {
    display: none;
    /* padding: 20px; */
    border-top: 1px solid #ccc;
    opacity: 1 !important;
}

.pt-35 {
    padding-top: 35px;
}

/* credit card logo style */
.card-type-logo svg {
    height: 24px;
    width: auto;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

/* elementor buttons styling */
.top-btns a.elementor-button.btn-active {
    border-bottom: 3px solid var(--dark-green-color) !important;
    color: var(--dark-green-color) !important;
}

.top-btns a.elementor-button, .top-btns .elementor-element{
    min-width: max-content;
}

.top-btns a.elementor-button.btn-active::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    width: 18px;
    height: 14px;
    background: var(--dark-green-color);
    transform: translate(-50%, -50%);
}

/* error  input styling*/
.just-validate-error-field:focus {
    box-shadow: 0 0 3px 0 var(--error-shadow-colr) !important;
}

.just-validate-error-field {
    border-color: var(--error-colr) !important;
    box-shadow: 0 0 1px 0 var(--error-shadow-colr);
}


/* media queries */
@media only screen and (max-width: 1244px) {
    .nav-tabs {
        margin-bottom: 4px;
    }
}

@media only screen and (max-width: 1024px) {
    .our-overview-area .nav-tabs-02 .nav-link {
        font-size: 16px !important;
    }
}

@media only screen and (max-width: 767px) {
    .our-overview-area .nav-tabs-02 .nav-link {
        font-size: 14px !important;
        /* Smaller font for very small screens */
    }

    .our-overview-area .nav-tabs-02 {
        /* justify-content: space-around !important; */
        justify-content: center;
        /* Center the tabs on smaller screens */
        gap: 10px;
        /* Add some space between tabs */
    }

    .project-image-text-area.pb-60 {
        padding-bottom: 40px !important;
    }
}

@media only screen and (max-width: 640px) {
    label.qurbani-frm-label,
    .frm-row {
        margin-bottom: 0.5rem;
    }

    .frm-row {
        gap: 0.5rem;
    }

    .cause-img,
    .cause-img-2 {
        height: 168px !important;
    }

    .our-overview-area .nav-tabs-02 {
        justify-content: space-around !important;
    }

    .project-image-text-area.pb-60 {
        padding-bottom: 25px !important;
    }
}

@media only screen and (max-width: 560px) {
    /* .xs-flex-grow {
      flex-grow: 1;
    } */
    .xs-flex-col {
        flex-direction: column;
        justify-content: stretch;
        align-items: start;
    }

    .xs-flex-col .xs-flex-grow {
        width: 100%;
        justify-content: end;
    }
}

@media only screen and (max-width: 400px) {
    .frm-row {
        /* flex-direction: column;
        justify-content: center;
        align-items: start; */
        flex-wrap: nowrap !important;
    }

    #custom_amt {
        flex-wrap: wrap !important;
    }

    #enterCustomAmt {
        width: 100%;
    }

    .our-overview-area .nav-tabs-02 {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
    }

    .our-overview-area .nav-tabs-02 .nav-link {
        padding: 12px 0;
        /* Reduce padding on very small screens */
        font-size: 14px;
        /* Further reduce font size */
    }
}

@media only screen and (max-width: 392px) {
    .xs-w-full {
        width: 100% !important;
    }
}

@media only screen and (min-width: 1025px) {
    .our-overview-area .nav-tabs-02 {
        justify-content: space-evenly; /* Even spacing for larger screens */
    }
}

@media (max-width: 1023.98px) {
    .cause-md-2 > :nth-child(n + 3) {
        display: none !important;
    }
}

/* header images styling from old css */
.buttons-wrap {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.buttons-wrap a {
    text-decoration: none !important;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.buttons-wrap img {
    width: 20px;
    height: 18px;
}

.buttons-wrap {
    flex-wrap: wrap;
}

@media only screen and (max-width: 767px) {
    .buttons-wrap a {
        text-decoration: none !important;
        color: #fff;
        text-transform: uppercase;
        font-size: 12px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .buttons-wrap {
        margin: 15px 0;
        display: flex;
        justify-content: center;
        gap: 15px;
        align-items: center;
    }
}

.read-more {
    transition: 1s ease-in-out;
    padding: 8px 12px;
}

.read-more:hover {
    background: #f36622 !important;
    border: 1px solid #f36622 !important;
}

.custom-btn {
    border: 1px solid #fff !important;
    padding: 8px 12px;
}

.custom-btn {
    transition: 1s ease-in-out;
}

.custom-btn:hover {
    background-color: #f36622 !important;
    border-color: #f36622 !important;
}

.donate_now_svg_container {
    fill: #fff !important;
    width: 1rem;
    height: auto;
}

/* donation show case styling */
.hidehover > .e-con:hover .hitem,
.dshow:hover > .hitem {
    opacity: 1 !important;
    z-index: 9999 !important;
    background-color: white !important;
}

/* preloader styling */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent white background */
    z-index: 9999;
    /* Make sure it’s on top of other elements */
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader img {
    width: 80%;
    /* Size of the preloader image */
    height: 80%;
    animation: spin 2s linear infinite;
    /* Add a spinning animation */
}

/* hide preloader in editor */
/* 🚫 Hide preloader inside Elementor editor */
body.elementor-editor-active #preloader {
    display: none !important;
}

/* Also hide in preview iframe (extra safety) */
html.elementor-html #preloader {
    display: none !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* preloader animation */
.lds-ellipsis,
.lds-ellipsis div {
    box-sizing: border-box;
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ellipsis div {
    position: absolute;
    top: 33.33333px;
    width: 13.33333px;
    height: 13.33333px;
    border-radius: 50%;
    background: rgb(242, 95, 24);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}
