/* WordPress home layout aligned to the reviewed preview while keeping live CMS features. */
.site-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .site-header { top: 32px; }
.header-inner { position: relative; border-radius: 18px; }
.header-search { display: inline-grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 26px; line-height: 1; text-decoration: none; }
.header-search:hover { color: var(--campus-cyan); }
.featured-programs { margin-top: 50px; }
.featured-programs .section-heading { margin-bottom: 22px; }
.featured-program-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.featured-program-card { border-color: rgba(118,232,226,.16); background: rgba(11,30,36,.82); }
.featured-program-card .card-media { aspect-ratio: 1.2; }
.featured-program-card .card-content { padding: 16px; }
.featured-program-card .card-content h3 { font-family: var(--font-display); font-size: 18px; }
.featured-program-card .card-content .eyebrow { color: var(--campus-cyan); }
.home-campaigns { overflow: hidden; border: 1px solid rgba(118,232,226,.15); border-radius: 22px; background: rgba(7,25,31,.72); }
.home-campaigns [id*="section_ds176wm67"] { max-width: 100%; }
.home-campaigns .donasiaja-slider { display: flex !important; flex-wrap: wrap; align-items: stretch; }
.home-campaigns .donasiaja-slider > .cards__item { flex: 0 0 33.333333% !important; width: 33.333333% !important; max-width: 33.333333% !important; box-sizing: border-box; }
.home-campaigns .donasiaja-slider .card__ { height: 100%; }
.home-campaigns img { max-width: 100%; }
.home-campaigns .swiper-slide { border: 1px solid rgba(118,232,226,.13); border-radius: 18px; background: rgba(11,30,36,.92); color: var(--ink); }
.home-campaigns .swiper-slide a { color: var(--campus-cyan); }
.campaign-fallback { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.campaign-fallback p { margin: 0; }
.connect-section .educash-card { min-height: 100%; }
.floating-wa { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; border-radius: 999px; font-size: 13px; font-weight: 750; text-decoration: none; }
.floating-wa svg { width: 19px; height: 19px; flex: 0 0 19px; }
.mobile-dock { display: none; }

@media (max-width: 960px) {
	.featured-program-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.home-campaigns .donasiaja-slider > .cards__item { flex-basis: 50% !important; width: 50% !important; max-width: 50% !important; }
}

@media (max-width: 720px) {
	.admin-bar .site-header { top: 46px; }
	.header-inner { display: flex; flex-wrap: wrap; gap: 8px; }
	.site-branding { order: 1; margin-right: auto; }
	.header-search { order: 2; width: 38px; height: 38px; flex-basis: 38px; }
	.header-inner > .theme-toggle { order: 3; }
	.header-inner > .menu-toggle { order: 4; margin-left: 0; }
	.primary-navigation { order: 5; }
	.header-cta { display: none; }
	.primary-navigation { top: calc(100% + 8px); border: 1px solid var(--line); border-radius: 17px; }
	.featured-programs { margin-top: 38px; }
	.featured-program-grid { grid-template-columns: 1fr; }
	.home-campaigns .donasiaja-slider > .cards__item { flex-basis: 100% !important; width: 100% !important; max-width: 100% !important; }
	.featured-program-card { display: grid; grid-template-columns: 34% 1fr; min-height: 126px; }
	.featured-program-card .card-media { height: 100%; aspect-ratio: auto; }
	.featured-program-card .card-content { align-self: center; }
	.campaign-fallback { align-items: flex-start; flex-direction: column; }
	.floating-wa { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 46px; height: 46px; justify-content: center; padding: 0; }
	.floating-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.mobile-dock { position: fixed; z-index: 90; right: 9px; bottom: max(8px, env(safe-area-inset-bottom)); left: 9px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 7px; border: 1px solid rgba(118,232,226,.15); border-radius: 19px; background: rgba(5,21,26,.94); box-shadow: 0 -12px 40px rgba(0,0,0,.34); backdrop-filter: blur(18px); }
	.mobile-dock a { display: grid; min-height: 49px; align-content: center; justify-items: center; gap: 3px; color: #afc7c3; font-size: 9px; line-height: 1.1; text-decoration: none; }
	.mobile-dock a svg { width: 18px; height: 18px; }
	.mobile-dock a:first-child, .mobile-dock a:hover { color: var(--campus-cyan); }
	body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
	.mobile-dock, .floating-wa { transition: none !important; }
}

html[data-theme="light"] .featured-program-card { border-color: rgba(20,126,121,.14); background: #fff; }
html[data-theme="light"] .featured-program-card .card-content .eyebrow { color: #147e79; }
html[data-theme="light"] .home-campaigns { border-color: rgba(20,126,121,.16); background: rgba(255,255,255,.82); }
html[data-theme="light"] .home-campaigns .swiper-slide { border-color: rgba(20,126,121,.14); background: #fff; color: #243e38; }
html[data-theme="light"] .home-campaigns .swiper-slide a { color: #147e79; }
html[data-theme="light"] .campaign-fallback { border-color: rgba(20,126,121,.16); background: #fff; }

/* Keep the live WordPress header readable at every viewport width. */
.site-header .menu-list > .slideout-toggle { display: none !important; }

@media (min-width: 1121px) {
	.site-header .header-inner { gap: clamp(10px, 1vw, 17px); }
	.site-header .site-branding { flex: 0 0 auto; min-width: 0; max-width: 260px; }
	.site-header .custom-logo-link { display: inline-flex; align-items: center; max-width: 100%; }
	.site-header .site-branding .custom-logo { display: block; width: auto; max-width: min(260px, 21vw); max-height: 52px; object-fit: contain; }
	.site-header .primary-navigation { flex: 1 1 auto; min-width: 0; }
	.site-header .menu-list { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: clamp(2px, .35vw, 6px); }
	.site-header .menu-list > li { flex: 0 0 auto; min-width: 0; }
	.site-header .menu-list > li > a { display: block; padding: 9px clamp(7px, .56vw, 11px); font-size: clamp(12px, .85vw, 13px); line-height: 1.3; white-space: nowrap; }
	.site-header .menu-toggle { display: none !important; }
	.site-header .header-search { width: 40px; height: 40px; flex-basis: 40px; }
	.site-header .theme-toggle { flex: 0 0 auto; white-space: nowrap; }
	.site-header .header-cta { display: inline-flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 10px; width: max-content; min-width: max-content; white-space: nowrap; }
	.site-header .header-cta > span { flex: 0 0 auto; }
}

@media (max-width: 1120px) {
	.site-header .header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 72px; padding: 9px 16px; }
	.site-header .site-branding { order: 1; flex: 0 1 auto; min-width: 0; margin: 0 auto 0 0; }
	.site-header .custom-logo-link { display: inline-flex; align-items: center; max-width: 100%; }
	.site-header .site-branding .custom-logo { display: block; width: auto; max-width: min(240px, 34vw); max-height: 48px; object-fit: contain; }
	.site-header .header-search { order: 2; width: 40px; height: 40px; flex-basis: 40px; }
	.site-header .theme-toggle { order: 3; flex: 0 0 auto; }
	.site-header .menu-toggle { display: grid; order: 4; flex: 0 0 42px; width: 42px; height: 42px; margin: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 20px; line-height: 1; }
	.site-header .primary-navigation { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 5; display: none; order: 5; padding: 8px 18px 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: 0 22px 55px rgba(0,0,0,.32); }
	.site-header .primary-navigation.is-open { display: block; }
	.site-header .menu-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
	.site-header .menu-list > li { border-bottom: 1px solid var(--line); }
	.site-header .menu-list > li:last-child { border-bottom: 0; }
	.site-header .menu-list > li > a { display: block; padding: 10px 8px; line-height: 1.4; white-space: normal; }
	.site-header .menu-list ul { position: static; display: block; padding: 0 0 0 14px; border: 0; background: transparent; box-shadow: none; }
	.site-header .menu-list ul a { padding-block: 8px; font-size: 13px; }
	.site-header .header-cta { display: none; }
}

@media (max-width: 720px) {
	.site-header .header-inner { gap: 4px; padding: 8px 12px; }
	.site-header .site-branding .custom-logo { max-width: min(180px, calc(100vw - 202px)); max-height: 44px; }
	.site-header .header-search { width: 38px; height: 38px; flex-basis: 38px; }
	.site-header .theme-toggle { width: 38px; min-width: 38px; height: 38px; min-height: 38px; justify-content: center; padding: 0; }
	.site-header .theme-toggle [data-theme-label] { display: none; }
	.site-header .menu-toggle { flex-basis: 40px; width: 40px; height: 40px; }
}
