.hero-image {
    width: 100%;
    aspect-ratio: 3/1;
    object-fit: cover;
    border-radius: 0;
}

.hero-play-btn {
    padding: 0;
    width: 64px;
    height: 64px;
}

.hero-play-btn i {
    color: var(--bs-gray-300);
}

.hero-play-btn i,
.fa-solid.fa-circle-play {
    font-size: 64px;
    width: 64px;
}

@media (max-width: 530px) {
    .hero-play-btn {
        width: 48px;
        height: 48px;
    }

    .hero-play-btn i,
    .fa-solid.fa-circle-play {
        font-size: 48px;
        width: 48px;
    }
}

#heroVideoModal .modal-content {
    background-color: transparent;
    border: 0;
}

#heroVideoModal .modal-header .btn-close {
    background-image: none;
    color: white;
    opacity: 1;
    font-size: 25px;
}

.max-width-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

img {
    width: 100%;
    height: auto;
}

.project-details-frame {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    background: white;
}

.sticky-wrapper {
    position: sticky;
    top: 24px;
}

.tax-returns-badge {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #4ade80;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    margin: 0 auto;
}

.tax-returns-badge i {
    color: #166534;
}

.badge-wrapper {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-image {
        aspect-ratio: 16/9;
    }
}

/* Full width sections with padding */
.section-wrapper {
    padding-left: 24px;
    padding-right: 24px;
}

.section-content {
    width: 100%;
}

/* ---------- mini-components ---------- */
.time-left-badge {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;

    background-color: var(--color-blue-50);
    color: var(--color-blue-700);
    border: 1px solid var(--color-blue-300);
}

.time-left-badge.deadline-near {
    background-color: var(--color-amber-50);
    color: var(--color-amber-700);
    border: 1px solid var(--color-amber-300);
}
.time-left-badge.deadline-urgent {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis);
    border: 1px solid var(--bs-danger-border-subtle);
}

.time-left-badge.deadline-passed {
    background-color: var(--color-slate-50);
    color: var(--color-slate-700);
    border: 1px solid var(--color-slate-300);
}

/* ---------- progress bar  ---------- */

.progress {
    height: 16px;
    border-radius: 8px;
}

.progress-bar {
    border-radius: 8px;
}

/* Add these styles to your existing styles */
.progress-container {
    padding: 32px 0; /* Space for the indicator */
}

.progress {
    overflow: visible; /* Allow indicator to show outside progress bar */
}

.progress-indicator {
    position: absolute;
    top: 8px;
    transform: translateX(-50%);
    /* opacity: 0.5; */
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--box-shadow-md);
}

[dir="rtl"] .progress-indicator {
    transform: translateX(50%);
}

.progress-indicator-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.donate-btn {
    background: linear-gradient(to right, #f97316, #ea580c);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.donate-btn:hover {
    background: linear-gradient(to right, #ea580c, #c2410c);
    color: white;
    transform: translateY(-1px);
}

.donate-btn:active {
    transform: translateY(0);
}

.share-btn {
    background-color: #f5f5f4;
    border: none;
    color: #0f172a;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: #e7e5e4;
    transform: translateY(-1px);
}

.share-btn:active {
    transform: translateY(0);
}

.details-section {
    border: 1px solid #e2e8f0; /* slate-200 */
}

.nav-tabs {
    position: relative;
}

.nav-tabs::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e2e8f0; /* slate-200 */
}

.nav-tabs .nav-link {
    border: none;
    padding: 0 0 16px 0;
    position: relative;
    background: none;
    color: #64748b; /* slate-500 */
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s ease;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link:hover {
    color: #0f172a; /* slate-900 */
}

.nav-tabs .nav-link.active {
    color: #0f172a; /* slate-900 */
    border-bottom: 2px solid #0f172a;
}

.tab-content {
    background-color: #ffffff;
}

.tab-pane {
    min-height: 300px;
}

.tab-pane.fade {
    transition: opacity 0.2s ease-in-out;
}

.content-wrapper {
    max-width: 900px;
}

.tab-pane.fade.show {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Update the mobile tabs styles */
@media (max-width: 992px) {
    .tabs-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        cursor: grab;
    }

    /* Hide scrollbar for Chrome, Safari and Opera */
    .tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    .nav-tabs {
        flex-wrap: nowrap;
        min-width: max-content;
        padding-bottom: 4px; /* Add some padding to avoid border being cut off */
    }
}

/* ---------- about merit  ---------- */


.about-merit {
    background-color: var(--color-blue-50);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.about-merit::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--color-blue-100);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    opacity: 0.5;
}

.about-merit::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: var(--color-blue-100);
    border-radius: 50%;
    bottom: -100px;
    left: -50px;
    opacity: 0.5;
}

.about-merit .merit-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
}

.about-merit .merit-logo {
    width: 180px;
    height: auto;
    margin-bottom: 1.5rem;
}

.about-merit .merit-title {
    font-family: var(--font-display);
    color: var(--color-slate-900);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-merit .merit-description {
    font-family: var(--font-body);
    color: var(--color-slate-700);
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.about-merit .benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.5rem 0;
    padding: 0;
    list-style: none;
}

.about-merit .benefit-item {
    font-family: var(--font-body);
    color: var(--color-slate-700);
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: 100px;
    font-weight: 500;
}

.about-merit .learn-more {
    font-family: var(--font-body);
    color: var(--color-blue-600);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.about-merit .learn-more:hover {
    color: var(--color-blue-700);
}

.about-merit .learn-more i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.about-merit .learn-more:hover i {
    transform: translateX(2px);
}

.about-card-header {
    background: linear-gradient(90deg, var(--color-blue-50) 0%, var(--color-blue-200) 100%);
}

/* ---------- donation cards  ---------- */


.donation-card {
    background-color: var(--color-stone-50);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.donation-amount-container {
    width: 125px;
    flex-shrink: 0;
}

.donation-amount {
    font-family: var(--font-display);
    color: var(--color-blue-600);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    padding-top: 0.125rem;
}

.donation-content {
    flex: 1;
}

.donor-name {
    font-family: var(--font-body);
    color: var(--color-slate-900);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.donation-time {
    font-family: var(--font-body);
    color: var(--color-slate-500);
    font-size: 0.8125rem;
}

.donation-message {
    font-family: var(--font-body);
    color: var(--color-slate-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.load-more-btn {
    background-color: var(--color-stone-100);
    color: var(--color-slate-700);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background-color: var(--color-stone-200);
}

.hidden-donations {
    display: none;
}

/* ---------- updates  ---------- */

.updates-list {
    position: relative;
}

.updates-list .update-item {
    display: block;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-slate-200);
}

.updates-list .update-item:last-child {
    border-bottom: none;
}

.updates-list .update-content {
    flex: 1;
}

.updates-list .update-date {
    font-family: var(--font-body);
    color: var(--color-slate-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.updates-list .update-text {
    font-family: var(--font-body);
    color: var(--color-slate-700);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.updates-list .project-name {
    font-family: var(--font-body);
    color: var(--color-slate-900);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.updates-list .project-name img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-slate-200);
    padding: 2px;
}

/* ---------- ambassadors  ---------- */

.ambassadors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ambassadors-header .ambassadors-title {
    font-family: var(--font-display);
    color: var(--color-slate-900);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.ambassadors-header .sort-select {
    font-family: var(--font-body);
    color: var(--color-slate-700);
    background-color: var(--color-stone-50);
    border: 1px solid var(--color-slate-200);
    border-radius: 0.5rem;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.875rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

.ambassadors-list .ambassador-card {
    display: block;
    text-decoration: none;
    background-color: var(--color-stone-50);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.ambassadors-list  .ambassador-card:hover {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: translateY(-1px);
}

.ambassadors-list  .card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.ambassadors-list  .amount-raised {
    font-family: var(--font-display);
    color: var(--color-green-600);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
}

.ambassadors-list  .goal-amount {
    font-family: var(--font-body);
    color: var(--color-slate-600);
    font-size: 0.875rem;
    text-align: right;
}

.ambassadors-list  .progress {
    height: 0.5rem;
    background-color: var(--color-slate-200);
    border-radius: 1rem;
    margin: 0.5rem 0;
    overflow: hidden;
}

.ambassadors-list  .progress-bar {
    background-color: var(--color-green-600);
    border-radius: 1rem;
}

.ambassadors-list  .card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.ambassadors-list .ambassador-name {
    font-family: var(--font-body);
    color: var(--color-slate-900);
    font-weight: 500;
    font-size: 0.9375rem;
}

.ambassadors-list .donors-count {
    font-family: var(--font-body);
    color: var(--color-slate-600);
    font-size: 0.8125rem;
}


/* ---------- parent campaign box  ---------- */


.parent-campaign-frame {
    background-color: var(--color-slate-50);
    padding: 24px;
    margin-top: 1rem;
    border-radius: 0.75rem;
}

.parent-campaign-frame .parent-campaign-title {
    font-size: 1.25rem;
    color: var(--color-blue-900);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: var(--font-display);
}

.parent-campaign-frame .campaign-goal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.parent-campaign-frame .campaign-goal .amount {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-green-600);
}

.parent-campaign-frame .campaign-goal .label {
    color: var(--color-slate-900);
    font-size: 0.875rem;
    align-self: center;
}

.parent-campaign-frame .campaign-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    align-items: center;
}

.parent-campaign-frame .campaign-stats .ambassadors {
    color: var(--color-slate-900);
    font-size: 0.875rem;
}

.parent-campaign-frame .campaign-stats .main-link {
    color: var(--color-blue-600);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.parent-campaign-frame .campaign-stats .main-link:hover {
    text-decoration: underline;
}

/*Quill editor list hotfix*/
li[data-list="bullet"] {
    list-style-type: initial;
}
