/* Sehat Projects — shared styling */
.swf-projects-wrap,
.swf-wrap,
.swf-hero { font-family: 'Poppins', sans-serif; }

/* ---------- Hero banner ---------- */
.swf-hero {
	background: linear-gradient(135deg, #278FCD 0%, #1e6f9e 100%);
	background-size: cover; background-position: center;
	border-radius: 16px; padding: 60px 24px; text-align: center; color: #fff;
	margin-bottom: 36px;
}
.swf-hero-eyebrow {
	display: block !important; width: fit-content; margin: 0 auto 18px !important;
	background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
	padding: 6px 18px; border-radius: 999px; font-size: 11px; letter-spacing: 1.5px;
	font-weight: 600;
}
.swf-hero-title {
	background: #123863; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	white-space: nowrap; max-width: 100%; padding: 16px 34px; border-radius: 999px;
	font-size: 28px; font-weight: 800; letter-spacing: .5px; margin: 0 auto 18px !important; width: fit-content;
	border: 1px solid rgba(255,255,255,.25);
	color: #ffffff !important;
}
.swf-hero-title, .swf-hero-title * { color: #ffffff !important; }
.swf-hero-dash { opacity: .5; font-weight: 400; }
.swf-hero-subtitle { max-width: 560px; margin: 0 auto; font-size: 14.5px; opacity: .9; line-height: 1.6; }
@media (max-width: 600px) {
	.swf-hero-title { font-size: 16px; padding: 12px 18px; white-space: normal; }
}

/* ---------- Section header (Our Projects style) ---------- */
.swf-section-header { text-align: center; margin-bottom: 30px; }
.swf-section-eyebrow {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	color: #278FCD; font-weight: 700; font-size: 15px; letter-spacing: .5px; margin-bottom: 10px;
}
.swf-section-eyebrow .swf-heading-line { max-width: 60px; background: #e2745a; height: 2px; }
.swf-section-subheading { font-size: 30px; font-weight: 800; color: #1a2b3c; margin: 0 0 14px; }
.swf-learn-more { color: #278FCD; font-weight: 600; text-decoration: none; font-size: 14.5px; }
.swf-learn-more:hover { text-decoration: underline; }
@media (max-width: 600px) { .swf-section-subheading { font-size: 21px; } }

/* ---------- Filters ---------- */
.swf-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.swf-filter-btn {
	display: inline-block; padding: 8px 16px; border-radius: 999px;
	border: 1.5px solid #278FCD; color: #278FCD; text-decoration: none;
	font-size: 13px; font-weight: 500; transition: all .2s ease;
}
.swf-filter-btn:hover { background: #278FCD11; }
.swf-filter-btn.active { background: #278FCD; color: #fff; }

/* ---------- Section headers (grouped by type) ---------- */
.swf-type-section { margin-bottom: 44px; }
.swf-type-section-heading {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	margin-bottom: 26px;
}
.swf-heading-line { flex: 1; max-width: 120px; height: 1px; background: #d7dde3; }
.swf-heading-icon {
	width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid;
	display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.swf-heading-text { font-size: 16px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }

/* ---------- Grid / List ---------- */
.swf-projects-grid {
	display: flex; flex-wrap: wrap; gap: 22px;
}
.swf-projects-grid .swf-project-card {
	flex: 0 1 calc((100% - (var(--swf-columns, 3) - 1) * 22px) / var(--swf-columns, 3));
	max-width: calc((100% - (var(--swf-columns, 3) - 1) * 22px) / var(--swf-columns, 3));
}
.swf-projects-list { display: flex; flex-direction: column; gap: 16px; }
.swf-projects-list .swf-project-card { display: flex; flex-direction: row; }
.swf-projects-list .swf-card-image-outer { width: 220px; flex-shrink: 0; }

@media (max-width: 900px) {
	.swf-projects-grid .swf-project-card { flex: 0 1 calc(50% - 11px); max-width: calc(50% - 11px); }
}
@media (max-width: 600px) {
	.swf-projects-grid .swf-project-card { flex: 0 1 100%; max-width: 100%; }
	.swf-projects-list .swf-project-card { flex-direction: column; }
	.swf-projects-list .swf-card-image-outer { width: 100%; }
}

/* ---------- Carousel ---------- */
.swf-carousel-outer { position: relative; }
.swf-projects-carousel {
	display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 2px 4px;
}
.swf-projects-carousel::-webkit-scrollbar { display: none; }
.swf-projects-carousel .swf-project-card {
	flex: 0 0 86%; max-width: 86%; scroll-snap-align: start;
}
.swf-carousel-hint {
	display: block; text-align: center; color: #9aa4af; font-size: 12.5px;
	margin-top: 10px; letter-spacing: .2px;
}
.swf-carousel-arrow {
	display: none; position: absolute; top: 40%; transform: translateY(-50%);
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid #dfe4e9;
	background: #fff; color: #278FCD; font-size: 24px; line-height: 1; cursor: pointer;
	align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.1); z-index: 2;
}
.swf-carousel-arrow:hover { background: #278FCD; color: #fff; }
.swf-carousel-prev { left: -20px; }
.swf-carousel-next { right: -20px; }

@media (min-width: 481px) {
	.swf-projects-carousel .swf-project-card { flex: 0 0 340px; max-width: 340px; }
}
@media (min-width: 601px) {
	.swf-carousel-arrow { display: flex; }
	.swf-carousel-hint { display: none; }
	.swf-projects-carousel { gap: 22px; padding: 4px 2px 12px; }
}

/* ---------- Card ---------- */
.swf-project-card {
	background: #fff; border-radius: 14px; overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,.07); border: 1px solid #eef1f4;
	display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
	cursor: pointer;
}
.swf-project-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }

.swf-card-image-outer { position: relative; }
.swf-card-image { height: 190px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #f4f6f8; }
.swf-card-image-fallback { display: flex; align-items: center; justify-content: center; }

.swf-featured-badge {
	position: absolute; top: 10px; left: 10px; background: #123863; color: #fff;
	font-size: 10.5px; font-weight: 700; letter-spacing: .5px; padding: 5px 12px; border-radius: 999px;
}
.swf-status-tag {
	position: absolute; top: 10px; right: 10px;
	font-size: 10.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .3px;
}
.swf-status-tag-pending { color: #B45309; background: #FEF3C7; }
.swf-status-tag-in_progress { color: #1D4ED8; background: #DBEAFE; }
.swf-status-tag-completed { color: #15803D; background: #DCFCE7; }

.swf-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.swf-card-title { margin: 0; font-size: 18px; font-weight: 700; color: #123863; }
.swf-card-location { font-size: 12.5px; color: #6b7280; }
.swf-card-excerpt { margin: 0; font-size: 13.5px; color: #4b5563; line-height: 1.55; }

.swf-readmore { margin: -4px 0 2px; }
.swf-readmore summary {
	color: #278FCD; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none;
}
.swf-readmore summary::-webkit-details-marker { display: none; }
.swf-readmore summary:hover { text-decoration: underline; }
.swf-readmore p { margin: 8px 0 0; font-size: 13.5px; color: #4b5563; line-height: 1.55; }

.swf-progress-wrap { margin-top: 4px; }
.swf-progress-bar { height: 8px; background: #eef1f4; border-radius: 999px; overflow: hidden; }
.swf-progress-fill { height: 100%; background: #278FCD; border-radius: 999px; }
.swf-progress-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: #6b7280; margin-top: 5px; }

.swf-contribute-btn {
	margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 8px;
	background: #123863; color: #fff !important; width: 100%; box-sizing: border-box;
	padding: 12px 20px; border-radius: 8px; text-decoration: none; font-size: 14px;
	font-weight: 700; transition: background .2s ease;
}
.swf-contribute-btn:hover { background: #0c2745; }
.swf-arrow { transition: transform .2s ease; }
.swf-contribute-btn:hover .swf-arrow { transform: translateX(3px); }

.swf-giving-tags {
	margin-top: 8px; padding-top: 10px; border-top: 1px solid #eef1f4;
	text-align: center; font-size: 10.5px; letter-spacing: 1px; color: #9aa4af; font-weight: 600;
}

.swf-no-projects { color: #6b7280; padding: 30px 0; text-align: center; }

/* ---------- Admin ---------- */
.swf-wrap .swf-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.swf-types-layout { display: flex; gap: 30px; margin-top: 20px; align-items: flex-start; }
.swf-types-list { flex: 2; }
.swf-types-form { flex: 1; background: #fff; border: 1px solid #dcdcde; padding: 18px 20px; border-radius: 8px; }
.swf-filter-form { margin: 10px 0 16px; }
.swf-delete { color: #b32d2e; }

/* ---------- Project details modal ---------- */
body.swf-modal-noscroll { overflow: hidden; }

.swf-modal-overlay {
	position: fixed; inset: 0; z-index: 99999; display: none;
	background: rgba(15,26,42,.6); padding: 24px;
	align-items: center; justify-content: center;
}
.swf-modal-overlay.swf-modal-open { display: flex; }

.swf-modal {
	background: #fff; width: 100%; max-width: 640px; max-height: 90vh;
	border-radius: 16px; overflow-y: auto; position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.swf-modal-close {
	position: absolute; top: 12px; right: 12px; z-index: 2;
	width: 36px; height: 36px; border-radius: 50%; border: none;
	background: rgba(0,0,0,.45); color: #fff; font-size: 22px; line-height: 1;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.swf-modal-close:hover { background: rgba(0,0,0,.65); }
.swf-modal-image {
	width: 100%; height: 260px; background-size: contain; background-repeat: no-repeat;
	background-position: center; background-color: #f4f6f8;
	display: flex; align-items: center; justify-content: center;
}
.swf-modal-body { padding: 24px 26px 30px; }
.swf-modal-status {
	display: inline-block; padding: 4px 12px; border-radius: 999px;
	font-size: 11px; font-weight: 700; letter-spacing: .5px; margin-bottom: 10px;
	background: #eef1f4; color: #4b5563;
}
.swf-modal-status.swf-status-tag-in_progress { background: #e6f3fb; color: #278FCD; }
.swf-modal-status.swf-status-tag-completed { background: #e7f7ee; color: #1f9d55; }
.swf-modal-status.swf-status-tag-pending { background: #fdf3d8; color: #9a7412; }
.swf-modal-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #16324a; }
.swf-modal-location { color: #6b7280; font-size: 13.5px; margin-bottom: 14px; }
.swf-modal-desc { color: #444c56; line-height: 1.6; font-size: 14.5px; margin-bottom: 18px; white-space: pre-line; }
.swf-modal-progress { margin-bottom: 18px; }
.swf-modal-giving {
	font-size: 10.5px; letter-spacing: 1px; color: #9aa4af; font-weight: 600;
	margin-bottom: 18px; text-align: left;
}
.swf-modal-donate { display: inline-flex; }

@media (max-width: 600px) {
	.swf-modal-image { height: 190px; }
	.swf-modal-body { padding: 20px; }
}
