.home-page { width: auto; max-width: none; margin: 0; }
.home-hero, .home-news-section { width: min(100%, 1180px); margin-right: auto; margin-left: auto; }
.home-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 330px; padding: clamp(32px, 5vw, 58px); border-radius: var(--radius-xl); background: linear-gradient(128deg, #105b3e 0%, #176b4b 54%, #31775e 100%); color: #fff; box-shadow: var(--shadow-md); }
.home-hero::after { position: absolute; z-index: -1; inset: auto 0 0; height: 38%; background: linear-gradient(90deg, rgba(255,255,255,.07), transparent 54%); content: ""; }
.home-hero-content { position: relative; z-index: 1; max-width: 690px; }
.home-eyebrow, .section-eyebrow { margin: 0 0 var(--space-2); font-size: .75rem; font-weight: 850; letter-spacing: .1em; }
.home-eyebrow { color: #d9f0e3; }
.home-hero h1 { margin: 0; color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.7rem); letter-spacing: -.035em; }
.home-hero-content > p:not(.home-eyebrow) { margin: var(--space-4) 0 0; color: #f2faf5; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.6; }
.home-hero-shape { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; background: rgba(215,243,225,.10); }
.home-hero-shape-one { width: 360px; height: 360px; top: -176px; right: -118px; }
.home-hero-shape-two { width: 230px; height: 230px; bottom: -146px; left: -55px; }
.home-quick-links { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.home-quick-links a { display: inline-flex; min-height: 46px; align-items: center; gap: var(--space-2); padding: 10px 15px; color: #123f2e; border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-sm); background: rgba(255,255,255,.96); box-shadow: 0 3px 10px rgba(2,44,26,.14); font-weight: 800; text-decoration: none; }
.home-quick-links svg { width:16px; height:16px; flex:0 0 16px; fill:none; stroke:currentColor; stroke-width:1.85; stroke-linecap:round; stroke-linejoin:round; }
.home-quick-links a:hover { color: #fff; border-color: #d1efdc; background: rgba(11,73,47,.78); }
.home-news-section { margin-top: clamp(34px, 6vw, 58px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
.section-heading h2 { margin: 0; }.section-eyebrow { color: var(--color-primary); }
.section-link { display: inline-flex; min-height: 44px; align-items: center; gap: var(--space-2); color: var(--color-primary); font-weight: 800; text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }
.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.news-loading { display: grid; grid-template-columns: repeat(3, 1fr); grid-column: 1 / -1; gap: var(--space-5); }
.news-loading span { min-height: 310px; border-radius: var(--radius-md); background: linear-gradient(100deg, #edf2ed 20%, #f8faf8 38%, #edf2ed 58%); background-size: 200% 100%; animation: home-shimmer 1.4s infinite linear; }
@keyframes home-shimmer { to { background-position: -200% 0; } }
.home-cards .news-card { min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.home-cards .news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home-cards .news-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-surface-muted); }
.home-cards .news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.home-cards .news-card:hover .news-card-media img { transform: scale(1.03); }
.news-fallback { display: grid; width: 100%; height: 100%; min-height: 180px; place-items: center; padding: var(--space-5); background: linear-gradient(135deg, #dceee3, #f0f6f1); color: var(--color-primary-hover); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; text-align: center; }
.home-cards .news-card-body { display: grid; gap: var(--space-3); padding: var(--space-4); }
.home-cards .category { width: fit-content; margin: 0; }
.home-cards h3 { margin: 0; font-size: 1.15rem; }.home-cards h3 a { color: var(--color-text); text-decoration: none; }
.home-cards h3 a:hover { color: var(--color-primary); text-decoration: underline; }
.home-cards .news-summary { display: -webkit-box; margin: 0; overflow: hidden; color: var(--color-text-muted); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-card-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: 0; color: var(--color-text-muted); font-size: .8rem; }
.news-card-meta time::before { margin-right: 5px; content: "◷"; }.news-card-meta a { color: inherit; text-decoration: none; }.news-card-meta a:hover { color: var(--color-primary); text-decoration: underline; }
.home-cards > .empty-state, .home-cards > .news-error { grid-column: 1 / -1; }
.news-error { display: grid; min-height: 180px; place-items: center; padding: var(--space-8); color: var(--color-text-muted); border: 1px dashed #b9cbc0; border-radius: var(--radius-lg); background: var(--color-surface-muted); text-align: center; }
@media (max-width: 1100px) { .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .home-hero { min-height: 0; } }
@media (max-width: 620px) { .home-hero { padding: 30px var(--space-5); border-radius: var(--radius-lg); }.home-hero h1 { font-size: clamp(2rem, 10vw, 2.65rem); }.home-quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-6); }.home-quick-links a { min-height: 56px; justify-content: center; padding: 8px; font-size: .78rem; text-align: center; }.home-quick-links a span { display: block; font-size: 1.1rem; }.section-heading { align-items: start; }.section-link { min-height: 38px; font-size: .85rem; }.home-cards { grid-template-columns: 1fr; gap: var(--space-4); }.news-loading { grid-template-columns: 1fr; }.news-loading span:not(:first-child) { display: none; } }

/* Homepage reference layout: compact village portal inspired by the supplied Schoonoord.info view. */
body.home-reference { --sidebar-width: 252px; overflow-x: hidden; background: #fff; }
body.home-reference .site-sidebar { display: flex; flex-direction: column; padding: 10px 8px 14px; background: #fff; }
body.home-reference .site-brand { min-height: 48px; margin: 0 10px 24px; font-size: 0; }
body.home-reference .site-brand-mark { width: 38px; height: 34px; border-radius: 0; background: transparent; color: #628075; font-size: 1rem; }
body.home-reference .site-brand::after { color: #587268; content: "Schoonoord.info"; font: 700 8px/1.1 var(--font-body); letter-spacing: -.03em; }
body.home-reference .site-nav { gap: 3px; }
body.home-reference .site-nav a { min-height: 40px; gap: 11px; padding: 8px 12px; color: #55766a; font-size: .9rem; font-weight: 600; }
body.home-reference .site-nav a[aria-current="page"], body.home-reference .site-nav a:hover { background: #277353; color: #fff; }
body.home-reference .site-nav-label { margin: 24px 12px 8px; color: #8b9c95; font-size: .64rem; }
body.home-reference .site-sidebar-footer { margin-top: auto; padding: 14px 4px 0; }
body.home-reference .site-sidebar-footer a { font-size: .68rem; }
body.home-reference .site-topbar { min-height: 55px; padding: 7px 16px; background: rgba(255,255,255,.98); }
body.home-reference .site-topbar .search { width: min(322px, 45vw); min-height: 38px; padding-inline: 11px; border-radius: 8px; background: #f7f8f5; }
body.home-reference .site-topbar .search input { min-height: 34px; font-size: .84rem; }
body.home-reference .shell-icon-button { width: 36px; min-width: 36px; min-height: 36px; font-size: .92rem; }
body.home-reference .app-main { width: auto !important; margin-left: var(--sidebar-width); padding: 79px 25px 72px; background: #fff; }
body.home-reference .home-page { width: auto !important; }
body.home-reference .home-hero { min-height: 244px; padding: 38px 39px; border-radius: 15px; box-shadow: none; }
body.home-reference .home-hero-content { max-width: 590px; }
body.home-reference .home-hero h1 { font-size: clamp(2.05rem, 3.25vw, 2.35rem); letter-spacing: -.025em; }
body.home-reference .home-hero-content > p:not(.home-eyebrow) { max-width: 590px; margin-top: 10px; font-size: 1rem; line-height: 1.55; }
body.home-reference .home-quick-links { gap: 10px; margin-top: 25px; }
body.home-reference .home-quick-links a { min-height: 33px; padding: 7px 12px; border-radius: 8px; box-shadow: none; font-size: .78rem; font-weight: 700; }
body.home-reference .home-news-section { margin-top: 36px; }
body.home-reference .section-heading { margin-bottom: 16px; }
body.home-reference .section-heading h2 { font-size: 1.28rem; }
body.home-reference .section-link { min-height: 32px; font-size: .75rem; font-weight: 650; }
body.home-reference .home-cards { gap: 16px; }
body.home-reference .home-cards .news-card { border-radius: 10px; box-shadow: none; }
body.home-reference .home-cards .news-card-media { aspect-ratio: 1.88 / 1; }
body.home-reference .home-cards .news-card-body { gap: 8px; padding: 14px 16px 15px; }
body.home-reference .home-cards .category { min-height: 24px; padding: 4px 10px; font-size: .68rem; }
body.home-reference .home-cards h3 { font-family: var(--font-body); font-size: .95rem; line-height: 1.35; }
body.home-reference .home-cards .news-summary { font-size: .82rem; line-height: 1.5; -webkit-line-clamp: 2; }
body.home-reference .news-card-meta { gap: 5px 10px; font-size: .68rem; }
body.home-reference .home-events-section { width: min(100%, 1180px); margin: 36px auto 0; }
.home-event-cards .news-card { min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); box-shadow: none; transition: transform .18s ease, box-shadow .18s ease; }
.home-event-cards .news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home-event-cards .news-card-media { display: block; aspect-ratio: 1.88 / 1; overflow: hidden; background: var(--color-surface-muted); }
.home-event-cards .news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.home-event-cards .news-card:hover .news-card-media img { transform: scale(1.03); }
.home-event-cards .news-card-body { display: grid; gap: 8px; padding: 14px 16px 15px; }
.home-event-cards .category { width: fit-content; min-height: 24px; margin: 0; padding: 4px 10px; font-size: .68rem; }
.home-event-cards h3 { margin: 0; font-family: var(--font-body); font-size: .95rem; line-height: 1.35; }
.home-event-cards h3 a { color: var(--color-text); text-decoration: none; }
.home-event-cards h3 a:hover { color: var(--color-primary); text-decoration: underline; }
.home-event-cards .news-summary { display: -webkit-box; margin: 0; overflow: hidden; color: var(--color-text-muted); font-size: .82rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-event-cards .news-card-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 0; color: var(--color-text-muted); font-size: .68rem; }
.home-event-cards .news-card-meta time::before { margin-right: 5px; content: "◷"; }
.home-event-fallback { min-height: 0; font-size: 1.15rem; }
.home-events-empty { grid-column: 1 / -1; margin: 0; padding: 28px; color: var(--color-text-muted); border: 1px dashed #b9cbc0; border-radius: 10px; background: var(--color-surface-muted); text-align: center; }
@media (max-width: 900px) { body.home-reference .app-main { width: 100%; margin-left: 0; padding: 78px 16px 88px; } body.home-reference .home-hero { min-height: 0; } }
@media (max-width: 620px) { body.home-reference .home-hero { padding: 28px 22px; } body.home-reference .home-hero h1 { font-size: 2rem; } body.home-reference .home-quick-links a { min-height: 48px; } }
