/*
Theme Name: Istilaci Bocekler Risk Portali
Description: Custom theme built from the "Invasive" Figma homepage design.
Version: 0.7.10
Requires at least: 6.9
Requires PHP: 8.0
Text Domain: istilaci
*/

@font-face { font-family: "Zilla Slab"; font-weight: 500; font-display: swap; src: url("assets/fonts/zilla-slab-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 500; font-display: swap; src: url("assets/fonts/zilla-slab-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20C0; }
@font-face { font-family: "Antic Slab"; font-weight: 400; font-display: swap; src: url("assets/fonts/antic-slab-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 300; font-display: swap; src: url("assets/fonts/open-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 300; font-display: swap; src: url("assets/fonts/open-sans-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20C0; }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/open-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20C0; }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("assets/fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("assets/fonts/open-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20C0; }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("assets/fonts/open-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("assets/fonts/open-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF, U+20A0-20C0; }

:root {
	--orange: #f7941e;
	--accent-rgb: 247, 148, 30;
	--red: #d93028;
	--ink: #1d130f;
	--body: #231f20;
	--news: #393939;
	--news-muted: rgba(57, 57, 57, 0.6);
	--header-bg: #2c2620;
	--footer-bg: #1d130f;
	--footer-text: rgba(255, 255, 255, 0.79);
	--card-bg: #f8f8f8;
	--required: #c02b0a;
	--display: "Zilla Slab", Georgia, serif;
	--text: "Antic Slab", Georgia, serif;
	--ui: "Open Sans", Arial, sans-serif;
	--gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--body); font-family: var(--text); letter-spacing: 0.1px; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.container { width: min(1140px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; background: #fff; color: var(--ink); }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 50px; text-decoration: none; transition: filter 0.15s ease; }
.btn:hover { filter: brightness(0.92); }
.btn-hero { padding: 16px 20px; background: var(--red); color: #fff; font-size: 22px; line-height: 15px; text-transform: uppercase; }
.btn-hero .icon { font-size: 15px; }
.btn-outline-row { padding: 24px 30px; background: var(--orange); color: #1e1e1e; font-size: 18px; line-height: 18px; text-align: center; }
.btn-card { width: 100%; min-height: 45px; padding: 10px 20px; background: var(--red); color: #fff; font: 600 15px/15px var(--ui); text-transform: uppercase; }
.btn-card .icon { font-size: 15px; }
.btn-banner { min-height: 45px; padding: 10px 30px; background: var(--orange); color: #fff; font: 600 15px/15px var(--ui); text-transform: uppercase; }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--header-bg); border-bottom: 1px solid rgba(255, 255, 255, 0.5); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; padding-block: 20px; }
.site-logo img { width: 145px; height: 52px; }
.nav-toggle { display: none; padding: 8px; border: 0; background: none; color: #fff; font-size: 24px; cursor: pointer; }
.main-nav > ul { display: flex; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 10px; padding: 8px 20px; font-size: 18px; line-height: 20.8px; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.main-nav > ul > li > a:hover { color: var(--orange); }
.submenu { position: absolute; left: 0; top: 100%; display: none; min-width: 240px; padding: 10px 0; background: var(--header-bg); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.submenu a { display: block; padding: 8px 20px; font-family: var(--ui); font-size: 15px; line-height: 20.8px; text-decoration: none; }
.submenu a:hover { color: var(--orange); }
.main-nav li:hover > .submenu, .main-nav li:focus-within > .submenu { display: block; }
.header-search { color: #fff; font-size: 18px; }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: 651px; background: url('/wp-content/uploads/2026/11/species-bactrocera-dorsalis.jpg') center top / cover no-repeat; color: #fff; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, #000, rgba(121, 119, 119, 0.62)); opacity: 0.82; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; max-width: 568px; }
.hero h1 { font: 500 74px/81.4px var(--display); letter-spacing: 0.5px; }
.hero h1 span, .accent { color: var(--orange); }
.hero p { max-width: 545px; font-size: 22px; line-height: 25.2px; letter-spacing: 0.5px; }

/* Sections */
.page-sections { display: flex; flex-direction: column; gap: 80px; padding-top: 59px; }
.section-stack { display: flex; flex-direction: column; gap: 30px; }
.section-title { color: var(--ink); font: 500 48px/1.2 var(--display); }
.threats .section-title { max-width: 1014px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.lead { color: var(--body); font-size: 24px; line-height: 1.5; }

.threat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.threat-card { position: relative; display: flex; align-items: flex-end; height: 337px; padding: 20px; overflow: hidden; border-radius: 8px; color: #fff; text-decoration: none; isolation: isolate; }
.threat-card img { position: absolute; inset: -4.21%; z-index: -2; width: 108.42%; max-width: none; height: 108.42%; object-fit: cover; transition: transform 0.3s ease; }
.threat-card:hover img { transform: scale(1.04); }
.threat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, transparent 65.8%, rgba(0, 0, 0, 0.7) 101.86%); }
.threat-card span { font: 600 20px/20px var(--ui); }
.threat-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.threat-foot .lead { max-width: 552px; }

.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.help-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--card-bg); }
.help-image { height: 371px; background: url("assets/img/help.jpg") left top / 1200px 628px no-repeat; }
.help-body { display: flex; flex: 1; flex-direction: column; gap: 19px; padding: 35px 40px; color: #000; }
.help-body h3 { font-size: 28px; font-weight: 400; line-height: 1.5; }
.help-body p { flex: 1; font-size: 16.594px; line-height: 25.2px; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 29px; }
.news-featured { display: flex; flex-direction: column; gap: 12px; color: var(--news); }
.news-featured img { width: 100%; height: 250px; object-fit: cover; }
.news-meta { font-size: 14px; line-height: 1.009; }
.news-meta time { color: var(--news-muted); }
.news-featured h3 { font-size: 18px; font-weight: 400; line-height: 1.5; }
.news-featured h3 a, .news-item h3 a { text-decoration: none; }
.news-featured h3 a:hover, .news-item h3 a:hover { color: var(--red); }
.news-featured p:last-child { color: var(--news-muted); font-size: 16px; line-height: 1.3; }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { display: flex; gap: 16px; color: var(--news); }
.news-item img { flex: none; width: 90px; height: 70px; object-fit: cover; object-position: top; background: #c4c4c4; }
.news-item > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.news-item .news-meta { font-size: 12px; }
.news-item h3 { display: -webkit-box; overflow: hidden; font-size: 18px; font-weight: 400; line-height: 1.3; text-transform: capitalize; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.banner { background: url('/wp-content/uploads/2026/11/species-myzus-ornatus.jpg') left top / cover no-repeat; color: #fff; }
.banner .container { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-block: 60px; }
.banner h2 { margin-bottom: 9px; max-width: 393px; font: 500 48px/49.5px var(--display); letter-spacing: 0.5px; }
.banner p { max-width: 650px; font-size: 24px; line-height: 27.3px; }

/* Sign-up */
.signup { display: grid; grid-template-columns: minmax(0, 617px) minmax(0, 508px); justify-content: space-between; gap: 40px; margin-block: 12px 76px; }
.signup-form { margin-top: 8px; }
.signup h2 { margin-bottom: 30px; color: #000; font: 500 48px/49.5px var(--display); letter-spacing: 0.5px; }
.signup .lead { color: #000; }
.signup-form { display: flex; flex-direction: column; gap: 20px; padding: 40px; border: 1px solid rgba(var(--accent-rgb), 0.5); border-radius: 12px; background: rgba(var(--accent-rgb), 0.02); }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 3px; color: #000; font-size: 16px; line-height: 20.8px; }
.field-email label { justify-content: flex-start; gap: 12px; }
.field label small { color: var(--required); font-size: 12px; }
.field input { width: 100%; min-height: 37px; padding: 10px 20px; border: 1px solid var(--orange); border-radius: 4px; background: rgba(227, 229, 228, 0.2); color: var(--body); font: 15px/15px var(--text); }
.field input::placeholder { color: #767676; }
.consent { display: flex; align-items: center; gap: 12px; color: rgba(0, 0, 0, 0.65); font-size: 14px; line-height: 20.8px; }
.consent input { width: 12px; height: 12px; margin: 0; accent-color: var(--orange); }
.form-end { display: flex; flex-direction: column; gap: 9px; }
.form-submit { width: 100%; min-height: 37px; padding: 10px 20px; border: 1px solid var(--orange); border-radius: 4px; background: rgba(var(--accent-rgb), 0.5); color: #3d3d3d; font: 15px/15px var(--text); cursor: pointer; }
.form-submit:hover { background: var(--orange); }
.form-status { color: var(--required); font-size: 14px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); font-family: var(--ui); }
.footer-main { display: grid; grid-template-columns: minmax(0, 525px) minmax(0, 203px) 1fr; gap: 40px 70px; padding-block: 87px 121px; }
.footer-logo { display: inline-block; margin-bottom: 24px; }
.footer-logo img { width: 194px; height: auto; }
.footer-about p { font-size: 16px; line-height: 24px; }
.footer-about p + p { margin-top: 30px; }
.footer-col h3 { margin-bottom: 8px; color: #fff; font-size: 18px; font-weight: 700; line-height: 24px; text-transform: uppercase; }
.footer-col a { display: block; padding-block: 4px; font-size: 16px; line-height: 20.8px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 60px; color: #fff; font-size: 11px; font-weight: 300; line-height: 15.4px; }
.social { display: flex; gap: 24px; }
.social a { color: rgba(255, 255, 255, 0.6); font-size: 15px; }
.social a:hover { color: #fff; }

/* Generic pages and posts */
.content-page { padding-block: 60px; }
.content-page h1 { margin-bottom: 24px; color: var(--ink); font: 500 48px/1.2 var(--display); }
.content-page .entry { font-size: 18px; line-height: 1.6; }
.content-page .entry > * + * { margin-top: 1em; }

/* Responsive: the Figma file only defines the 1920px desktop frame. */
@media (max-width: 1100px) {
	.threat-grid { grid-template-columns: repeat(2, 1fr); }
	.signup { grid-template-columns: 1fr; }
	.footer-main { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
	.help-image { background-size: cover; }
}

@media (max-width: 900px) {
	.nav-toggle { display: block; order: 3; }
	.site-header .container { gap: 12px; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; background: var(--header-bg); border-top: 1px solid rgba(255, 255, 255, 0.2); }
	.main-nav.is-open { display: block; }
	.main-nav > ul { flex-direction: column; padding-block: 8px; }
	.submenu { position: static; display: block; min-width: 0; padding: 0 0 8px 16px; box-shadow: none; }
	.header-search { margin-left: auto; }
	.hero { min-height: 520px; }
	.hero h1 { font-size: 52px; line-height: 58px; }
	.help-grid, .news-grid { grid-template-columns: 1fr; }
	.threat-foot { flex-direction: column; }
}

@media (max-width: 600px) {
	.page-sections { gap: 56px; padding-top: 44px; }
	.hero h1 { font-size: 42px; line-height: 48px; }
	.hero p { font-size: 18px; }
	.btn-hero { font-size: 18px; }
	.section-title, .signup h2, .banner h2 { font-size: 34px; line-height: 1.2; }
	.lead, .banner p { font-size: 19px; line-height: 1.45; }
	.threat-card { height: 240px; padding: 14px; }
	.threat-card span { font-size: 16px; }
	.threat-grid { gap: 12px; }
	.btn-outline-row { width: 100%; padding: 18px 20px; font-size: 15px; }
	.help-image { height: 220px; }
	.help-body { padding: 24px; }
	.help-body h3 { font-size: 23px; }
	.signup-form { padding: 24px; }
	.field-row { grid-template-columns: 1fr; }
	.footer-main { grid-template-columns: 1fr; padding-top: 56px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; padding-block: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* Inner pages: built from the homepage styles and the Figma component frames */
.site-header .container { position: relative; }
.header-tools { position: relative; display: flex; }
.header-search { padding: 4px; border: 0; background: none; cursor: pointer; }
.header-search-form { position: absolute; right: 0; top: calc(100% + 24px); z-index: 25; display: flex; gap: 8px; width: 320px; padding: 12px; background: var(--header-bg); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.header-search-form[hidden] { display: none; }
.header-search-form input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--orange); border-radius: 4px; font: 15px var(--text); }
.header-search-form button { padding: 8px 14px; border: 0; border-radius: 4px; background: var(--orange); color: #1e1e1e; font: 15px var(--text); cursor: pointer; }

.page-hero { position: relative; display: flex; align-items: center; min-height: 380px; padding-block: 48px; background: var(--hero-image) var(--hero-pos, center) / cover no-repeat; color: #fff; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, #000, rgba(121, 119, 119, 0.62)); opacity: 0.82; }
.page-hero h1 { font: 500 74px/81.4px var(--display); letter-spacing: 0.5px; }
.page-lead { max-width: 620px; margin-top: 18px; font-size: 22px; line-height: 1.35; letter-spacing: 0.5px; }
.page-crumb { margin-bottom: 8px; color: var(--orange); font: 600 15px/20px var(--ui); text-transform: uppercase; }
.page-crumb a { text-decoration: none; }
.page-crumb a:hover { text-decoration: underline; }
.page-sections-inner { padding-top: 80px; }
.page-sections-inner > :last-child:not(.signup):not(.circle-row):not(.cta-band) { margin-bottom: 80px; }

.circle-row { padding-block: 20px 47px; background: var(--card-bg); }
.circle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; }
.circle-link { display: flex; flex-direction: column; align-items: center; gap: 26px; color: var(--body); font: 600 20px/20px var(--ui); text-align: center; text-decoration: none; }
.circle-link img { width: 100%; max-width: 237.5px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); transition: transform 0.2s ease; }
.circle-link:hover img { transform: scale(1.03); }
.circle-link:hover { color: var(--red); }

.work-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.work-row { display: grid; grid-template-columns: 200px 1fr; overflow: hidden; border-radius: 12px; background: var(--card-bg); }
.work-row img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.work-row > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; }
.work-row h3, .info-card h3, .action-card h3 { color: #000; font-size: 28px; font-weight: 400; line-height: 1.3; }
.work-row p, .info-card p, .action-card p { flex: 1; color: #000; font-size: 16.594px; line-height: 25.2px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: #231f20; font: 600 14px/20.8px var(--ui); text-decoration: none; }
.text-link:hover { color: var(--red); }
.text-link .icon { font-size: 11px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.prose { color: var(--body); font-size: 22px; line-height: 1.5; }
.prose > * + * { margin-top: 16px; }
.prose .section-title + p { margin-top: 12px; }
.prose p + .section-title { margin-top: 44px; }
.tint-band { padding-block: 70px; background: var(--card-bg); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.info-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 35px; border-radius: 12px; background: #fff; }
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; color: var(--news); }
.person-photo { aspect-ratio: 1; margin-bottom: 14px; border-radius: 8px; background: #e6e3df; }
.person h3 { color: #000; font-size: 22px; font-weight: 400; line-height: 1.3; }
.person p { color: var(--news-muted); font-size: 16px; }

.cta-band { position: relative; background: var(--hero-image) left top / cover no-repeat; color: #fff; }
.cta-band .container { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-block: 60px; }
.cta-band h2 { font: 500 48px/49.5px var(--display); letter-spacing: 0.5px; }
.cta-band p { max-width: 650px; font-size: 24px; line-height: 27.3px; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 508px); gap: 60px; padding-block: 80px; }
.contact-details dl { margin: 30px 0 0; }
.contact-details dt { margin-top: 22px; color: var(--ink); font: 600 16px/22px var(--ui); }
.contact-details dd { margin: 4px 0 0; color: var(--body); font-size: 22px; line-height: 1.4; }
.field textarea { width: 100%; padding: 10px 20px; border: 1px solid var(--orange); border-radius: 4px; background: rgba(227, 229, 228, 0.2); color: var(--body); font: 15px/1.4 var(--text); resize: vertical; }
.field textarea::placeholder { color: #767676; }

.topic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 60px; margin-bottom: 0; }
.action-card { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; padding: 35px; border-radius: 12px; background: var(--card-bg); }
.topic-layout + .circle-row { padding-top: 47px; }

.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { display: flex; flex-direction: column; border-bottom: 2px solid #000; background: #fff; }
.news-card > a { display: block; height: 178px; overflow: hidden; }
.news-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.news-card-image { display: flex; align-items: flex-end; height: 100%; padding: 16px 20px; background: var(--header-bg); color: var(--orange); font: 600 15px/20px var(--ui); text-transform: uppercase; }
.news-featured-media { display: block; height: 250px; overflow: hidden; }
.news-featured-media img { height: 100%; }
.news-item-media { flex: none; display: block; width: 90px; height: 70px; overflow: hidden; }
.news-item-media .news-card-image span { display: none; }
.news-item-media img { width: 100%; height: 100%; }
.sources { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(0, 0, 0, 0.15); font: 14px/21px var(--ui); }
.sources h2 { margin-bottom: 10px; color: var(--ink); font: 600 16px/22px var(--ui); }
.sources li + li { margin-top: 6px; }
.sources a, .inline-source { color: #5a4a3e; }
.inline-source { font-size: 16px; white-space: nowrap; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--red); }
.article .entry ul { padding-left: 22px; list-style: disc; }
.news-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 30px; }
.news-card h2 { color: #000; font: 600 18px/21.6px var(--ui); }
.news-card h2 a { text-decoration: none; }
.news-card h2 a:hover { color: var(--red); }
.news-card .card-meta, .article-meta { margin-top: 4px; color: #707070; font: 13px/16px var(--ui); }
.news-card .card-excerpt { flex: 1; margin-top: 14px; color: #636363; font: 16px/20.8px var(--ui); }
.news-card .text-link { margin-top: 18px; }
.pagination-wrap { margin-top: 40px; font: 16px var(--ui); }
.pagination-wrap .page-numbers { margin-right: 10px; }

.article { max-width: 760px; margin-inline: auto; padding-block: 60px 80px; }
.article h1 { color: var(--ink); font: 500 48px/1.2 var(--display); }
.article-meta { margin-top: 12px; font-size: 15px; }
.article-image { margin-top: 30px; width: 100%; border-radius: 8px; }
.article .entry { margin-top: 30px; font-size: 20px; line-height: 1.6; }
.article .entry > * + * { margin-top: 1em; }
.article .entry a { color: var(--red); }

.notice-page { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 100px; }
.notice-page h1 { color: var(--ink); font: 500 74px/81.4px var(--display); }
.search-form { display: flex; gap: 8px; width: min(100%, 520px); }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; min-height: 45px; padding: 10px 16px; border: 1px solid var(--orange); border-radius: 4px; font: 16px var(--text); }
.search-form .search-submit { padding: 10px 22px; border: 0; border-radius: 4px; background: var(--orange); color: #1e1e1e; font: 16px var(--text); cursor: pointer; }

@media (max-width: 1100px) {
	.work-list { grid-template-columns: 1fr; }
	.info-grid, .news-cards { grid-template-columns: repeat(2, 1fr); }
	.topic-layout, .contact-layout, .split { grid-template-columns: 1fr; }
	.action-card { position: static; }
}
@media (max-width: 900px) {
	.people-grid, .circle-grid { grid-template-columns: repeat(2, 1fr); }
	.page-hero h1, .notice-page h1 { font-size: 52px; line-height: 58px; }
}
@media (max-width: 600px) {
	.page-hero { min-height: 300px; }
	.page-hero h1, .notice-page h1 { font-size: 42px; line-height: 48px; }
	.page-lead { font-size: 18px; }
	.page-sections-inner { padding-top: 56px; }
	.page-sections-inner > :last-child:not(.signup):not(.circle-row):not(.cta-band) { margin-bottom: 56px; }
	.prose, .contact-details dd, .article .entry { font-size: 18px; }
	.cta-band h2, .article h1 { font-size: 34px; line-height: 1.2; }
	.cta-band p { font-size: 19px; line-height: 1.45; }
	.info-grid, .news-cards { grid-template-columns: 1fr; }
	.work-row { grid-template-columns: 1fr; }
	.work-row img { height: 200px; min-height: 0; }
	.circle-grid { gap: 28px 16px; }
	.circle-link { gap: 14px; font-size: 16px; }
	.tint-band { padding-block: 48px; }
	.info-card { padding: 24px; }
	.contact-layout { padding-block: 56px; }
	.header-search-form { width: calc(100vw - 32px); right: -60px; }
}

/* Contact us pop-up */
.signup-cta { display: flex; align-items: center; justify-content: flex-start; }
.signup-cta .btn-hero { border: 0; font-family: var(--text); cursor: pointer; }
.contact-modal { width: min(560px, 100% - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: auto; }
.contact-modal::backdrop { background: rgba(29, 19, 15, 0.65); }
.contact-modal .signup-form { margin: 0; border: 0; }
.contact-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.contact-modal-head h3 { margin: 0; color: #000; font: 500 32px/1.1 var(--display); }
.contact-close { padding: 0 4px; border: 0; background: none; color: #000; font-size: 34px; line-height: 1; cursor: pointer; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-error { color: var(--required); }
@media (max-width: 600px) { .contact-modal .signup-form { padding: 24px; } .contact-modal .field-row { grid-template-columns: 1fr; } }

/* Hero insect slideshow: 5 photos, 7s each, cross-fading */
.hero { background: #1d130f; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; animation: hero-fade 35s infinite; }
.hero-slide:nth-child(1), .hero-credits li:nth-child(1) { animation-delay: -1.4s; }
.hero-slide:nth-child(2), .hero-credits li:nth-child(2) { animation-delay: 5.6s; }
.hero-slide:nth-child(3), .hero-credits li:nth-child(3) { animation-delay: 12.6s; }
.hero-slide:nth-child(4), .hero-credits li:nth-child(4) { animation-delay: 19.6s; }
.hero-slide:nth-child(5), .hero-credits li:nth-child(5) { animation-delay: 26.6s; }
@keyframes hero-fade { 0% { opacity: 0; } 4% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; } 100% { opacity: 0; } }
.hero h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.1; }
.hero-copy { max-width: 760px; }
.hero-credits { position: absolute; right: 16px; bottom: 12px; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.75); font: 12px/1.4 var(--ui); text-align: right; }
.hero-credits li { position: absolute; right: 0; bottom: 0; white-space: nowrap; opacity: 0; animation: hero-fade 35s infinite; }
.hero-credits a { color: inherit; }
@media (max-width: 600px) { .hero-credits { font-size: 10px; } .hero-credits li { white-space: normal; width: 80vw; } }
@media (prefers-reduced-motion: reduce) {
	.hero-slide, .hero-credits li { animation: none; }
	.hero-slide:first-child, .hero-credits li:first-child { opacity: 1; }
}

/* Funding + contact banner in the footer */
.footer-funding { padding-block: 40px 32px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-funding-note { max-width: 820px; margin: 0 0 28px; color: #ffeb00; font: 400 clamp(22px, 2.6vw, 34px)/1.3 var(--text); }
.footer-contact h3 { margin: 0 0 6px; color: #fff; font: 400 20px/1.3 var(--text); }
.footer-contact p { margin: 0 0 12px; color: var(--footer-text); font-size: 14px; line-height: 1.5; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

/* Photo credits under the insect threat cards */
.threat-credits { margin-top: 12px; color: rgba(0, 0, 0, 0.55); font: 12px/1.5 var(--ui); }
.threat-card img { object-fit: cover; }

/* New logo (white background, so it sits on a white rounded badge in the dark header) */
.site-logo img { width: auto; height: 56px; padding: 4px 10px; border-radius: 8px; background: #fff; }
@media (max-width: 600px) { .site-logo img { height: 44px; } }

/* About page: research figures and five-card grid */
.about-intro { max-width: 860px; }
.about-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid rgba(var(--accent-rgb), 0.5); border-radius: 12px; background: rgba(var(--accent-rgb), 0.04); }
.stat strong { color: var(--orange); font: 500 56px/1 var(--display); }
.stat span { color: #000; font-size: 17px; line-height: 1.45; }

/* Invasive insects page: species list (names link to PDF fact sheets) */
.species-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin: 20px 0 40px; padding: 0; list-style: none; counter-reset: sp; }
.species-list li { display: block; position: relative; overflow: hidden; padding: 14px 16px; border: 1px solid rgba(var(--accent-rgb), 0.45); border-radius: 10px; background: rgba(var(--accent-rgb), 0.04); color: #000; font-size: 17px; line-height: 1.35; counter-increment: sp; }
.species-list li::before { content: counter(sp); display: inline-block; min-width: 22px; margin-right: 8px; color: var(--orange); font: 600 14px/1 var(--ui); }
.species-list a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.species-list a:hover { color: var(--red); }

/* How to help: insect photos on the two action cards */
.help-image.help-image-photo { background-position: center; background-size: cover; }

/* Research Team page */
.team-page { margin-top: 12px; }
.team-intro { max-width: 860px; margin: 0 0 40px; color: #000; font-size: 20px; line-height: 1.5; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 28px; margin-bottom: 60px; }
.team-card { display: flex; gap: 24px; padding: 28px; border-radius: 12px; background: var(--card-bg); }
.team-photo { flex: none; display: grid; place-items: center; width: 140px; height: 140px; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, #2f6b1f, #6bab2d) center / cover no-repeat; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.team-photo.has-photo .team-initials { display: none; }
.team-initials { color: #fff; font: 600 40px/1 var(--display); letter-spacing: 1px; }
.team-body h2 { margin: 0 0 6px; color: #000; font: 500 26px/1.2 var(--display); }
.team-role { margin: 0 0 14px; color: var(--orange); font: 600 14px/1.4 var(--ui); text-transform: uppercase; letter-spacing: 0.5px; }
.team-body p { margin: 0 0 14px; line-height: 1.55; }
.team-link { display: inline-flex; padding: 8px 18px; border-radius: 50px; background: var(--red); color: #fff; font: 600 13px/1.4 var(--ui); text-decoration: none; text-transform: uppercase; }
.team-link:hover { filter: brightness(0.92); }
@media (max-width: 640px) { .team-card { flex-direction: column; align-items: center; text-align: center; } }

/* "Prevention starts with you" banner: insect photos cross-fading every 5s */
.banner-insects { position: relative; overflow: hidden; isolation: isolate; background: #1d130f; }
.banner-insects::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35)); }
.banner-slides { position: absolute; inset: 0; z-index: -2; }
.banner-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; animation: banner-fade 25s infinite; }
.banner-slide:nth-child(1), .banner-credits li:nth-child(1) { animation-delay: -1.2s; }
.banner-slide:nth-child(2), .banner-credits li:nth-child(2) { animation-delay: 3.8s; }
.banner-slide:nth-child(3), .banner-credits li:nth-child(3) { animation-delay: 8.8s; }
.banner-slide:nth-child(4), .banner-credits li:nth-child(4) { animation-delay: 13.8s; }
.banner-slide:nth-child(5), .banner-credits li:nth-child(5) { animation-delay: 18.8s; }
@keyframes banner-fade { 0% { opacity: 0; } 4.8% { opacity: 1; } 20% { opacity: 1; } 24.8% { opacity: 0; } 100% { opacity: 0; } }
.banner-insects .container { padding-block: 80px; }
.banner-source { color: rgba(255, 255, 255, 0.75); font: 13px/1.4 var(--ui); white-space: nowrap; }
.banner-credits { position: absolute; right: 16px; bottom: 12px; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.75); font: 12px/1.4 var(--ui); text-align: right; }
.banner-credits li { position: absolute; right: 0; bottom: 0; white-space: nowrap; opacity: 0; animation: banner-fade 25s infinite; }
.banner-credits a { color: inherit; }
@media (max-width: 600px) { .banner-credits { font-size: 10px; } .banner-credits li { white-space: normal; width: 80vw; } .banner-source { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .banner-slide, .banner-credits li { animation: none; } .banner-slide:first-child, .banner-credits li:first-child { opacity: 1; } }

/* Species list with photos taken from each fact sheet */
.species-list { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.species-list li { padding: 0; background: #fff; }
.species-list li::before { position: absolute; top: 8px; left: 8px; z-index: 1; display: grid; place-items: center; min-width: 26px; height: 26px; margin: 0; padding: 0 6px; border-radius: 13px; background: rgba(255, 255, 255, 0.92); }
.species-list a, .species-static { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.species-list img, .species-noimg { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f1efe9; }
.species-name { display: block; padding: 12px 14px 14px; color: #000; font-size: 16px; line-height: 1.35; }
.species-list a .species-name em { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.species-list a:hover img { filter: brightness(0.92); }
.species-list a:hover .species-name { color: var(--red); }

/* Distribution maps page */
.maps-page { margin-bottom: 60px; }
.maps-intro { max-width: 860px; margin: 0 0 18px; color: #000; font-size: 19px; line-height: 1.5; }
.maps-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 12px; padding: 0; list-style: none; font: 14px/1.4 var(--ui); }
.maps-legend li { display: flex; align-items: center; gap: 8px; }
.maps-legend span { width: 18px; height: 14px; border: 1px solid #555; }
.maps-legend em { color: #666; }
.maps-note { max-width: 860px; margin: 0 0 30px; padding: 12px 16px; border-left: 4px solid var(--orange); background: rgba(var(--accent-rgb), 0.06); font-size: 15px; font-style: italic; }
.maps-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-bottom: 40px; padding: 24px; border-radius: 12px; background: var(--card-bg); }
.maps-toc h2 { margin: 0 0 10px; font: 500 22px/1.2 var(--display); }
.maps-toc h2 a { color: #000; text-decoration: none; }
.maps-toc ul { margin: 0; padding: 0; list-style: none; columns: 2 180px; column-gap: 20px; font-size: 15px; line-height: 1.7; }
.maps-toc li a { color: inherit; text-decoration-color: var(--orange); }
.maps-group { margin-bottom: 50px; scroll-margin-top: 90px; }
.maps-group-title { margin: 0 0 20px; color: #000; font: 500 32px/1.2 var(--display); }
.maps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 24px; }
.map-card { margin: 0; padding: 16px; border: 1px solid rgba(var(--accent-rgb), 0.45); border-radius: 12px; background: #fff; scroll-margin-top: 90px; }
.map-card figcaption { margin-bottom: 10px; color: #000; font-size: 18px; }
.map-card img { display: block; width: 100%; height: auto; }
.map-pdf { display: inline-block; margin-top: 10px; color: var(--red); font: 600 13px/1.4 var(--ui); text-transform: uppercase; }
.map-card-empty p { margin: 0; color: #777; }

/* Risk scores page: sortable FinnPRIO table */
.risk-page { margin-bottom: 60px; }
.risk-intro { max-width: 900px; margin: 0 0 24px; color: #000; font-size: 18px; line-height: 1.5; }
.pdf-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--red); color: #fff; font: 700 10px/1.5 var(--ui); font-style: normal; letter-spacing: 0.5px; vertical-align: middle; }
.risk-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; margin-bottom: 12px; padding: 18px 20px; border-radius: 12px; background: var(--card-bg); font: 14px/1.4 var(--ui); }
.risk-field { display: flex; flex-direction: column; gap: 6px; }
.risk-field span { font-weight: 600; }
.risk-field input, .risk-field select { min-width: 200px; min-height: 38px; padding: 6px 10px; border: 1px solid #bbb; border-radius: 6px; font: inherit; background: #fff; }
.risk-check { display: flex; align-items: center; gap: 8px; min-height: 38px; cursor: pointer; }
.risk-download { margin-left: auto; padding: 9px 16px; border-radius: 50px; background: var(--orange); color: #fff; font-weight: 600; text-decoration: none; }
.risk-download:hover { filter: brightness(0.92); }
.risk-count { margin: 0 0 8px; color: #555; font: 13px/1.4 var(--ui); }
.risk-table-wrap { max-height: 75vh; overflow: auto; border: 1px solid #e3ded4; border-radius: 10px; }
.risk-table { width: 100%; border-collapse: collapse; font: 14px/1.35 var(--ui); }
.risk-table th { position: sticky; top: 0; z-index: 1; padding: 0; background: var(--header-bg); color: #fff; text-align: left; white-space: nowrap; }
.risk-table th button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 10px; border: 0; background: none; color: inherit; font: 600 13px/1.2 var(--ui); cursor: pointer; text-align: inherit; }
.risk-table th.num button { justify-content: flex-end; }
.risk-table th:hover { background: #3d352d; }
.sort-ind::after { content: "↕"; opacity: 0.4; }
th[aria-sort="ascending"] .sort-ind::after { content: "▲"; opacity: 1; color: var(--orange); }
th[aria-sort="descending"] .sort-ind::after { content: "▼"; opacity: 1; color: var(--orange); }
.risk-table td { padding: 9px 10px; border-bottom: 1px solid #eee8dd; vertical-align: top; }
.risk-table tbody tr:nth-child(even) { background: #fbfaf7; }
.risk-table tbody tr:hover { background: rgba(var(--accent-rgb), 0.08); }
.risk-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.risk-table td.sp { min-width: 240px; }
.risk-table td.sp a { color: inherit; text-decoration: none; }
.risk-table td.sp a:hover em { text-decoration: underline; text-decoration-color: var(--orange); }
.risk-table small { display: block; color: #888; font-size: 11px; }
.risk-table td.risk { min-width: 150px; font-weight: 700; }
.bar { display: inline-block; width: 70px; height: 8px; margin-right: 8px; overflow: hidden; border-radius: 4px; background: #eee; vertical-align: middle; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, #f7c81e, var(--orange), var(--red)); }
.status { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; white-space: nowrap; }
.status.q { background: rgba(217, 48, 40, 0.12); color: #a31d17; }
.status.nq { background: #eef3e8; color: #3e6b1f; }
.status.na { color: #999; }
.risk-help { max-width: 900px; margin-top: 24px; padding: 16px 20px; border-radius: 10px; background: var(--card-bg); }
.risk-help summary { font-weight: 600; cursor: pointer; }
.risk-help ul { margin: 12px 0 0; padding-left: 20px; line-height: 1.6; }
@media (max-width: 700px) { .risk-download { margin-left: 0; } .risk-field input, .risk-field select { min-width: 0; width: 100%; } .risk-field { width: 100%; } }

/* Contact page: named contact with photo */
.contact-person { display: flex; gap: 22px; margin: 22px 0; padding: 24px; border-radius: 12px; background: var(--card-bg); }
.contact-person h3 { margin: 0 0 6px; color: #000; font: 500 24px/1.2 var(--display); }
.contact-person .team-body p { font-size: 15px; }
.contact-info { margin: 0 0 22px; padding: 20px 24px; border-left: 4px solid var(--orange); background: rgba(var(--accent-rgb), 0.05); }
.contact-info h3 { margin: 0 0 10px; color: #000; font: 500 22px/1.2 var(--display); }
.contact-info p { margin: 0 0 8px; line-height: 1.5; }
.contact-info a { color: inherit; }
@media (max-width: 640px) { .contact-person { flex-direction: column; align-items: center; text-align: center; } }

/* Colour themes: one is picked at random for each visit (see functions.php). "classic" uses the :root colours above. */
html[data-theme="forest"] { --orange: #6db33f; --accent-rgb: 109, 179, 63; --red: #2e7d32; --header-bg: #1e2b1a; --footer-bg: #131c10; --ink: #131c10; }
html[data-theme="ocean"] { --orange: #2a9df4; --accent-rgb: 42, 157, 244; --red: #0d5ea8; --header-bg: #14273a; --footer-bg: #0b1826; --ink: #0b1826; }
html[data-theme="berry"] { --orange: #e0457b; --accent-rgb: 224, 69, 123; --red: #9c1c4f; --header-bg: #2b1824; --footer-bg: #1a0e16; --ink: #1a0e16; }

/* Publications page */
.pubs-page { max-width: 900px; margin-bottom: 60px; }
.pubs-intro { margin: 0 0 24px; color: #000; font-size: 19px; line-height: 1.5; }
.pubs-empty { padding: 22px 26px; border-left: 4px solid var(--orange); border-radius: 8px; background: rgba(var(--accent-rgb), 0.06); }
.pubs-empty p { margin: 0 0 8px; line-height: 1.55; }
.pubs-empty p:last-child { margin-bottom: 0; }
.pubs-empty a { color: inherit; text-decoration-color: var(--orange); }
.pubs-list { margin: 0; padding: 0; list-style: none; }
.pubs-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid #eee8dd; line-height: 1.55; }
.pubs-list a { color: var(--red); font: 600 13px/1.4 var(--ui); text-transform: uppercase; }
.pubs-heading { margin: 34px 0 6px; color: #000; font: 500 28px/1.2 var(--display); }
.pub-year { flex: none; align-self: flex-start; min-width: 56px; padding: 4px 0; border-radius: 6px; background: rgba(var(--accent-rgb), 0.12); color: var(--red); font: 700 14px/1.4 var(--ui); text-align: center; }
.pub-body p { margin: 0 0 6px; }
.pubs-note { margin-top: 24px; color: #555; font-size: 15px; }
.pubs-note a { color: inherit; text-decoration-color: var(--orange); }

/* TÜBİTAK funding note: slim strip above the header, text in the top-right corner */
.funding-strip { background: var(--footer-bg); color: #ffeb00; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.funding-strip .container { display: flex; justify-content: center; }
.funding-strip p { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 0; font: 500 12.5px/1.4 var(--ui); text-align: center; }
.funding-badge { flex: none; padding: 1px 7px; border-radius: 4px; background: #e30a17; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; }
@media (max-width: 600px) { .funding-strip .container { justify-content: center; } .funding-strip p { font-size: 11px; text-align: center; } .funding-badge { display: none; } }

/* ===== Livelier site ===== */
/* Sticky header that gains a shadow once you scroll */
.site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); transition: box-shadow 0.3s ease; }
.is-scrolled .site-header { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28); }
@media (max-width: 600px) { .site-header { top: 0; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Section titles get an animated accent underline */
.section-title { position: relative; }
.section-head .section-title::after, .maps-group-title::after, .pubs-heading::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--orange), var(--red)); transition: width 0.6s ease; }
.section-head:hover .section-title::after { width: 120px; }

/* Hover lift on cards, gentle zoom on photos */
.threat-card, .help-card, .info-card, .team-card, .species-list li, .map-card, .stat, .contact-person { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.threat-card:hover, .help-card:hover, .info-card:hover, .team-card:hover, .species-list li:hover, .map-card:hover, .stat:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14); }
.threat-card img, .species-list img, .help-image { transition: transform 0.6s ease; }
.threat-card { overflow: hidden; }
.threat-card:hover img, .species-list li:hover img { transform: scale(1.06); }
.help-card { overflow: hidden; }
.help-card:hover .help-image { transform: scale(1.04); }
.btn { transition: filter 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); }

/* Project-at-a-glance strip with count-up numbers */
.live-stats { position: relative; overflow: hidden; padding: 46px 0 50px; background: linear-gradient(120deg, var(--header-bg), var(--footer-bg)); color: #fff; }
.live-stats::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 20% 30%, rgba(var(--accent-rgb), 0.28), transparent 40%), radial-gradient(circle at 80% 70%, rgba(var(--accent-rgb), 0.18), transparent 45%); animation: live-glow 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes live-glow { from { transform: translate(-4%, -3%) rotate(0deg); } to { transform: translate(4%, 3%) rotate(8deg); } }
.live-stats .container { position: relative; }
.live-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50px; font: 600 13px/1.3 var(--ui); letter-spacing: 0.3px; }
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ddc84; animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(3); opacity: 0; } }
.live-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.live-stat { padding-left: 18px; border-left: 3px solid var(--orange); }
.live-stat strong { display: block; color: var(--orange); font: 500 clamp(40px, 5vw, 62px)/1 var(--display); font-variant-numeric: tabular-nums; }
.live-stat span { display: block; margin-top: 8px; color: rgba(255, 255, 255, 0.85); font-size: 16px; line-height: 1.35; }
@media (max-width: 800px) { .live-stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Species spotlight */
.spotlight-wrap { padding: 70px 0 20px; }
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; border-radius: 16px; background: var(--card-bg); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1); }
.spot-photo { position: relative; min-height: 380px; overflow: hidden; background: #111; }
.spot-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: spot-kenburns 7s ease-out both; }
@keyframes spot-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.spot-body { display: flex; flex-direction: column; gap: 14px; padding: 30px 32px; }
.spot-group { align-self: flex-start; padding: 4px 12px; border-radius: 50px; background: rgba(217, 48, 40, 0.12); color: #a31d17; font: 700 12px/1.4 var(--ui); text-transform: uppercase; letter-spacing: 0.5px; }
.spot-group.is-limited { background: rgba(var(--accent-rgb), 0.16); color: #6a4100; }
html[data-theme] .spot-group.is-limited { color: #333; }
.spot-name { margin: 0; color: #000; font: 500 clamp(26px, 3vw, 34px)/1.15 var(--display); }
.spot-map { margin: 0; padding: 8px; border-radius: 10px; background: #fff; }
.spot-map img { display: block; width: 100%; height: auto; }
.spot-map figcaption { margin-top: 6px; color: #666; font: 12px/1.3 var(--ui); }
.spot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.spot-actions .btn-card { width: auto; }
.spot-maplink { color: var(--red); font: 600 14px/1.3 var(--ui); }
.spot-next { margin-left: auto; padding: 8px 16px; border: 2px solid var(--orange); border-radius: 50px; background: none; color: #000; font: 600 13px/1.3 var(--ui); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.spot-next:hover { background: var(--orange); color: #fff; }
.spot-progress { height: 4px; overflow: hidden; border-radius: 2px; background: rgba(0, 0, 0, 0.08); }
.spot-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--orange), var(--red)); }
.spotlight.is-paused .spot-progress span { opacity: 0.4; }
.spot-photo img, .spot-name, .spot-map img, .spot-group { transition: opacity 0.28s ease; }
.spotlight.is-changing .spot-photo img, .spotlight.is-changing .spot-name, .spotlight.is-changing .spot-map img, .spotlight.is-changing .spot-group { opacity: 0; }
@media (max-width: 820px) { .spotlight { grid-template-columns: 1fr; } .spot-photo { min-height: 260px; } .spot-body { padding: 22px; } .spot-next { margin-left: 0; } }

/* Back-to-top button */
.back-to-top { position: fixed; right: 20px; bottom: 80px; z-index: 50; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--red); color: #fff; font-size: 22px; line-height: 1; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { filter: brightness(1.1); }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.live-stats::before, .live-dot::after, .spot-photo img { animation: none; }
	.threat-card:hover, .help-card:hover, .info-card:hover, .team-card:hover, .species-list li:hover, .map-card:hover, .stat:hover, .btn:hover { transform: none; }
}

/* Life-stage and damage photos (species cards + gallery pop-up) */
.species-list li { display: flex; flex-direction: column; }
.species-list li > a { flex: 1; }
.life-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 14px 14px; padding: 6px 12px; border: 1px solid rgba(var(--accent-rgb), 0.6); border-radius: 50px; background: rgba(var(--accent-rgb), 0.08); color: #000; font: 600 12px/1.3 var(--ui); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.life-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.life-modal { width: min(1100px, 100% - 32px); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); overflow: auto; }
.life-modal::backdrop { background: rgba(15, 12, 10, 0.72); }
.life-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #eee; background: #fff; }
.life-head h3 { margin: 0; color: #000; font: 500 26px/1.2 var(--display); }
.life-close { border: 0; background: none; color: #000; font-size: 34px; line-height: 1; cursor: pointer; }
.life-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 22px 24px 8px; }
.life-fig { position: relative; margin: 0; overflow: hidden; border-radius: 10px; background: var(--card-bg); }
.life-fig img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.5s ease; }
.life-fig a:hover img { transform: scale(1.04); }
.life-stage { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; border-radius: 50px; background: rgba(0, 0, 0, 0.72); color: #fff; font: 700 12px/1.3 var(--ui); letter-spacing: 0.3px; text-transform: uppercase; }
.life-stage.life-damage { background: rgba(217, 48, 40, 0.92); }
.life-stage.life-pupa { background: rgba(120, 72, 20, 0.9); }
.life-stage.life-nymph { background: rgba(30, 110, 60, 0.9); }
.life-fig figcaption { padding: 10px 12px 12px; color: #555; font: 12px/1.45 var(--ui); }
.life-fig figcaption a { color: inherit; }
.life-note { margin: 0; padding: 8px 24px 22px; color: #666; font: 12.5px/1.5 var(--ui); }
@media (max-width: 600px) { .life-grid { grid-template-columns: 1fr; padding: 16px; } .life-head { padding: 14px 16px; } .life-head h3 { font-size: 20px; } }

/* Homepage banner as a slider: photos slide sideways with a slow zoom, arrows, dots and a caption per photo */
.hero.has-slider .hero-slide { animation: none; opacity: 1; transform: translateX(100%); transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); background-size: cover; }
.hero.has-slider .hero-slide.is-active { transform: translateX(0); animation: hero-zoom 7s ease-out both; }
.hero.has-slider .hero-slide.is-prev { transform: translateX(-100%); }
.hero.has-slider .hero-slide.is-next { transform: translateX(100%); }
.hero.has-slider .hero-slide.no-anim { transition: none; }
@keyframes hero-zoom { from { background-size: 112% auto; } to { background-size: 100% auto; } }
@supports (scale: 1) { @keyframes hero-zoom { from { scale: 1.08; } to { scale: 1; } } .hero.has-slider .hero-slide.is-active { background-size: cover; } }
.hero.has-slider .hero-credits li { animation: none; opacity: 0; transition: opacity 0.5s ease; }
.hero.has-slider .hero-credits li.is-active { opacity: 1; }
.hero-nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 20px; cursor: pointer; backdrop-filter: blur(4px); transition: background 0.2s ease, transform 0.2s ease; }
.hero-nav:hover { background: var(--orange); transform: scale(1.08); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots { position: absolute; left: 50%; bottom: 22px; z-index: 3; display: flex; gap: 10px; transform: translateX(-50%); }
.hero-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; transition: width 0.3s ease, background 0.3s ease; }
.hero-dots button.is-active { width: 34px; border-radius: 6px; background: var(--orange); border-color: var(--orange); }
.hero-caption { position: absolute; right: 18px; bottom: 54px; z-index: 3; margin: 0; padding: 8px 14px; border-left: 4px solid var(--orange); border-radius: 4px; background: rgba(0, 0, 0, 0.55); color: #fff; font: 600 14px/1.35 var(--ui); backdrop-filter: blur(4px); }
.hero-caption em { display: block; color: rgba(255, 255, 255, 0.8); font-weight: 400; }
@media (max-width: 700px) { .hero-nav { width: 40px; height: 40px; margin-top: -20px; font-size: 16px; } .hero-prev { left: 8px; } .hero-next { right: 8px; } .hero-caption { right: 8px; bottom: 48px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .hero.has-slider .hero-slide { transition: none; } .hero.has-slider .hero-slide.is-active { animation: none; } }

/* Slider arrows sit at the bottom, either side of the dots, so they never cover the headline */
.hero.has-slider .hero-nav { top: auto; bottom: 44px; width: 40px; height: 40px; margin-top: 0; font-size: 16px; }
.hero.has-slider .hero-prev { left: calc(50% - 130px); }
.hero.has-slider .hero-next { right: calc(50% - 130px); left: auto; }
.hero.has-slider .hero-dots { bottom: 58px; }
@media (max-width: 700px) { .hero.has-slider .hero-caption { bottom: 96px; } }

/* Title banner above the photo slider, so the photos are not covered by text */
.hero-title-band { position: relative; overflow: hidden; padding: 38px 0 34px; background: linear-gradient(115deg, var(--header-bg), var(--footer-bg)); color: #fff; }
.hero-title-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.28), transparent 70%); pointer-events: none; }
.hero-title-band .container { position: relative; z-index: 1; }
.hero-band-copy { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; max-width: none; }
.hero-band-copy h1 { flex: 1 1 420px; max-width: 900px; margin: 0; font: 500 clamp(30px, 3.6vw, 48px)/1.15 var(--display); letter-spacing: 0.3px; }
.hero-band-copy h1 span { color: var(--orange); }
.hero-band-copy .btn-hero { flex: none; }
/* Photos now show clearly: no dark wash over them, only a soft fade at the bottom for the caption and dots */
.hero { min-height: clamp(360px, 52vw, 600px); }
.hero::before { background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 32%); opacity: 1; }
@media (max-width: 700px) { .hero-title-band { padding: 26px 0 24px; } .hero-band-copy .btn-hero { font-size: 16px; } }

/* Compact title banner + slider so both fit on smaller screens */
.hero-title-band { padding: 20px 0 18px; }
.hero-band-copy { gap: 12px 28px; }
.hero-band-copy h1 { font-size: clamp(21px, 2.5vw, 34px); line-height: 1.2; }
.hero-band-copy .btn-hero { padding: 11px 16px; font-size: 16px; }
.hero { min-height: clamp(230px, 36vw, 430px); }
.hero.has-slider .hero-nav { bottom: 30px; width: 34px; height: 34px; font-size: 14px; }
.hero.has-slider .hero-dots { bottom: 41px; }
.hero-caption { bottom: 40px; padding: 6px 12px; font-size: 13px; }
@media (max-width: 700px) {
	.hero-title-band { padding: 14px 0 14px; }
	.hero-band-copy h1 { font-size: 20px; }
	.hero-band-copy .btn-hero { padding: 9px 14px; font-size: 14px; }
	.hero { min-height: 230px; }
	.hero.has-slider .hero-caption { bottom: 74px; font-size: 11px; }
	.hero-credits { font-size: 9px; }
}


/* Team banner (replaces Prevention banner) */
.team-banner { background: var(--header-bg, #1d130f); background-image: linear-gradient(135deg, rgba(0,0,0,0.25), rgba(var(--accent-rgb, 230,90,40),0.28)); color: #fff; }
.team-banner .container { align-items: center; text-align: center; gap: 22px; padding-block: 56px; }
.team-banner h2 { max-width: none; margin-bottom: 0; }
.team-banner .team-banner-lede { font-size: 19px; line-height: 1.4; max-width: 640px; opacity: 0.9; }
.team-banner-grid { list-style: none; margin: 8px 0 4px; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.team-banner-card { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.team-banner-photo { width: 150px; height: 150px; border-radius: 50%; background-size: cover; background-repeat: no-repeat; border: 4px solid rgba(255,255,255,0.9); box-shadow: 0 10px 24px rgba(0,0,0,0.35); margin-bottom: 12px; transition: transform .3s ease; }
.team-banner-card:hover .team-banner-photo { transform: translateY(-4px) scale(1.03); }
.team-banner-card strong { font-size: 17px; line-height: 1.3; }
.team-banner-role { font-size: 14px; color: var(--orange, #f39c4a); font-weight: 600; }
.team-banner-uni { font-size: 14px; opacity: 0.85; }
@media (max-width: 900px) { .team-banner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team-banner-photo { width: 110px; height: 110px; } .team-banner-grid { gap: 20px 12px; } .team-banner-card strong { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .team-banner-photo { transition: none; } }


/* Project aims (replaces homepage How to help) + language-specific blocks */
[data-lang-tr] { display: none !important; }
html[data-site-tr] [data-lang-tr] { display: inline !important; }
html[data-site-tr] a[data-lang-tr] { display: block !important; }
html[data-site-tr] [data-lang-en] { display: none !important; }
.aims-figure { margin: 8px 0 0; }
.aims-figure a { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.14); transition: transform .3s ease, box-shadow .3s ease; }
.aims-figure a:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.18); }
.aims-figure img { display: block; width: 100%; height: auto; }
.aims-figure figcaption { margin-top: 10px; font-size: 14px; opacity: 0.7; text-align: center; }
@media (prefers-reduced-motion: reduce) { .aims-figure a { transition: none; } }

/* TÜBİTAK links in funding notes */
.funding-strip a, .footer-funding-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Taller homepage slider so photos show more of themselves (slides also pan slowly - see site.js) */
.hero.has-slider { min-height: clamp(340px, min(52vw, calc(100vh - 275px)), 820px) !important; }

/* Homepage slider: whole photo always visible, no zoom or pan, slower slide change */
.hero.has-slider { background: #15110e; }
.hero.has-slider .hero-slide { background-size: contain !important; background-position: center !important; background-repeat: no-repeat !important; background-color: #15110e; }
.hero.has-slider .hero-slide.is-active { animation: none !important; }
.hero.has-slider .hero-slide { transition-duration: 0.6s !important; }
