:root {
            --brand-blue: #0f3453; /* Matches your project badge and buttons */
            --text-gray: #6c757d;
        }

        @font-face {
            font-family: 'SFProAR';
            src: url('../fonts/SFProAR_regular.ttf') format('truetype'),
                url('../fonts/SFProAR_semibold.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        @font-face {
            font-family: 'uthmanic_hafs_v22';
            src: url('../fonts/uthmanic_hafs_v22.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        .uthmanic_hafs {
            font-family: 'uthmanic_hafs_v22';
            font-weight: bold;
        }

        body {
           /* font-family: "IBM Plex Sans Arabic", sans-serif; */
           font-family: "SFProAR", sans-serif;
        }

        .top-header {
            background-color: #ffffff;
            font-size: 16PX;
            font-weight: 400 !important;
        }

        .navbar-brand img {
            height: 45px;
        }

        .header-utility-icons i {
            font-size: 1.2rem;
            cursor: pointer;
            color: #004a7c;
        }

        .cart-wrapper {
            position: relative;
            display: inline-block;
        }

        .cart-badge-custom {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: #004a7c;
            color: white;
            font-size: 10px;
            border-radius: 50%;
            padding: 2px 6px;
        }

        .navbar-brand img {
            height: 55px;
            width: auto;
        }

        @media (max-width: 991px) {
            .navbar-collapse {
                background: #fff;
                padding: 1rem;
            }
        }

        .hero-section {
            border-radius: 15px;
            color: white;
        }

        .hero-title {
            font-size: 4rem;
            font-weight: bold;
        }

        .custom-footer {
            background-color: #F8F7F8;
            border-radius: 20px;
            padding: 40px;
            margin: 40px 0px;
            text-align: right;
        }
        .footer-title {
            color: var(--primary-blue);
            font-weight: bold;
            margin-bottom: 20px;
            font-size: 14px;
            text-align: right;
        }
        .payment-methods img {
            height: 30px;
            margin: 5px;
            filter: grayscale(0.5);
            transition: 0.3s;
        }
        .payment-methods img:hover { filter: grayscale(0); }
        .social-icons a {
            font-size: 1.5rem;
            color: #666;
            margin: 0 10px;
        }
        .copy-right {
            font-size: 0.9rem;
            padding-bottom: 20px;
        }

        .single-title {
            font-size: 28px;
            line-height: 42px;
            color: var(--brand-blue);
            margin-bottom: 20px;
        }

        @media (max-width: 768px) {
            .single-title {
                font-size: 1rem;
            }
        }

        .breadcrumb {
                padding: 0;
                margin: 0;
                list-style: none;
            }

            .breadcrumb-item + .breadcrumb-item::before {
                float: right; /* Ensures separator works in RTL */
                padding-left: 0.5rem;
                padding-right: 0.5rem;
                color: #6c757d;
                content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='currentColor'/%3E%3C/svg%3E");
                transform: rotate(180deg);
            }

            .breadcrumb-item a {
                color: #0f3453;
                text-decoration: none;
                font-weight: 500;
                transition: color 0.2s;
            }

            .breadcrumb-item a:hover {
                color: #004a7c;
                text-decoration: underline;
            }

            .breadcrumb-item.active {
                color: #6c757d;
                font-weight: 400;
            }

            .brand-blue-text {
                color: #0f3453;
            }

            .brand-bg { background-color: #0f3453; }
            .brand-text { color: #0f3453; }

            .project-card {
                border: none;
                border-radius: 25px;
                box-shadow: 0 10px 30px rgba(0,0,0,0.05);
                overflow: hidden;
                transition: transform 0.3s ease;
            }

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

            .unit-control {
                border: 1px solid #dee2e6;
                border-radius: 8px;
                display: flex;
                align-items: center;
            }

            .unit-control button {
                border: none;
                background: #f8f9fa;
                padding: 5px 12px;
                font-weight: bold;
            }

            .unit-control input {
                width: 40px;
                text-align: center;
                border: none;
                border-left: 1px solid #dee2e6;
                border-right: 1px solid #dee2e6;
                outline: none;
            }

            .donate-btn {
                background-color: #0f3453;
                color: white;
                border-radius: 12px;
                padding: 10px 0;
                font-weight: 400;
                flex-grow: 1;
                font-size: 14px;
            }


            .amount-box {
                background-color: #f8f9fa;
                border: 1px solid #eee;
                border-radius: 8px;
                padding: 8px 15px;
                font-weight: bold;
            }

            .hero-wrapper {
                position: relative;
            }

            .hero-arrow-btn {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                width: 40px;
                height: 40px;
                background-color: #ffffff;
                border: none;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #0f3453;
                font-size: 1rem;
                cursor: pointer;
                transition: all 0.3s ease;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
                z-index: 10;
            }

            .hero-arrow-btn i {
                -webkit-text-stroke: 1px #0f3453;
            }

            .right-arrow {
                right: 35px;
            }

            .left-arrow {
                left: 35px;
            }

            .hero-arrow-btn:hover {
                background-color: #f8f9fa;
                transform: translateY(-50%) scale(1.1);
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
                color: #004a7c;
            }

            @media (max-width: 768px) {
                .hero-arrow-btn {
                    width: 40px;
                    height: 40px;
                    font-size: 1.2rem;
                }
                .right-arrow { right: 15px; }
                .left-arrow { left: 15px; }
            }

            .quick-links-title {
                color: var(--brand-blue);
                font-weight: 700;
                font-size: 2rem;
                position: relative;
                display: inline-block;
                padding-bottom: 10px;
            }

            .flaticon-wrapper {
                width: 75px;
                height: 75px;
                margin: 0 auto;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: transform 0.3s ease;
            }

            .custom-icon {
                width: 100%;
                height: auto;
                filter: invert(62%) sepia(89%) saturate(2955%) hue-rotate(181deg) brightness(58%) contrast(94%);
                margin-bottom: 24px;

            }

            .custom-icon-without-filter {
                width: 100%;
                height: auto;
                margin-bottom: 24px;

            }

            .item-title {
                color: var(--brand-blue);
                font-weight: 600;
                margin-top: 15px;
                font-size: 1.25rem;
            }

            .item-subtitle {
                color: var(--text-gray);
                font-size: 0.95rem;
                font-weight: 400;
            }

            .quick-link-item:hover .flaticon-wrapper {
                transform: translateY(-10px);
                cursor: pointer;
            }

            .quick-link-item:hover .item-title {
                color: #004a7c;
            }

            @media (max-width: 576px) {
                .flaticon-wrapper {
                    width: 60px;
                    height: 60px;
                }
                .item-title {
                    font-size: 1.1rem;
                }
            }



            .progress-card {
                border-radius: 20px !important;
                overflow: hidden;
            }

            .brand-text {
                color: var(--brand-blue);
            }

            .btn-outline-brand {
                border-color: var(--brand-blue);
                color: var(--brand-blue);
            }

            .btn-outline-brand.active {
                background-color: transparent;
                border-width: 2px;
                font-weight: bold;
            }

            .donate-btn-dark {
                background-color: var(--brand-blue);
                color: white;
                border-radius: 10px;
                font-weight: 600;
            }

            .donate-btn-dark:hover {
                background-color: #0a253b;
                color: white;
            }

            .icon-btn-outline {
                color: var(--brand-blue);
                cursor: pointer;
            }

            .icon-btn-simple {
                color: #6c757d;
                cursor: pointer;
            }

            .icon-btn-simple:hover {
                color: var(--brand-blue);
            }

            .input-group-text {
                color: var(--brand-blue);
                font-weight: bold;
            }

            .custom-pagination {
                direction: ltr;
                padding-right: 0;
                list-style: none;
            }

            .custom-pagination .page-item {
                margin: 0 4px;
            }

            .custom-pagination .page-link {
                border: none;
                background-color: #f8f9fa;
                color: #0f3453;
                padding: 10px 18px;
                font-weight: 500;
                transition: all 0.2s ease;
                border-radius: 4px !important;
                display: block;
                text-decoration: none;
            }

            .custom-pagination .page-item.active .page-link {
                background-color: #0f3453 !important;
                color: #ffffff !important;
            }

            .custom-pagination .page-link:hover {
                background-color: #e9ecef;
                color: #0f3453;
            }

            .custom-pagination .page-item.disabled .page-link {
                background-color: #f8f9fa;
                color: #adb5bd;
                cursor: not-allowed;
            }


        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }

            .custom-footer {
                padding: 20px;
                margin: 20px 10px;
                text-align: center;
            }

            .footer-title {
                text-align: center;
            }

            .custom-footer .row > div {
                margin-bottom: 30px;
            }

            .project-card {
                margin-bottom: 20px;
            }

            .donate-btn, .donate-btn-dark {
                padding: 12px 0;
                font-size: 16px;
            }

            .uthmanic_hafs {
                font-size: 18px !important;
                line-height: 1.8;
            }
        }

        @media (max-width: 576px) {
            .navbar-brand img {
                height: 40px;
            }

            .hero-wrapper img {
                border-radius: 10px;
            }

            .quick-links-title {
                font-size: 1.5rem;
            }
        }


        @media (max-width: 991px) {
            .navbar-nav .nav-link {
                padding: 12px 15px;
                border-bottom: 1px solid #eee;
            }
            .navbar-nav .nav-item:last-child .nav-link {
                border-bottom: none;
            }
        }

        @media (max-width: 768px) {
            .unit-control button {
                padding: 10px 15px;
            }

            .icon-btn {
                padding: 8px;
            }
        }

        @media (max-width: 768px) {
            .hero-wrapper img {
                height: 230px !important;
                width: 100%;
            }
        }

        .navbar-toggler-icon {
            width: 1.2em;
            height: 1.2em;
        }


          .fast-donation-panel {
    cursor: pointer;
    position: fixed;
    top: 185px;
    right: 0;
    z-index: 9989;
  }

  .panel-title {
    background-color: #fff;
    box-shadow: 0 2px 6px 0 rgb(0 0 0 / 29%);
    color: #000;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 15px;
    text-align: start;
    transition: all .3s ease;
    width: 124px;
}

  .panel-toggler {
    background: #0f3453;
    border-end-end-radius: 50%;
    border-end-start-radius: 0;
    border-start-end-radius: 50%;
    border-start-start-radius: 0;
    box-shadow: 0 2px 6px 0 rgb(0 0 0 / 29%);
    padding: 0;
    text-align: center;
    width: 40px;
  }

  .fast-donation-panel.open .panel-content {
    display: block;
  }

  .fast-donation-panel.open .panel-title {
    width: 270px;
    text-align: center;
  }

  .fast-donation-panel.open .panel-toggler {
    border-end-end-radius: 0;
  }

  .fast-donation-panel.open .panel-toggler img {
    transform: rotate(45deg);
  }

  .panel-content {
    background-color: #fff;
    border-end-end-radius: 10px;
    border-end-start-radius: 10px;
    box-shadow: 0 5px 6px 0 rgb(0 0 0 / 15%);
    display: none;
    inset-block-start: 36px;
    inset-inline-start: 0;
    position: absolute;
    transition: all .2s ease-in-out .3s;
    width: 310px;
  }

  button.navbar-toggler {
    border: none;
  }

  .navbar-toggler:focus {
    box-shadow: none !important;
  }

  /* My Account Page */
  .my-account-page {
    margin-top: 40px;
    margin-bottom: 60px;
  }

  .my-account-header {
    margin-bottom: 16px;
  }

  .my-account-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 50px;
    width: fit-content;
  }

  .my-account-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .my-account-nav-item:hover {
    color: var(--brand-blue);
    background: #fff;
  }

  .my-account-nav-item.active {
    background: #fff;
    color: var(--brand-blue);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }

  .my-account-nav-item.text-danger:hover {
    background: #fff5f5;
    color: #dc3545;
  }

  .my-account-avatar {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    border-radius: 50%;
  }

  .my-account-avatar i {
    font-size: 48px;
    color: #adb5bd;
  }

  .my-account-info p {
    font-size: 14px;
  }

  @media (max-width: 768px) {
    .my-account-nav {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .my-account-nav::-webkit-scrollbar {
      display: none;
    }
  }

  /* ===== Mobile Project Page — Compact Hero ===== */
  .mobile-project-page {
      background-color: #F8F7F8;
      min-height: 100vh;
  }

  .mobile-title {
      font-size: 1.35rem !important;
      line-height: 1.6;
      color: var(--brand-blue);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 4px !important;
  }

  .mobile-progress-compact {
      background: #fff;
      border-radius: 12px;
      padding: 10px 14px;
  }

  .mobile-progress-label {
      font-size: 0.9rem;
  }

  .mobile-progress-animated {
      transition: width 0.7s ease-in-out;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50px;
  }

  .mobile-progress-percent {
      font-size: 0.8rem;
      font-weight: 700;
      color: #fff;
      white-space: nowrap;
      direction: ltr;
      unicode-bidi: bidi-override;
  }

  .mobile-package-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      justify-content: center;
  }

  .mobile-package-grid .btn {
      padding: 8px 14px;
      font-size: 0.8rem;
      border-radius: 8px;
      font-weight: 600;
      flex: 0 1 auto;
  }

  .mobile-price-box {
      background: #fff;
      border: 1px solid #dee2e6;
      border-radius: 10px;
      padding: 8px 16px;
  }

  .mobile-sar-icon {
      width: 14px;
      height: 14px;
      opacity: 0.7;
  }

  .mobile-price-input {
      border: none;
      background: transparent;
      font-size: 1.15rem;
      font-weight: bold;
      color: #0f3453;
      text-align: center;
      width: 90px;
      outline: none;
      -moz-appearance: textfield;
  }

  .mobile-price-input::-webkit-outer-spin-button,
  .mobile-price-input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
  }

  .mobile-amount-section {
      display: none;
  }

  .mobile-amount-section.visible {
      display: block;
  }

  /* Mobile Payment Radio Cards */
  .mobile-payment-options {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-bottom: 8px;
  }

  .mobile-payment-card {
      padding: 10px 12px;
      border: 1.5px solid #eee;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s ease;
      background: #fff;
  }

  .mobile-payment-card.selected {
      border-color: #0f3453;
      border-width: 2px;
  }

  .mobile-custom-radio {
      width: 18px;
      height: 18px;
      border-color: #0f3453;
      cursor: pointer;
  }

  .mobile-custom-radio:checked {
      background-color: #0f3453;
      border-color: #0f3453;
  }

  /* ===== Desktop Payment Radio Cards ===== */
  .desktop-payment-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 12px;
  }

  .desktop-payment-card {
      padding: 12px 16px;
      border: 1.5px solid #eee;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
      background: #fff;
  }

  .desktop-payment-card.selected {
      border-color: #0f3453;
      border-width: 2px;
  }

  .desktop-custom-radio {
      width: 20px;
      height: 20px;
      border-color: #0f3453;
      cursor: pointer;
  }

  .desktop-custom-radio:checked {
      background-color: #0f3453;
      border-color: #0f3453;
  }

  .desktop-price-box {
      background: #fff;
      border: 1px solid #dee2e6;
      border-radius: 12px;
      padding: 10px 20px;
  }

  .desktop-price-input {
      border: none;
      background: transparent;
      font-size: 1.3rem;
      font-weight: bold;
      color: #0f3453;
      text-align: center;
      width: 100px;
      outline: none;
      -moz-appearance: textfield;
  }

  .desktop-price-input::-webkit-outer-spin-button,
  .desktop-price-input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
  }

  .desktop-sar-icon {
      width: 16px;
      height: 16px;
      opacity: 0.7;
  }

  .desktop-progress-animated {
      transition: width 0.7s ease-in-out;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50px;
  }

  @media (max-width: 767.98px) {
      .apple-pay-container hr {
          display: none;
      }
  }
