/*
 * Arunya theme styles, carried over from the original arunya.org design.
 * Layout: field-row rhythm. Wide photo bands alternate with narrow text
 * columns; one straw-gold rule marks each section like a paddy bund.
 * Class names (wrap, band, sec-head, eyebrow, lede, ...) are set on blocks
 * via "Additional CSS class(es)" in the editor.
 */
:root {
	--bg: #f5f7f0;
	--surface: #ffffff;
	--fg: #1d271b;
	--muted: #56624f;
	--line: #d9e0cf;
	--leaf: #2f7d27;
	--leaf-soft: #e3efd9;
	--straw: #c9932a;
	--bark: #6b4220;
	--on-leaf: #ffffff;
	--shadow: 0 1px 2px rgba(29, 39, 27, .06), 0 8px 24px rgba(29, 39, 27, .08);
	--display: var(--wp--preset--font-family--display);
	--body: var(--wp--preset--font-family--body);
	--gutter-l: max(16px, env(safe-area-inset-left, 0px));
	--gutter-r: max(16px, env(safe-area-inset-right, 0px));
	--wrap: 1160px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #111811; --surface: #19221a; --fg: #e6ecdd; --muted: #a5b19b; --line: #2b372a;
		--leaf: #7cc66a; --leaf-soft: #1f3020; --straw: #e0b452; --bark: #c9915c; --on-leaf: #0f1a0e;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
		color-scheme: dark;
	}
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; }
figure { margin: 0; }
.wrap { max-width: var(--wrap); margin-left: auto !important; margin-right: auto !important; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bark); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; flex: none; width: 28px; height: 3px; background: var(--straw); border-radius: 2px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.prose { max-width: 65ch; display: grid; gap: 1em; }
.kn { font-family: var(--display); font-weight: 600; color: var(--straw); }
.kn-title { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; margin-top: -8px; }
.wp-element-caption { font-size: .88rem; color: var(--muted); margin: 8px 0 0; text-align: left; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
/* backdrop-filter would trap the fixed-position mobile menu inside the header */
.site-head:has(.is-menu-open) { backdrop-filter: none; background: var(--bg); }
.admin-bar .site-head { top: var(--wp-admin--admin-bar--height, 0px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .wp-block-site-logo img { width: 38px; height: auto; }
.brand-name a { text-decoration: none; display: block; }
.brand-name strong { font-family: var(--display); font-size: 1.55rem; font-weight: 800; color: var(--leaf); line-height: 1; display: block; }
.brand-name em { font-family: var(--display); font-style: normal; font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--bark); display: block; margin-top: 2px; }
.nav .wp-block-navigation__container { gap: 4px; }
.nav .wp-block-navigation-item__content { color: var(--fg); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 12px !important; border-radius: 999px; }
.nav .wp-block-navigation-item__content:hover { background: var(--leaf-soft); }
.nav .current-menu-item > .wp-block-navigation-item__content,
.nav .current-menu-ancestor > .wp-block-navigation-item__content { background: var(--leaf); color: var(--on-leaf); }
.nav .wp-block-navigation__responsive-container-open { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; color: var(--fg); }
.nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--bg); color: var(--fg); padding: 16px var(--gutter-r) 16px var(--gutter-l); }
.nav .is-menu-open .wp-block-navigation__container { gap: 4px; width: 100%; }
.nav .is-menu-open .wp-block-navigation-item { width: 100%; }
.nav .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 12px 14px !important; font-size: 1.05rem; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-size: 1rem; font-weight: 700; line-height: 1.6; text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--leaf); background: var(--leaf); color: var(--on-leaf); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--leaf); border: 2px solid var(--leaf); padding: 12px 20px; }
.wp-block-button .wp-block-button__link:hover { filter: brightness(1.08); }

/* Sections */
.site-main section { padding-block: clamp(48px, 8vw, 96px); }
.site-main section.pt-0 { padding-top: 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px !important; }
.sec-head > .wp-block-group { display: grid; gap: 14px; }
.sec-head-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* Hero */
.site-main section.hero { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--leaf); }
.collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 5 / 4.4; max-width: 100%; }
.collage .wp-block-image { margin: 0; overflow: hidden; border-radius: 14px; position: relative; min-height: 0; }
.collage .wp-block-image:first-child { grid-row: span 2; border-radius: 120px 14px 14px 14px; }
.collage .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Focus areas: icons follow list position (Agriculture, Rural Development,
   Skill Development, Education, R&D, Art & Literature, Health Care). */
.focus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.focus .sec-head { margin-bottom: 0 !important; }
.focus-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.focus-list li { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 8px 16px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.focus-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.focus-list li::before { content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--leaf-soft); }
.focus-list li::after { content: ""; position: absolute; left: 8px; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: var(--leaf); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.focus-list li:nth-child(7n+1) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21V10M12 10c0-4 3-6 7-6 0 4-3 6-7 6ZM12 13c0-3-2.5-5-6-5 0 3 2.5 5 6 5Z'/%3E%3C/svg%3E"); }
.focus-list li:nth-child(7n+2) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V11l7-6 7 6v10M10 21v-5h4v5'/%3E%3C/svg%3E"); }
.focus-list li:nth-child(7n+3) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4Z'/%3E%3C/svg%3E"); }
.focus-list li:nth-child(7n+4) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5L2 9Z'/%3E%3Cpath d='M6 11v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E"); }
.focus-list li:nth-child(7n+5) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6L4.5 18.5A1.7 1.7 0 0 0 6 21h12a1.7 1.7 0 0 0 1.5-2.5L14 9V3'/%3E%3Cpath d='M7.5 15h9'/%3E%3C/svg%3E"); }
.focus-list li:nth-child(7n+6) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5V5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2Zm0 0A2 2 0 0 0 6 22h13'/%3E%3Cpath d='M9 8h6'/%3E%3C/svg%3E"); }
.focus-list li:nth-child(7n+7) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-8-4.8-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 6.2-8 11-8 11Z'/%3E%3Cpath d='M12 10v5M9.5 12.5h5'/%3E%3C/svg%3E"); }
@media (max-width: 860px) { .focus { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .focus-list { grid-template-columns: 1fr; } }

/* Approach quote */
.approach { background: var(--leaf); color: var(--on-leaf); }
.approach .wrap { display: grid; gap: 18px; max-width: 900px; }
.approach .eyebrow { color: inherit; }
.approach .wp-block-quote { margin: 0; padding: 0; border: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; text-wrap: balance; }

/* Project cards: the heading link covers the whole card. */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 960px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--leaf-soft); margin: 0; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px 22px 24px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card .kn { font-size: 1rem; }
.card h3 a { color: var(--fg); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--straw); outline-offset: 2px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--leaf); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 560px; } }

/* Galleries. ":not(#x)" matches the specificity of core's gallery rules. */
.wp-block-gallery.has-nested-images.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.wp-block-gallery.has-nested-images.strip figure.wp-block-image:not(#x) { width: auto; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.wp-block-gallery.has-nested-images.strip figure.wp-block-image:not(#x) img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.wp-block-gallery.has-nested-images.strip figure.wp-block-image:not(#x):hover img { transform: scale(1.05); }
@media (max-width: 760px) { .wp-block-gallery.has-nested-images.strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wp-block-gallery.has-nested-images.grid { display: block; columns: 3 260px; column-gap: 12px; }
.wp-block-gallery.has-nested-images.grid figure.wp-block-image:not(#x) { display: block; width: 100%; margin: 0 0 12px; break-inside: avoid; border-radius: 12px; overflow: hidden; }
.wp-block-gallery.has-nested-images.grid figure.wp-block-image:not(#x) img { width: 100%; height: auto; transition: transform .3s ease; }
.wp-block-gallery.has-nested-images.grid figure.wp-block-image:not(#x):hover img { transform: scale(1.03); }

/* Photo viewer (core image lightbox): dark backdrop like the original site */
.wp-lightbox-overlay .scrim { background-color: rgba(8, 12, 8, .94) !important; }
.wp-lightbox-overlay button { color: #fff; }
.wp-lightbox-overlay button svg { fill: #fff; }

/* CTA */
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-text { display: grid; gap: 10px; max-width: 40rem; }

/* Inner page header */
.page-head { padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-head .wrap { display: grid; gap: 16px; }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Photos beside text (About, Contact) */
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Key facts (table block with the "facts" class) */
.wp-block-table.facts { margin: 28px 0 0; overflow: visible; }
.wp-block-table.facts table { border-collapse: collapse; width: 100%; border-top: 1px solid var(--line); }
.wp-block-table.facts td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 12px 12px 0; vertical-align: top; }
.wp-block-table.facts td:first-child { width: 9rem; font-weight: 700; color: var(--bark); }

/* Project detail */
.proj-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 18px; }
@media (max-width: 640px) { .proj-hero img { aspect-ratio: 4 / 3; } }
.proj-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .proj-body { grid-template-columns: 1fr; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 12px; }
.side-card h3 { font-size: 1.1rem; }
.side-card .wp-block-table.facts { margin-top: 0; }

/* Seed-to-seed steps (numbered list with the "cycle" class) */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: c; position: relative; }
.cycle li { position: relative; padding: 52px 8px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.cycle li strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; color: var(--fg); margin-bottom: 4px; }
.cycle li::before { counter-increment: c; content: counter(c); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--straw); color: #1d271b; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.05rem; z-index: 1; }
.cycle li::after { content: ""; position: absolute; top: 18px; left: 38px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--straw) 0 6px, transparent 6px 12px); }
.cycle li:last-child::after { display: none; }
@media (max-width: 520px) {
	.cycle { grid-template-columns: 1fr; gap: 18px; }
	.cycle li { padding: 6px 0 0 54px; min-height: 38px; }
	.cycle li::after { top: 38px; left: 18px; width: 2px; height: calc(100% - 20px); right: auto; background: repeating-linear-gradient(180deg, var(--straw) 0 6px, transparent 6px 12px); }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.c-list { display: grid; gap: 22px; }
.c-item { display: grid; gap: 4px; }
.c-item .lbl { font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bark); }
.contact-grid .photo img { border-radius: 18px; }

/* Footer */
.site-foot { background: #17221a; color: #d5dccb; padding-block: 56px 32px; }
.site-foot .wrap { display: grid; gap: 32px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; } }
.foot-about { display: grid; gap: 14px; max-width: 26rem; }
.site-foot h3 { font-size: 1rem; color: #e0b452; margin-bottom: 10px; letter-spacing: .04em; }
.site-foot a { color: #d5dccb; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot .brand-name strong { color: #8fd27d; }
.site-foot .brand-name em { color: #c9a27a; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; font-size: .88rem; color: #a5b19b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
