/**
 * Styles for the Nonprofit Donation Core Elementor widgets.
 */

.ndp-w {
	--ndp-color-primary: var(--e-global-color-primary, #2bae66);
	--ndp-color-secondary: var(--e-global-color-secondary, #1f2a44);
	--ndp-color-accent: #ff7a59;
	--ndp-color-border: #e7e9ee;
	--ndp-radius: 10px;
}

/* Shared button (mirrors theme .ndp-btn so widgets look right even without the theme) */
.ndp-w .ndp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: 13px 28px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	border: 2px solid transparent;
	border-radius: 50px;
	cursor: pointer;
	transition: transform .15s ease, background .2s ease, color .2s ease;
}
.ndp-w .ndp-btn:hover { transform: translateY(-2px); }
.ndp-w .ndp-btn--accent { background: var(--ndp-color-accent); color: #fff; }
.ndp-w .ndp-btn--accent:hover { background: var(--ndp-color-secondary); color: #fff; }
.ndp-w .ndp-btn--outline { background: transparent; border-color: var(--ndp-color-primary); color: var(--ndp-color-primary); }
.ndp-w .ndp-btn--outline.ndp-btn--light { border-color: #fff; color: #fff; }
.ndp-w .ndp-btn--outline:hover { background: var(--ndp-color-primary); color: #fff; border-color: var(--ndp-color-primary); }

.ndp-w-empty { padding: 16px; background: #fff5f0; border: 1px dashed var(--ndp-color-accent); border-radius: var(--ndp-radius); color: #b5532f; }

/* Shared heading */
.ndp-w-heading { margin-bottom: 40px; }
.ndp-w-heading__eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ndp-color-accent); margin-bottom: 10px; }
.ndp-w-heading__title { font-size: clamp(26px, 3vw, 38px); margin: 0 0 12px; color: var(--ndp-color-secondary); }
.ndp-w-heading__text { max-width: 680px; margin: 0 auto; color: #6c7283; }

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */
.ndp-hero { position: relative; display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; overflow: hidden; border-radius: var(--ndp-radius); }
.ndp-hero::before { content: ""; position: absolute; inset: 0; background: rgba(31,42,68,.7); }
.ndp-hero__inner { position: relative; z-index: 1; max-width: 640px; padding: 60px; }
.ndp-hero--center { justify-content: center; text-align: center; }
.ndp-hero--center .ndp-hero__inner { margin-inline: auto; }
.ndp-hero__eyebrow { display: inline-block; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffd2c4; margin-bottom: 14px; }
.ndp-hero__title { font-size: clamp(32px, 5vw, 56px); color: #fff; margin: 0 0 18px; line-height: 1.1; }
.ndp-hero__text { font-size: 18px; opacity: .9; margin: 0 0 28px; }
.ndp-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.ndp-hero--center .ndp-hero__actions { justify-content: center; }

/* -------------------------------------------------------------------------- */
/* Impact counter                                                             */
/* -------------------------------------------------------------------------- */
.ndp-counter { display: grid; gap: 30px; text-align: center; }
.ndp-counter--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ndp-counter--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ndp-counter--cols-4 { grid-template-columns: repeat(4, 1fr); }
.ndp-counter__icon { font-size: 38px; color: var(--ndp-color-primary); display: inline-block; margin-bottom: 8px; }
.ndp-counter__num { font-family: inherit; font-size: clamp(32px, 4vw, 46px); font-weight: 800; color: var(--ndp-color-secondary); line-height: 1; }
.ndp-counter__label { margin-top: 8px; color: #6c7283; font-weight: 500; }

/* -------------------------------------------------------------------------- */
/* Icon boxes                                                                 */
/* -------------------------------------------------------------------------- */
.ndp-iconbox { display: grid; gap: 28px; }
.ndp-iconbox--cols-1 { grid-template-columns: 1fr; }
.ndp-iconbox--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ndp-iconbox--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ndp-iconbox--cols-4 { grid-template-columns: repeat(4, 1fr); }
.ndp-iconbox__item { display: block; text-align: center; color: inherit; }
.ndp-iconbox--card .ndp-iconbox__item { background: #fff; padding: 36px 28px; border-radius: var(--ndp-radius); border: 1px solid var(--ndp-color-border); transition: transform .2s ease, box-shadow .2s ease; }
.ndp-iconbox--card .ndp-iconbox__item:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(31,42,68,.1); }
.ndp-iconbox__icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 18px; font-size: 30px; color: var(--ndp-color-primary); background: rgba(43,174,102,.1); border-radius: 50%; }
.ndp-iconbox__title { font-size: 20px; margin: 0 0 10px; color: var(--ndp-color-secondary); }
.ndp-iconbox__text { margin: 0; color: #6c7283; }

/* -------------------------------------------------------------------------- */
/* Team                                                                       */
/* -------------------------------------------------------------------------- */
.ndp-team { display: grid; gap: 28px; }
.ndp-team--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ndp-team--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ndp-team--cols-4 { grid-template-columns: repeat(4, 1fr); }
.ndp-team__item { background: #fff; border-radius: var(--ndp-radius); overflow: hidden; border: 1px solid var(--ndp-color-border); transition: transform .2s ease, box-shadow .2s ease; }
.ndp-team__item:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(31,42,68,.1); }
.ndp-team__photo { aspect-ratio: 1 / 1; background: var(--ndp-color-border); }
.ndp-team__photo img { width: 100%; height: 100%; object-fit: cover; }
.ndp-team__body { padding: 20px; text-align: center; }
.ndp-team__name { font-size: 19px; margin: 0 0 4px; color: var(--ndp-color-secondary); }
.ndp-team__role { color: var(--ndp-color-primary); font-weight: 600; font-size: 14px; }
.ndp-team__social { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.ndp-team__social a { color: var(--ndp-color-secondary); font-size: 15px; transition: color .2s ease, transform .2s ease; }
.ndp-team__social a:hover { color: var(--ndp-color-primary); transform: translateY(-2px); }

/* -------------------------------------------------------------------------- */
/* Testimonials                                                               */
/* -------------------------------------------------------------------------- */
.ndp-testimonials { display: grid; gap: 28px; }
.ndp-testimonials--cols-1 { grid-template-columns: 1fr; }
.ndp-testimonials--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ndp-testimonials--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ndp-testimonial { margin: 0; background: #fff; border: 1px solid var(--ndp-color-border); border-radius: var(--ndp-radius); padding: 32px; position: relative; }
.ndp-testimonial::before { content: "\201C"; position: absolute; top: 8px; right: 24px; font-size: 80px; line-height: 1; color: rgba(43,174,102,.15); font-family: Georgia, serif; }
.ndp-testimonial__quote { margin: 0 0 20px; font-size: 17px; color: #3a3f4c; font-style: italic; }
.ndp-testimonial__author { display: flex; align-items: center; gap: 14px; }
.ndp-testimonial__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.ndp-testimonial__meta { display: flex; flex-direction: column; }
.ndp-testimonial__name { font-weight: 700; color: var(--ndp-color-secondary); }
.ndp-testimonial__role { font-size: 13px; color: #8a909c; }

/* -------------------------------------------------------------------------- */
/* Campaigns                                                                  */
/* -------------------------------------------------------------------------- */
.ndp-campaigns { display: grid; gap: 30px; }
.ndp-campaigns--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ndp-campaigns--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ndp-campaigns--cols-4 { grid-template-columns: repeat(4, 1fr); }
.ndp-campaign { background: #fff; border: 1px solid var(--ndp-color-border); border-radius: var(--ndp-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.ndp-campaign:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(31,42,68,.1); }
.ndp-campaign__media { aspect-ratio: 16 / 10; background: var(--ndp-color-border); }
.ndp-campaign__media img { width: 100%; height: 100%; object-fit: cover; }
.ndp-campaign__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ndp-campaign__title { font-size: 20px; margin: 0; color: var(--ndp-color-secondary); }
.ndp-campaign__text { margin: 0; color: #6c7283; font-size: 15px; }
.ndp-campaign__progress { height: 10px; background: #eef0f4; border-radius: 50px; overflow: hidden; }
.ndp-campaign__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ndp-color-primary), #54c98a); border-radius: 50px; transition: width 1.2s ease; }
.ndp-campaign__stats { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #6c7283; }
.ndp-campaign__raised strong { color: var(--ndp-color-secondary); font-size: 18px; }
.ndp-campaign__goal { font-weight: 700; color: var(--ndp-color-primary); }
.ndp-campaign__btn { margin-top: auto; align-self: flex-start; }

/* -------------------------------------------------------------------------- */
/* Donate CTA                                                                 */
/* -------------------------------------------------------------------------- */
.ndp-donate-cta { background: linear-gradient(120deg, var(--ndp-color-secondary), #2a3a60); color: #fff; padding: 48px; border-radius: var(--ndp-radius); text-align: center; }
.ndp-donate-cta__title { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; }
.ndp-donate-cta__text { opacity: .85; max-width: 560px; margin: 0 auto 24px; }
.ndp-donate-cta__amounts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 24px; }
.ndp-donate-cta__chip { display: inline-flex; min-width: 84px; padding: 12px 20px; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.25); border-radius: 50px; transition: all .2s ease; }
.ndp-donate-cta__chip:hover { background: var(--ndp-color-accent); border-color: var(--ndp-color-accent); color: #fff; }

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.ndp-counter--cols-4, .ndp-iconbox--cols-4, .ndp-team--cols-4, .ndp-campaigns--cols-4,
	.ndp-iconbox--cols-3, .ndp-campaigns--cols-3, .ndp-team--cols-3, .ndp-counter--cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	.ndp-counter, .ndp-iconbox, .ndp-team, .ndp-testimonials, .ndp-campaigns { grid-template-columns: 1fr !important; }
	.ndp-hero__inner { padding: 40px 24px; }
	.ndp-donate-cta { padding: 32px 24px; }
}
