/* 
 Theme Name:     HRMY
 Author:         WTF Marketing Collective Oy
 Author URI:     https://welltoldfacts.wtf
 Version:        99.0 
*/

:root {
	/*FONTS*/
	--bs-body-font-family: "Open Sans", sans-serif;
	--bs-headline-font-family: "Fraunces", sans-serif;
	--bs-body-line-height: 1.6;

	/*COLORS*/
	--bs-body-color: #FAF5F5;
	--bs-body-bg: #122838;
	--bs-heading-color: #FAF5F5;
	--bs-body-font-size: 17px;
	--bs-body-font-weight: 400;
	--bs-link-color-rgb: #FAF5F5;
	--light-bg: #F5F6F7;
	--darkgreen: #196600;
	--orange: #FF5632;
	--lightblue: #C8E4F2;
	--green: #B2FF99;
	--red: #F4AEA4;
	--hrmy-accent: #FF5632;

	/*BORDER-RADIUS*/
	--bs-border-radius: 8px;
	--bs-border-radius-sm: 4px;
	--bs-border-radius-lg: 8px;

	/*CONTAINER*/
	--container-width: 1370px;
}

#moove_gdpr_cookie_info_bar.moove-gdpr-dark-scheme {
	background-color:#0c1c27 !important;
}

/* Otsikko tummaksi */
.benefit-gallery__title {
	color: #0f2833;
}

.benefit-gallery .row {
	--bs-gutter-x: 1rem;
	/* vaakaväli */
	--bs-gutter-y: 1rem;
	/* pystysuuntainen väli */
}

/* Kaikille thumbsille sama koko ja pyöristetyt kulmat */
.benefit-gallery .thumb-wrap {
	aspect-ratio: 4/3;
	/* vaihda esim. 3/2 tai 1/1 jos haluat neliöt */
	width: 100%;
	overflow: hidden;
	border-radius: .5rem;
	background: #e9eef1;
	/* pieni tausta varalta */
}

.benefit-gallery .thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* leikkaa keskeltä → yhtenäinen ruudukko */
	display: block;
}

/* Kevyt lightbox */
.hrmy-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(10, 20, 25, .92);
	display: none;
	align-items: center;
	justify-content: center;
}

.hrmy-lightbox.is-open {
	display: flex;
}

.hrmy-lightbox__img {
	max-width: 92vw;
	max-height: 92vh;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
	border-radius: .5rem;
	background: #0a1419;
}

.hero-caption {
	background:#122532;
	color:#aaa;
	font-size:12px;
	padding:10px;
	position:absolute;
	left:0;
	bottom:0;
	right:0;
	text-align:center;
}

.hrmy-lightbox__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 28px;
	line-height: 1;
	color: #fff;
	border: 0;
	background: transparent;
	padding: .5rem .75rem;
	cursor: pointer;
	opacity: .85;
}

.hrmy-lightbox__btn:hover {
	opacity: 1;
}

.hrmy-lightbox__prev {
	left: 16px;
}

.hrmy-lightbox__next {
	right: 16px;
}

.hrmy-lightbox__close {
	position: absolute;
	top: 14px;
	right: 16px;
	font-size: 28px;
	cursor: pointer;
	opacity: .9;
}

@media (hover:none) {
	.hrmy-lightbox__btn {
		font-size: 34px;
	}
}


img {
	max-width: 100%;
	height: auto;
}

.row.big-gutter {
	--bs-gutter-x: 100px;
}

.row {
	--bs-gutter-x: 60px;
}

.bg-lightblue {
	background: var(--lightblue);
	padding: 30px;
}

.bg-lightblue p,
.bg-lightblue li {
	color: var(--bs-body-bg);
}

.bg-white p,
.bg-white a {
	color: var(--bs-body-bg);
}

/* Sama hero-tyyli kuin klubi-sivulla */
.klubi-hero {
	position: relative;
	overflow: hidden;
}

.klubi-content table {
	width:100%;
	font-size:14px;
}

.klubi-content h2,
.klubi-content h3 {
	padding-top:40px;
	margin-bottom:20px;
	padding-bottom:0;
}

.klubi-content a {
	color:var(--hrmy-accent);
}

.klubi-hero-img {
	width: 100%;
	height: var(--hero-h, 500px);
	object-fit: cover;
	display: block;
	border-radius: 0px;
}

.hero-dim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .25);
}

/* INFORMAATIO CSS */

.post-content .accordion-item h3 {
	margin-top: 0;
}

.accordion-header {
	padding-bottom: 0 !important;
}

/* MENU */

.desktop-menu-container .sub-menu {
	opacity: 0;
	pointer-events: none;
	position: absolute;
	background: var(--hrmy-accent);
	width: 250px;
	list-style-type: none;
	padding: 5px 20px;
	border-radius: 0;
	left: -23px;
	top: auto;
	-webkit-transition: all 100ms ease-in-out;
	-moz-transition: all 100ms ease-in-out;
	-o-transition: all 100ms ease-in-out;
	transition: all 100ms ease-in-out;
}

.desktop-menu-container .sub-menu a {
	padding: 3px 0 !important;
	margin: 14px 0 !important;
	color: #FFF;
	opacity: 1;
	font-weight: 600;
	font-size: 14px;
	display: block;
}

.desktop-menu-container .sub-menu a:hover::after {
	display: none;
}

.desktop-menu-container .sub-menu a:hover {
	opacity: 1;
	padding-left: 5px !important;
}

.desktop-menu-container li.menu-item:hover .sub-menu {
	opacity: 1;
	position: absolute;
	pointer-events: auto;
}

.desktop-menu-container ul li {
	display: inline-block;
	position: relative;
}

.desktop-menu-container ul.sub-menu li {
	display: block;
	margin-left: 0;
}

/* JÄSENLEHTI */

.jasenlehti-box {
	background:#122532;
	padding:30px;
}

.jasenlehti-box ul {
	padding-left:20px;
	font-size:15px;
	padding-top:20px;
}

.jasenlehti-box ul li {
	padding-bottom:10px;
	line-height:1.3;
}

.accordion-button.collapsed::after {
	filter:invert(1) brightness(1);
}

/* PAGE */

#pagehero h1 {
	padding-top: 40px;
}

.post-content table {
	width: 100%;
}

#jasenetu-container .hinta-table td {
	color:#FFF;
}

#jasenetu-container .hinta-table th {
	color:var(--hrmy-accent);
}

.klubi-aside {
	background: var(--lightblue);
}

.klubi-aside h4 {
	color: var(--bs-body-bg);
}

.post-content h2 {
	color: var(--hrmy-accent);
	font-size:40px;
	margin-top:30px;
}

.post-content li a {
	text-decoration: none;
}

.post-content h3,
.post-content h2 {
	margin-top: 50px;
	padding-bottom: 15px;
}

.wp-block-buttons {
	margin-top: 40px;
}

/* TAPAHTUMAKALENTERI */

.fc-theme-standard .fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th {
	border: 0px solid var(--fc-border-color);
}

/* ==== List/Grid layout ==== */
.hrmy-events-front__grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 48px;
	align-items: start;
	grid-template-areas: "list cal";
}

.hrmy-events-front__calendar {
	padding: 30px 20px 30px 20px;
}

.hrmy-event-card {
	padding: 24px 0;
	border-bottom: 1px solid #E6E6E6;
}

.hrmy-event-card__cols {
	display: grid;
	grid-template-columns: 1fr 70px;
	gap: 20px;
	align-items: flex-start;
}

.hrmy-event-card__meta {
	display: flex;
	gap: 16px;
	font-size: 12px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #6B7280;
}

.hrmy-event-card__title {
	margin: 10px 0 10px;
	font-size: 19px;
	line-height: 1.3;
	font-weight: 500;
}

.hrmy-event-card__title a {
	transition: all 250ms ease-in-out;
	display: inline-block;
}

.hrmy-event-card__title a:hover {
	margin-left: 4px;
}

i[class*="fa-"] {
	display: inline-block;
	/* jotta width toimii */
	width: 1.25em;
	/* sama kuin fa-fw */
	min-width: 1.25em;
}

.hrmy-event-card__city i,
.hrmy-event-card__date i {
	margin-right: 3px;
}

.hrmy-event-card__more:hover {
	text-decoration: none;
}

.hrmy-event-card__more i {
	transition: all 200ms ease-in-out;
	margin-left: 3px;
}

.hrmy-event-card__more:hover i {
	margin-left: 7px;
}

.hrmy-event-card__title a {
	text-decoration: none;
	color: inherit;
}

.hrmy-event-card__excerpt {
	color: #374151;
	margin-bottom: 10px;
	font-size: 13px;
}

.hrmy-event-card__more {
	display: inline-block;
	font-weight: 600;
	color: #E4572E;
	text-decoration: none;
	margin-top: 6px;
	font-size: 14px;
	position: Absolute;
	bottom: 20px;
}

/* Right column: category block */
.hrmy-event-card__side {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	justify-content: center;
}

.hrmy-event-card__iconwrap {
	width: 56px;
	height: 56px;
}

.hrmy-event-card__icon {
	width: 56px;
	height: 56px;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
	/* crisp */
}

.hrmy-event-card__catname {
	font-size: 10px;
	letter-spacing: 0;
	line-height: 1.1;
	padding-top: 5px;
	text-transform: uppercase;
	font-weight: 600;
}

.hrmy-event-card__badge {
	background: #E5E7EB;
	color: #111827;
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 6px;
	font-weight: 700;
	margin-top: 2px;
}

/* ==== Mini Calendar (FullCalendar) ==== */
#hrmy-mini-calendar .fc {
	--hrmy-accent: #E4572E;
	--hrmy-muted: #9CA3AF;
}

#hrmy-mini-calendar h2 {
	padding-bottom:5px;
}

#hrmy-mini-calendar .fc-toolbar {
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

#hrmy-mini-calendar .fc-toolbar-title {
	font-size: 22px;
	font-weight: 400;
}

#hrmy-mini-calendar .fc-daygrid-day-frame {
	transition: all 250ms ease-in-out;
}

#hrmy-mini-calendar .fc-daygrid-day-frame:hover {
	background: #f4f4f4;
}

#hrmy-mini-calendar .fc-button {
	background: #FFF;
	border: 0;
	border-radius: 0px;
	color: #FFF;
	padding: 6px 10px;
	line-height: 1;
}

#hrmy-mini-calendar a:hover {
	text-decoration: none;
}

#hrmy-mini-calendar .fc-button:focus {
	box-shadow: none;
}

#hrmy-mini-calendar .fc-button:hover {
	filter: brightness(1.06);
}

#hrmy-mini-calendar .fc-col-header-cell-cushion {
	font-size: 12px;
	text-transform: uppercase;
	color: var(--hrmy-muted);
}

#hrmy-mini-calendar .fc-daygrid-day-number {
	font-size: 12px;
	color: #111827;
}

#hrmy-mini-calendar .fc-daygrid-day-top {
	justify-content: center;
}

#hrmy-mini-calendar .fc-daygrid-day-frame {
	height: 60px;
	display: flex;
	align-items: Center;
	justify-content: center;
}

#hrmy-mini-calendar .fc-daygrid-body-natural .fc-daygrid-day-events {
	display: none;
}

#hrmy-mini-calendar .fc-daygrid-day.fc-day-today {
	background-color: #eee;
}

/* Dots on days with events */
#hrmy-mini-calendar .hrmy-dotwrap {
	display: flex;
	gap: 4px;
	margin-top: 4px;
}

#hrmy-mini-calendar .hrmy-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hrmy-accent);
	display: inline-block;
}

/* Clickable/selected day */
#hrmy-mini-calendar .fc-daygrid-day {
	cursor: pointer;
}

#hrmy-mini-calendar .fc-daygrid-day.is-selected {
	background: #FFF5EE;
}

.hrmy-event-card__icon {
	width: 45px;
	height: 45px;
	object-fit: contain;
	display: block;
}

/* Lista kahteen sarakkeeseen */
.hrmy-events-front__list {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 48px;
	row-gap: 0px;
}

/* Pystyerotin keskelle */
.hrmy-events-front__list::before {
	content: "";
	position: absolute;
	left: calc(50% - 1px);
	top: 0;
	bottom: 0;
	width: 1px;
	background: #E6E6E6;
}

/* Kortit – pidä jo olemassa olevat typografiat */
.hrmy-event-card {
	padding: 24px 0 70px 0;
	border-bottom: 1px solid #E6E6E6;
	position: relative;
}

#hrmy-events-list>article:nth-last-child(2),
#hrmy-events-list>article:last-child {
	border: none;
}


/* Kun kortit pinotaan yhdelle sarakkeelle */
@media (max-width: 960px) {
	.hrmy-events-front__list {
		grid-template-columns: 1fr;
	}

	.hrmy-events-front__list::before {
		display: none;
	}
}

/* MESTARI-ILTA NOSTO */


.home-mestari-illat .hm-title {
	font-weight: 400;
}

.home-mestari-illat .hm-catdesc {
	color: #475569;
}

.home-mestari-illat .hm-event-title {
	font-weight: 400;
	line-height: 1.1;
}

.home-mestari-illat .hm-event-meta {
	color: #111827;
}

.home-mestari-illat .hm-address {
	color: #111827;
}

.home-mestari-illat .hm-teaser {
	color: #374151;
	max-width: 60ch;
}

.home-mestari-illat .hm-cta {
	background: #E4572E;
	border-color: #E4572E;
	font-weight: 600;
}

.home-mestari-illat .hm-cta:hover {
	filter: brightness(0.95);
}

.home-mestari-illat .hm-image-wrap {
	overflow: hidden;
}

.home-mestari-illat .hm-image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* Rivi venyttää molemmat palstat saman korkuisiksi */
.hm-equal {
	align-items: stretch;
}

/* varmistaa venytyksen bootstrap-row'lla */

/* Oikea palsta: kuvan kääre täyttää palstan korkeuden */
.hm-right {
	display: flex;
}

/* varmistus */
.hm-image-wrap {
	width: 100%;
	height: 100%;
	/* sama korkeus kuin vasemman palstan sisältö */
	overflow: hidden;
	display: flex;
	/* jotta <img> voi venyä 100% korkeuteen */
}

/* Kuva peittää kääreen ilman vääristymää */
.hm-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Mobiilissa: neliö (1:1) eikä pakotettua 100% korkeutta */
@media (max-width: 991.98px) {
	.hm-image-wrap {
		height: auto;
		aspect-ratio: 1 / 1;
		/* neliö */
	}
}

/* TAPAHTUMASIVU */

.evt-programme p + ul {
	margin-bottom:3rem;
}


/*.evt-programme p:has(> strong:only-child),
.evt-programme p:has(> b:only-child) {
	font-size:18px;
	margin-top:15px;
	display:inline-block;
}*/

.evt-single {
	background: #15212B;
	color: #E9EEF2;
}

.evt-single a {
	color: #E4572E;
}

.evt-hero {
	width: 100%;
	height: 360px;
	background-size: cover;
	background-position: center;
	margin-bottom: 24px;
}

.evt-header .evt-cat-icon {
	width: 64px;
	height: 64px;
	object-fit: contain;
}

h1.evt-title {
	font-weight: 400;
	line-height: 1.1;
	padding-bottom: 8px !important;
}

.evt-sub {
	opacity: .9;
	font-weight: 600;
}

.evt-programme {
	padding: 20px 0;
}

.evt-sidebar.card {
	border: 0;
	border-radius: 0px;
}

.evt-sidebar .card-body {
	background: #fff;
	color: #111827;
}

.evt-sidebar h5,
.evt-sidebar h6 {
	color: #111827;
}

.evt-map iframe {
	border-radius: 0px;
}

/* SEARCH */

.search-link img {
	width: 30px;
	height: auto;
}

.search-link {
	position: relative;
	right: 78px;
	z-index: 99999;
}

#search-wrapper {
	background: var(--bs-body-bg);
	position: fixed;
	transform: translate3d(0, 0, 0);
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 99999999999999999999999999999 !important;
	visibility: hidden;
	opacity: 0;
	transition: opacity 300ms, transform 300ms;
	display: flex;
	justify-content: center;
	align-items: center;
}

#searchButton {
	background: transparent;
	color: #FFF;
	border: none;
	position: absolute;
	right: 30px;
}

#search-wrapper.show {
	visibility: visible;
	opacity: 1;
}

.normal-search-field {
	width: 100%;
	height: auto;
	color: transparent;
	font-size: 17px;
	outline: none;
	padding: 20px 65px 20px 30px;
	border: 1px solid transparent;
	border-radius: var(--bs-border-radius);
	transition: all 0.3s ease-in-out;
	background: #FFF;
	cursor: auto;
	color: var(--bs-body-bg) !important;
}

.readmore-link:hover {
	text-decoration: underline !important;
}

.search-page .normal-search {
	width: 100%;
}

.search-page .search-wrapper-inner {
	max-width: 100%;
	width: 490px;
}

.search-page .normal-search-field {
	border: solid 1px #000;
}

.normal-search {
	width: 90%;
	margin: auto;
}

.normal_search_wrapper {
	width: 100%;
	margin: auto;
	position: relative;
}

.search-wrapper-inner {
	width: 540px;
	position: relative;
}

.normal-search_icon {
	position: absolute;
	top: 0;
	right: 0;
	background-color: transparent;
	font-size: 1em;
	text-align: center;
	border-color: transparent;
	border-radius: 50%;
	display: inline-block;
	transition: all 0.3s ease-in-out;
	bottom: 0;
	padding: 0 25px 2px 0;
	font-size: 25px;
}

.normal-search_icon:hover {
	cursor: pointer !important;
	color: var(--dark) !important;
}

.search-pagination {
	text-align: center;
	margin: 40px 0;
}

.search-pagination .page-numbers {
	display: inline-block;
	margin: 0 5px;
	padding: 8px 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	text-decoration: none;
	color: #FFF;
	font-weight: 500;
	transition: all 0.2s ease-in-out;
}

.search-pagination {
	display: flex;
	align-items: center;
}

.search-pagination>.navigation {
	margin: auto;
}

.search-pagination .nav-links>* {
	margin-bottom: 10px;
}

.search-pagination .page-numbers:hover {
	background-color: #f2f2f2;
	color:var(--bs-body-bg);
}

.search-pagination .current {
	background-color: var(--orange);
	color: #fff;
	border-color: var(--orange);
}

.search-pagination .prev,
.search-pagination .next {
	font-weight: bold;
}

/* SCROLLING TEXT */

#scrolling-text {
	overflow: hidden;
	white-space: nowrap;
	position: relative;
	color: var(--bs-body-bg);
	background: var(--lightblue);
	width: auto;
	padding-bottom: 23px;
	padding-top: 20px;
}

#scrolling-text ul {
	display: inline-block;
	animation: scrollLeft 150s linear infinite;
	font-family: var(--bs-headline-font-family), sans-serif;
	font-weight: 500;
	line-height: 1.4;
	font-size: 17px;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

/* Pysäytä scrollaus hoverissa */
#scrolling-text:hover ul {
	animation-play-state: paused;
}

#scrolling-text ul li {
	display: inline-block;
	padding-left: 3rem;
	padding-right: 3rem;
	position: relative;
}

/* linkit scrollerissa */
#scrolling-text ul li a {
	color: inherit;
	text-decoration: none;
	transition: text-decoration 0.2s ease-in-out;
}

#scrolling-text ul li a:hover {
	text-decoration: underline;
}

#scrolling-text ul li:before {
	content: "———";
	display: inline-block;
	letter-spacing: -0.05em;
	font-weight: 800;
	width: 80px;
	margin: 0;
	left: -25px;
	position: absolute;
	top: 0;
	opacity: 1;
}

@keyframes scrollLeft {
	0% {
		transform: translateX(0%);
	}

	100% {
		transform: translateX(-100%);
	}
}


/* YHDISTYS */

.org-cards h3,
.org-cards p {
	color: var(--bs-body-bg);
}

.org-cards .button {
	margin-bottom: 0;
}

/* ARTIKKELINOSTO */

.card {
	background-color: #fff;
	border-radius: 0px;
	overflow: hidden;
	box-shadow: none;
}

.card img {
	border-radius: 0px;
}

.card-footer {
	padding: 0 25px 25px 25px;
}

.card-body {
	padding: 25px;
}

.yhteystiedot-row,
.org-cards .row,
.uutiset-row {
	--bs-gutter-x: 30px;
}

/* Uutiskorttien kuvat yhtenäiseksi */
.uutiset-row .card-img-top {
  height: 220px;          /* kiinteä korkeus */
  width: 100%;
  object-fit: cover;      /* rajaa ja täyttää */
  object-position: center; /* keskitys */
  display: block;
}

p.card-text {
	font-size: 14px;
}

.card-body h5 {
	font-size: 1.1rem;
	font-weight: 600;
}

.card-footer .read-more {
	text-decoration: none;
	transition: color 0.2s ease;
	font-size: 14px;
	color: var(--bs-body-bg);
}

.card-footer .read-more i {
	padding-left: 3px;
	transition: all 250ms ease-in-out;
}

.card-footer .read-more:hover i {
	padding-left: 6px;
}

.card-footer .read-more:hover {
	color: var(--bs-body-bg);
}

/* SINGLE ARTIKKELI */

/* ===== Single Post ===== */

/* Leveä hero-kuva */
.post-hero {
	width: 100%;
	max-height: 520px;
	/* hienosäädä */
	overflow: hidden;
}

.post-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Otsikko + sisältö */
.post-title {
	line-height: 1.15;
}

.post-content {
	font-size: 1.0625rem;
}

.post-content p {
	margin-bottom: 1.5rem;
}

/* Gutenberg-leveydet (jos käytät) */
.post-content .alignwide {
	margin-left: calc(50% - 48vw);
	margin-right: calc(50% - 48vw);
	max-width: 96vw;
}

.post-content .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}

@media (max-width: 992px) {

	.post-content .alignwide,
	.post-content .alignfull {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
	}
}

/* Oikean reunan kevyt kuviotausta (SVG-viivakuutioita) */
.post-wrap {
	background: #fff;
}

.post-pattern {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(40%, 520px);
	pointer-events: none;
	background-image:
		radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
		radial-gradient(circle at 21px 13px, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
	background-size: 24px 24px, 24px 24px;
	background-position: 0 0, 0 0;
	opacity: .7;
}

.post-wrap h1,
.post-wrap h2,
.post-wrap h3,
.post-wrap h4,
.post-wrap h5,
.post-wrap h6 {
	color: var(--bs-body-bg);
}

/* Kuvan ja sisällön värit */
.post-wrap .post-meta {
	color: #6b7280;
}

.post-wrap {
	color: #111827;
}

/* Kuvat ja kuvatekstit sisällössä */
.post-content figure {
	margin: 1.25rem 0;
}

.post-content figcaption {
	color: #6b7280;
	font-size: .95rem;
	text-align: center;
}

/* Linkit */
.post-content a:hover {
	text-decoration: none;
}


/* JÄSENEDUT */

/* Hero */
.benefit-hero {
	width: 100%;
	height: 500px;
	background-size: cover;
	background-position: center;
}

.jasenetu td,
.jasenetu th,
.jasenetu p {
	color: #FFF !important;
}

/* ===== Jäsenedut – kortit vaakasuuntaisina ===== */

.benefit-grid--horizontal{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
@media (min-width: 992px){
  .benefit-grid--horizontal{ grid-template-columns:1fr 1fr; }
}

.benefit-card {
  position:relative;
  background:#fff;
  border-radius:0px;
  padding:22px;
  box-shadow:0 1px 0 rgba(0,0,0,0.05);
  transition:transform .15s ease, box-shadow .2s ease;
  color:var(--bs-body-bg);
  text-decoration:none;      /* jos kortti on <a> */
  display:flex;
  align-items:flex-start;
  gap:22px;
}
.benefit-card--h{ /* nimilabel säilytetään selkeyden vuoksi */ }


/* Hover-efekti vain linkillisille korteille */
.benefit-card.is-link{ cursor:pointer; }
.benefit-card.is-link:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(0,0,0,0.06);
}

/* Badge oikeaan yläkulmaan */
.benefit-badge{
  position:absolute;
  top:4px;
  right:4px;
  font-size:10px;
  font-weight:600;
  line-height:1;
  color:#fff;
  background:rgba(0,0,0,.5);
  border-radius:0;
  padding:6px 10px;
  pointer-events:none;
}
/* Yleisvärit – tuetut slug-variaatiot */
.benefit-badge.benefit-badge--hrmy-etu,
.benefit-badge.benefit-badge--hrmyn-tarjoama-etu{ background:var(--hrmy-accent, #e85b4d); }
.benefit-badge.benefit-badge--rkl-etu,
.benefit-badge.benefit-badge--rkln-tarjoama-etu{ background:#0079c2; }
.benefit-badge.benefit-badge--saatio-etu,
.benefit-badge.benefit-badge--saation-tarjoama-etu{ background:#2ca356; }

/* Pyöreä kuva */
.benefit-thumb{
  flex:0 0 112px;
  width:112px;height:112px;
  border-radius:50%;
  overflow:hidden;
  background:rgba(0,0,0,.05);
  align-self:flex-start;
}
.benefit-thumb__img{
  width:100%;height:100%;object-fit:cover;display:block;
}

/* Tekstit */
.benefit-card__content{ flex:1 1 auto; min-width:0; }
.benefit-card__title{
  margin:0 0 12px;
  font-size:24px;
  line-height:1.2;
  color:var(--bs-body-bg);
}
.benefit-card__ing p{
  margin:0 0 12px;
  color:var(--bs-body-bg);
  opacity:.9;
  font-size:14px;
  width:350px;
  max-width:100%;
}

/* CTA */
.benefit-card__cta{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--bs-body-bg);
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  transition:color .15s ease;
}
.benefit-card__cta i{
  transition:transform .15s ease;
}
/* Kun koko korttia hoverataan (vain linkillisissä), nuoli liikkuu vähän oikealle */
.benefit-card.is-link:hover .benefit-card__cta i{
  transform:translateX(4px);
}

/* Mobile fonttikoot ja thumbin koko */
@media (max-width: 575.98px){
  .benefit-card__title{ font-size:22px; }
  .benefit-thumb{ flex-basis:96px; width:96px; height:96px; }
}



/* FAQ */

.wpt-faq-category {
	display: none;
}

.wpt-faq-item[data-wpt-faq-state="open"] {
	border-bottom: 0 !important;
	padding-bottom: 0 !important;
	background: #122532 !important;
}

.wpt-faq-accordion ul.wpt-faq-accordion-list li div.wpt-faq-item div.wpt-faq-question {
	justify-content:space-between !important;
}

.wpt-faq-question-text {
	font-size:17px !important;
}

.wpt-faq-item {
	background: var(--hrmy-accent) !important;
	border: none !important;
	padding: 20px !important;
}

.wpt-faq-item .wpt-faq-question {
	border: none !important;
	padding: 0 !important;
}

.quote {
	font-family: var(--bs-headline-font-family);
	font-style: italic;
	font-size: 30px;
	color: var(--hrmy-accent);
	padding: 30px 30px 40px 30px;
	width: 600px;
	max-width: 100%;
	font-weight: 400;
	line-height: 1.1;
}

/* LOMAKE */

#lomake .gfield_consent_label a {
	text-decoration:underline;
}

#lomake .gfield_consent_label:hover {
	cursor:pointer;
}

#lomake .ilm-h5 {
	font-size:24px;
	margin-top:25px;
}

#lomake p.gform_required_legend {
	margin:15px 0;
}


#lomake label {
	position: absolute;
	top: -10px;
	left: auto;
	background: #FFF;
	padding: 0 10px;
	font-size: 13px;
	color: #555 !important;
	font-weight: 500;
	z-index: 99;
	margin-top: 0;
	margin-left: 10px !important;
}

#lomake h2.lomake-headline {
	color:var(--hrmy-accent);
	font-size:35px;
	padding-bottom:10px;
}

#lomake .gform_confirmation_message {
    color: var(--orange) !important;
    display: inline-block;
    padding: 15px 0;
}

#lomake p {
	color: var(--bs-body-bg) !important;
	margin-top: 30px;
	font-size: 16px;
	width: 600px;
	max-width: 100%;
}

#lomake {
	padding: 10px 30px 30px 30px;
	background: #FFF;
	border-radius: 0px;
}

.evt-sidebar #lomake {
	padding: 0;
}

#lomake .ginput_complex {
	margin-top: 15px;
}

#lomake .ginput_container_address>span:first-child {
	margin-bottom: 12px;
}

#lomake input,
#lomake textarea {
	border-radius: 6px;
	border: solid 1px #bbb;
	padding: 25px 20px;
	box-shadow: none;
	position: relative;
}

#lomake input[type=checkbox] {
	padding: 0 !important;
}

#lomake .gfield--type-choice label {
	position: relative;
	top: auto;
	margin-left: 0 !important;
}

#lomake input:focus-visible,
#lomake input:focus,
#lomake input:active,
#lomake textarea:focus-visible,
#lomake textarea:focus,
#lomake textarea:active {
	border: solid 1px #666;
	box-shadow: none;
	outline: none;
}

#lomake .gform_fields {
	grid-row-gap: 25px;
}

#lomake .gform-grid-col,
#lomake .gfield {
	position: relative;
}

/* TAPAHTUMAT SIVU */

#events .chip {
	margin-bottom:10px;
}

/* Hero-alue: intro + kalenteri */
.events-hero {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 28px;
	margin-bottom: 28px;
}

.events-hero__intro {
	/*background:#2a3a44;*/
	color: #ecf2f6;
	/*padding:28px;*/
	border-radius: 0px;
}

.events-hero__intro h1 {
	margin: 0 0 10px;
}

.events-hero__calendar {
	background: #1f2b33;
	padding: 20px;
	border-radius: 0px;
	min-height: 220px;
}

/* Kategoriat */
.events-cats {
	margin: 16px 0 24px;
}

.events-cats__title {
	font-weight: 700;
	margin-bottom: 8px;
}

.events-cats__chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.chip {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #2b3a44;
	color: #cfe0ea;
	text-decoration: none;
	font-size: .9rem;
}

.chip.is-active {
	background: #3f5360;
	color: #fff;
}

/* Lista & kortit */
.events-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* Kortti + hover-nosto */
.event-card {
	display: grid;
	grid-template-columns: 88px 1fr 120px;
	gap: 22px;
	background: #FFF;
	color: var(--bs-body-bg);
	border-radius: 0px;
	padding: 22px;
	position: relative;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
	cursor: pointer;
}

.event-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

/* Overlay-linkki: tekee koko kortista klikattavan */
.event-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	text-indent: -9999px;
	overflow: hidden;
	z-index: 8;
}

/* Varmistetaan, että näkyvät osat ovat overlayn yläpuolella */
.event-card__left,
.event-card__main,
.event-card__right,
.event-card__title a,
.event-card__more,
.event-card__meta,
.event-card__date {
	position: relative;
	z-index: 2;
}

.events-list .event-card h2 {
	color: var(--bs-body-bg);
}

.event-card__left {
	display: flex;
	align-items: center;
	justify-content: center;
}

.event-card__date {
	width: 66px;
	height: 66px;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.event-card__dow {
	font-weight: 700;
	font-size: .9rem;
	letter-spacing: .02em;
}

.event-card__day {
	font-weight: 800;
	font-size: 1.6rem;
}

.event-card__meta {
	display: flex;
	gap: 14px;
	align-items: center;
	font-size: 14px;
}

.meta-item {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.badge-today {
	background: #e85b4d;
	color: #fff;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: .8rem;
}

.event-card__title {
	margin: .35rem 0 .3rem;
	font-size: 1.25rem;
	padding-bottom: 10px;
}

.event-card__title a {
	text-decoration: none;
}

.event-card__title a:hover,
.event-card__more:hover {
	text-decoration: none;
}

.event-card__more-link {
	margin-top: 30px;
	font-size: 14px;
	display: inline-block;
	color: var(--hrmy-accent);
}

.event-card__more-link i {
	transition: all 200ms ease-in-out;
	padding-left: 3px;
}

.event-card:hover .event-card__more-link i {
	padding-left: 10px;
}

.event-card__excerpt {
	font-size: .95rem;
	width: 800px;
	max-width: 100%;
	margin-top: 10px;
}

.event-card__more {
	margin-top: 40px;
	display: inline-flex;
	gap: 8px;
	text-decoration: none;
	color: var(--hrmy-accent);
	align-items: center;
	font-size: 14px;
}

.event-card__right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.evt-cat-right {
	width: 88px;
	height: auto;
	opacity: .95;
}

/* Näppäimistökäyttäjille näkyvä fokus */
.event-card__title a:focus-visible,
.event-card__more:focus-visible,
.event-card__overlay:focus-visible {
	outline: 2px solid var(--hrmy-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Vähennä liikettä, jos käyttäjä haluaa */
@media (prefers-reduced-motion: reduce) {
	.event-card {
		transition: none;
	}

	.event-card:hover {
		transform: none;
		box-shadow: none;
	}
}


/* Päivämääräboksi */
.event-card__date {
	width: 82px;
	min-height: 92px;
	border-radius: 4px;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px 6px;
	line-height: 1.1;
	text-align: center;
}

.event-card__month {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--bs-body-bg);
}

.event-card__day {
	font-size: 50px;
	font-weight: 400;
	margin: 4px 0 2px;
	color: var(--bs-body-bg);
	/* tumma teksti */
	font-family: var(--bs-headline-font-family);
}

.event-card__dow {
	font-size: 11px;
	font-weight: 700;
	color: var(--bs-body-bg);
	opacity: .85;
}

.event-card__year {
	font-size: 11px;
	color: #6b7f8a;
	margin-top: 4px;
	letter-spacing: .02em;
}

/* Oikea puoli: ikoni + kategorian nimi */
.event-card__right {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	min-width: 110px;
}

.event-card__right .evt-cat-right {
	width: 80px;
	height: auto;
	display: block;
}

.event-card__catname {
	font-size: .95rem;
	font-weight: 600;
	color: var(--hrmy-accent);
	/* sama accentti kuin kuukaudessa */
	text-align: center;
	line-height: 1.2;
}

/* Pieni ikonien “ghost space” (jos käytät FA:ta meta-ikonien kanssa) */
.event-card__meta i[class*="fa-"] {
	display: inline-block;
	width: 1.25em;
	min-width: 1.25em;
	line-height: 1;
	vertical-align: -0.125em;
	margin-right: .35em;
}


/* Pagination */
.events-pagination {
	margin: 26px 0;
}

.events-pagination .page-numbers {
	margin-right: 6px;
	padding: 6px 10px;
	background: #2b3a44;
	border-radius: 6px;
	color: #cfe0ea;
	text-decoration: none;
}

.events-pagination .current {
	background: #3f5360;
	color: #fff;
}

/* Mobiili */
@media (max-width: 991px) {
	.events-hero {
		grid-template-columns: 1fr;
	}

	.event-card {
		grid-template-columns: 72px 1fr;
	}

	.event-card__right {
		display: none;
	}
}


/* Varausviikot */
.table.benefit-weeks td,
.table.benefit-weeks th {
	vertical-align: middle;
}

#varaustable {
	background: #FFF;
	padding: 20px;
	margin-top: 40px;
	margin-bottom: 40px;
	border-radius: 0px;
}

#varaustable th,
#varaustable td {
	background: #FFF;
	color: var(--bs-body-bg) !important;
	text-align: left !important;
	border-bottom: solid 1px #ccc !important;
	border-left: none !important;
	border-right: none !important;
	padding: 10px !important;
}

#varaustable tr,
#varaustable table {
	border: none !important;
}

/* SETTINGS */

#wtf-wrapper,
body,
html {
	min-height: 100%;
}

.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
	max-width: var(--container-width);
}

h1 {
	padding-top:40px;
}

.lomake-otsikko {
	color:var(--bs-body-bg);
	margin-top:20px;
	font-size:24px;
	font-family: var(--bs-headline-font-family);
	font-weight: 400;
	padding-bottom:20px;
}

h1,
h2,
h3,
h4,
h5 {
	font-family: var(--bs-headline-font-family);
	font-weight: 400;
}

.content-col h2 {
	font-size:33px;
	margin-top:45px;
	color:var(--hrmy-accent);
}

h1,
h2 {
	padding-bottom: 30px;
	line-height: 1;
	margin-bottom: 0;
}

h1 {
	font-size: 48px;
}

h2 {
	font-size: 50px;
}

p a {
	text-decoration: underline;
}

b,
strong {
	font-weight: 700;
}

#wtf-wrapper {
	position: relative;
	overflow: hidden;
	padding-top: 130px;
}

img {
	max-width: 100%;
}

a:focus,
a:active,
a:visited,
a {
	text-decoration: none;
}

a {
	transition: all 200ms ease-in-out;
}

a:hover {
	text-decoration: none;
	color: inherit;
}

.copyright-row a {
	text-decoration: underline;
}

p {
	margin-bottom: 2rem;
}

.animated {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
		transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
	will-change: opacity, transform;
}

.animated.visible {
	opacity: 1;
	transform: translateY(0);
}

.no-js .animated {
	opacity:1;
	transform:none;
}

.light-bg {
	background: var(--light-bg);
	color: var(--bs-body-bg);
}

.light-bg * {
	color: var(--bs-body-bg);
}

.tiles-bg {
	background-image: url(/wp-content/themes/HRMY/assets/img/tiles-bg.svg);
	background-repeat: no-repeat;
	background-size: 35%;
}

.white-bg {
	background: #FFFFFF;
	border-radius:0px;
}

/* HEADER */

header ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

#moove_gdpr_cookie_info_bar {
	border-top: none !important;
}

.gdpr_lightbox .tab-title {
	font-weight: normal;
	font-family: var(--bs-headline-font-family) !important;
}

#moove_gdpr_cookie_info_bar button,
.gdpr_lightbox button {
	font-weight: 600 !important;
}


.desktop-menu-container ul li {
	display: inline-block;
	margin-left: 30px;
}

.desktop-menu-container ul li a {
	font-weight: 600;
	font-size: 15px;
	padding-top: 22px;
	padding-bottom: 22px;
	display: block;
	position: relative;
}

.desktop-menu-container ul li a:hover {
	text-decoration: none;
}

.desktop-menu-container ul li a:after {
	content: '';
	height: 2px;
	background: var(--bs-body-color);
	width: 0%;
	display: block;
	position: absolute;
	transition: all 200ms ease-in-out;
}

.desktop-menu-container ul#menu-ylavalikko > li.current-menu-parent > a:after,
.desktop-menu-container ul#menu-ylavalikko > li.current_page_item > a:after,
.desktop-menu-container ul li a:hover::after {
	width: 100%;
}

.menu-social img {
	width: 20px;
	margin-top: -2px;
}

.header-col {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--bs-body-bg);
	border-radius: 0px;
	position: relative;
	padding-right: 85px;
}

header {
	position: absolute;
	top: 30px;
	left: 0;
	right: 0;
	z-index: 1000;
	transition: all 0.3s ease;
}

.sticky-header {
	position: fixed !important;
	top: 0 !important;
	left: 0;
	right: 0;
	z-index: 9999;
	animation: slideDown 0.3s ease;
	box-shadow: rgba(0, 0, 0, 0.08) -4px 9px 25px -6px;
	background: var(--bs-body-bg);
}

.sticky-header .header-col {
	border-radius: 0 !important;
	backdrop-filter: blur(4px);
}

@keyframes slideDown {
	from {
		transform: translateY(-20px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.desktop-menu-container ul>li.menu-button a {
	margin-top: 0;
	margin-right: 0px;
	padding-top: 1em;
	padding-bottom: 1em;
	margin-bottom: 0;
}

.desktop-menu-container ul>li.menu-social a:hover {
	opacity: 0.8;
}

.desktop-menu-container ul>li.menu-social a:after,
.desktop-menu-container ul>li.menu-button a:after {
	display: none;
}

header .logo {
	width: 190px;
	height: auto;
}

/* KLUBI */

/* Hero-kuva: 100% leveys, 500px korkeus, peittävä */
.klubi-hero {
	width: 100%;
	height: 500px;
	overflow: hidden;
}

.klubi-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Sivuboksi */
.klubi-aside {
	padding: 1.25rem 1.25rem;
}

/* (valinnainen) nappiin pieni korostus jos teillä on .button jo olemassa */
.klubi-aside .button {
	display: inline-block;
	margin-top: .5rem;
}

.club-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.club-card {
	display: flex;
	flex-direction: column;
	text-align: center;
	background: var(--bs-body-bg);
	border-radius: 0px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-contact {
	color: #FFF;
	font-size: 15px;
	padding-bottom: 12px;
	padding-top:12px;
}

.club-card:hover {
	transform: translateY(-6px);
}

.club-card.is-disabled:hover {
	transform: none;
	box-shadow: none;
}

.club-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.club-title {
	padding: 12px;
	font-weight: 600;
	font-size: 16px;
	color: #FFF;
	line-height:1.2;
}

.yhteistyoyhdistykset-grid .club-title {
	padding-bottom: 0;
}

#opiskelija-edut {
	margin-top:-120px;
	padding-top:140px;
}

/* --- Historiikki timeline (korvaa aiempi CSS) --- */

.historiikki-page{
  padding-bottom:2rem;
}

/* Koko aikajanan kääre */
.wtf-timeline{
  position:relative;
  display:grid;
  gap:6rem;
  padding:1rem 0 3rem;
}

.wtf-tl-box > p:last-of-type {
	margin-bottom:0;
}

/* Keskilinja desktopille */
.wtf-timeline::before{
  content:"";
  position:absolute;
  inset-block:0;               /* top:0; bottom:0 */
  left:50%;
  width:2px;
  background:rgba(255,255,255,.15);
  transform:translateX(-1px);
}

/* Yksi rivi: 3 kolumnia (vuosi / keskirako / laatikko) */
.wtf-tl-row{
  display:grid;
  grid-template-columns:1fr 80px 1fr;
  align-items:center;
  position:relative;
}

/* Oranssi piste keskiviivalle jokaiselle riville */
.wtf-tl-row::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--orange,#ff7a00);
  transform:translate(-50%,-50%);
  box-shadow:0 0 0 6px rgba(255,122,0,.15);
}

/* Vuosi */
.wtf-tl-year{
  font-weight:800;
  font-size:clamp(2.2rem,7vw,5rem);
  line-height:1;
  color:var(--orange,#ff7a00);
  white-space:nowrap;
}

/* Vuoden kohdistus reunoille desktopilla */
.wtf-tl-row.side-left  .wtf-tl-year{ text-align:right;  padding-right:.25rem; }
.wtf-tl-row.side-right .wtf-tl-year{ text-align:left;   padding-left:.25rem; }

/* Sisältölaatikko */
.wtf-tl-box{
  background:#122532;
  color:#fff;
  border-radius:14px;
  padding:1.25rem 1.35rem;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}
.wtf-tl-box h3,.wtf-tl-box h4,.wtf-tl-box h5{ color:#fff; margin-top:0; }
.wtf-tl-box p{ margin:0 0 .75rem; }
.wtf-tl-box a{ color:#fff; text-decoration:underline; }

/* Keskikolumni – vain rako */
.wtf-tl-center{ min-width:1px; }

/* --- Mobiili --- */
@media (max-width:768px){
  .wtf-timeline{ gap:3rem; }

  /* Piilotetaan keskiviiva ja piste mobiilissa */
  .wtf-timeline::before{ display:none; }
  .wtf-tl-row::after{ display:none; }

  /* Yksi kolumni, mutta pakotetaan järjestys grid-alueilla:
     vuosi aina ensin, laatikko perässä */
  .wtf-tl-row{
    grid-template-columns:1fr;
    grid-template-areas:
      "year"
      "box";
    row-gap:.75rem;
  }
  .wtf-tl-year{ grid-area:year; text-align:center !important; font-size:clamp(2rem,12vw,3.5rem); }
  .wtf-tl-box{  grid-area:box;  margin:0 auto; width:100%; }
}



/*.page-id-5204 .post-content .full-width-layout {
	width:700px;

	max-width:100%;
}*/

/*.page-id-5204 .post-content .full-width-layout h2 {
	position:relative;
	margin-top:70px;
}

.page-id-5204 .post-content .full-width-layout h2:before {
	width:2px;
	height:60px;
	background:var(--orange);
	display:inline-block;
	content:'';
	position:absolute;
	top:-80px;
}*/

/* YHTEYSTIEDOT */

/* Korttien yleinen tyyli */
.yhteystieto-box {
	background-color: #122532;
	/* hieman tummempi kuin tausta */
	border-radius: 0px;
	padding: 35px 15px 15px 15px;
	height: 100%;
	display: flex;
	flex-direction: column;
	text-align: center;
	justify-content: top;
}

.yhteystieto-box .button {
	margin-right: 0;
}

/* SVG-ikonin koko */
.yhteystieto-icon-svg {
	max-width: 80px;
	height: auto;
}

/* FontAwesome-ikonien koko */
.yhteystieto-icon {
	font-size: 64px;
	/* sovita SVG:n kokoon */
	color: #f15a37;
	/* sama oranssi kuin SVG */
}

/* Otsikot ja tekstit */
.yhteystieto-box b {
	display: block;
	margin-bottom: 0px;
}

/* Jos haluat ikonit täysin keskitettynä */
.yhteystieto-box .mb-3 {
	display: flex;
	justify-content: center;
	align-items: center;
}

/* JÄSENLEHTI */

/* Lukijan laatikko & pehmeä reuna */
#hrmy-flip-holder { overflow: hidden; border-radius: 0px; }

/* Listan linkkien aktiivikorostus */
.issue-list a.hrmy-open-in-flip.is-active { text-decoration: underline; }

/* Korttien kansikuvat responsiivisiksi */
.hrmy-download-card .card-img-top {
  width: 100%;
  height: auto;
  display: block;
}

/* Pieni väli otsikoihin */
#hrmy-flip-section h2 { margin-bottom: .75rem; }

#hrmyFlip .df-bg {
	background:var(--bs-body-bg) !important;
}

#hrmy-jasenlehti-box {
	border-radius:0;
	border:none;
}

.hrmy-open-in-flip {
	transition:all 200ms ease-in-out;
}

#hrmy-jasenlehti-box .hrmy-open-in-flip:hover {
	transform:scale(0.99) translateY(5px);
}

#hrmy-jasenlehti-box {
	text-align:center;
}

#hrmy-jasenlehti-box h3 {
	font-size:35px;
	text-align:center;
	display:block;
	width:100%;
	padding-top:5px;
}

#hrmy-jasenlehti-box .button {
	width:100%;
	text-align:center;
	margin-right:0;
	margin-bottom:0;
}

.card--dark {
	background: #122532;
	color: #e8eef2;
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 8px
}

.card--dark .card-body {
	padding: 14px 16px
}

.hrmy-download-card .card-img-top {
	aspect-ratio: 3/4;
	object-fit: cover;
	border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.lehti-ico {
	font-size: 18px;
	color: #f15a37;
	line-height: 1;
	margin-top: 1px
}

.button.button--sm {
	padding: 8px 14px;
	font-size: .95rem
}

.issue-list {
	list-style: none;
	padding-left: 0;
	margin: 0
}

.issue-list li {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .35rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.issue-list li i {
	color: #7fb5df
}

.issue-list a {
	color: #fff;
	text-decoration: none
}

.issue-list a:hover {
	text-decoration: underline
}

/* HENKILÖT */

.name-box {
	margin-bottom:40px;
}

.henkilo-img {
	margin-bottom:20px;
	width:150px;
	margin-left:auto;
	margin-right:auto;
	border-radius:100%;
}

.henkilo-img img {
	border-radius:100%;
}

.henkilo-name {
	font-family:var(--bs-headline-font-family);
	font-size:22px;
}

.henkilo-titteli {
	font-size:14px;
}

.accent-color {
	color:var(--hrmy-accent);
}

/* TERVETULOA */

#tervetuloa {
	height: 100vh;
	max-height: 1080px;
}

/* Desktop: video taustana */
#tervetuloa { position: relative; }
#tervetuloa .bg-video{
  position: absolute;
  inset: 0;                /* top/right/bottom/left: 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Mobiili (≤980px): video tulee osion yläpuolelle, täysleveydelle */
@media (max-width: 980px) {
  /* d-flex → block (pakotetaan yli Bootstrapin !important-säännön) */
  #tervetuloa{ 
    display: block !important;
    padding: 0;                 /* varmuudeksi pois ylimääräiset välit */
  }
  /* video ei ole enää absoluuttinen, vaan normaali sisältö */
  #tervetuloa .bg-video{
    position: static !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    z-index: auto;
    margin: 0 0 0 0;         /* pieni väli videon ja laatikon väliin */
  }
  /* pääsisältö normaaliksi; ei päällekkäistä z-index-kerrostusta */
  #tervetuloa .container{
    position: static;
    z-index: auto;
  }
}

.white-box {
	background: #FFF;
	padding: 30px 30px 10px 30px;
	color: var(--bs-body-bg);
	border-radius:0px;
}

.white-box h3 {
	color: var(--bs-body-bg);
	font-size: 42px;
	padding-bottom: 15px;
}

/* MAINHERO */

.home-hero-img {
	position: absolute;
	top: -100px;
	z-index: 9;
	left: 30px;
	max-width: 105%;
}

#mainhero {
	padding-top: 110px;
	padding-bottom: 138px;
}

#mainhero p {
	font-size: 18px;
	width: 650px;
	max-width: 100%;
}

#mainhero h1 {
	padding-bottom: 30px;
	padding-top:0px;
}

/* BUTTONS */

#lomake .gform_button,
.btn,
#lomake #gform_submit_button_1,
.menu-button a,
a.wp-block-button__link,
.button {
	font-family: var(--bs-body-font-family);
	font-weight: 600;
	background: var(--orange);
	font-size: 15px;
	padding: 1em 2em 1em 2em;
	border: solid 1px var(--orange);
	border-radius: 0px;
	color: var(--bs-body-color) !important;
	margin-bottom: 20px;
	line-height: 1;
	display: inline-block;
	position: relative;
	margin-right: 10px;
	transition: all 200ms ease-in-out;
	text-decoration: none !important;
}

#lomake .gform_button,
#lomake #gform_submit_button_1 {
	margin-bottom: 0;
}

#lomake .gform_button:hover,
#lomake #gform_submit_button_1:hover,
.menu-button a:hover,
a.wp-block-button__link:hover,
.button:hover {
	text-decoration: none;
	background: #cc4428;
	border-color: #cc4428;
}

.button.button-transparent {
	background: transparent;
	color: var(--bs-body-color);
	border-color: #F8FBF7;
}

.button.button-transparent-dark {
	color: var(--bs-body-bg) !important;
	border-color: var(--bs-body-bg);
}

.button.button-transparent-dark:hover {
	color: #FFF !important;
}

.button.button-transparent:hover {
	background: var(--orange);
	color: var(--bs-body-color);
	border-color: var(--orange);
}

/* NAV RESET */
header {
	position: absolute;
	z-index: 999;
	width: 100%;
}

.mobile-nav {
	position: relative;
	display: flex;
	align-items: center;
	margin-left: auto;
}

/* Hamburger icon */
.mobile-nav .checkbox {
	position: absolute;
	height: 1.3rem;
	width: 1.5rem;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	z-index: 5;
	opacity: 0;
	cursor: pointer;
}

.mobile-nav .hamburger-lines {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	height: 1.2rem;
	width: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	z-index: 4;
	cursor: pointer;
}

.mobile-nav .hamburger-lines .line {
	height: 0.2rem;
	width: 100%;
	border-radius: 0.2rem;
	background: #FFF;
	transition: all 0.4s ease-in-out;
}

.line1 {
	transform-origin: 0% 0%;
}

.line3 {
	transform-origin: 0% 100%;
}

.mobile-nav {
	z-index: 999999;
}

.mobile-menu-panel li {
	margin: 0;
	position:relative;
}

/* Chrome, Edge, Safari */
.mobile-menu-panel__content::-webkit-scrollbar {
  display: none;
}

/* Firefox */
.mobile-menu-panel__content {
  scrollbar-width: none; /* hides scrollbar */
  -ms-overflow-style: none; /* IE & old Edge */
}


.mobile-menu-panel li a {
	color: #FFF;
	font-size: 16px;
	font-weight: 600;
	padding-top:5px;
	padding-bottom:5px;
	margin-top:5px;
	margin-bottom:5px;
	display: block;
	text-align: left;
}

.mobile-menu-panel li.menu-button a {
	padding-top:15px;
	padding-bottom:15px;
	margin-right:0;
	margin-top:20px;
}

.mobile-menu-panel .sub-menu li {
	padding-left: 20px;
}

.mobile-menu-panel .sub-menu li a {
	font-size: 14px;
}

.mobile-menu-panel .nav-menu > li {
	padding-top:5px;
	padding-bottom:5px;
	border-bottom:solid 1px rgba(255,255,255,0.2);
}

.mobile-menu-panel .nav-menu > li:nth-last-child(2),
.mobile-menu-panel .nav-menu > li:last-child {
	border-bottom:none;
}

/* Toggle button layout & subtle rotation when open */
.mobile-menu-panel .submenu-toggle {
  cursor: pointer;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 14px;
  position:absolute;
  right:0px;
  top:19px;
  display: inline-flex;
  align-items: center;
  transition: transform 200ms ease;
}

/* Sub-menu animation: slide + fade-in */
.mobile-menu-panel ul.sub-menu {
  display: block;                 /* keep layout controlled by height */
  max-height: 0;                  /* JS will set to scrollHeight when opening */
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 280ms ease,
    opacity 220ms ease,
    transform 220ms ease;
  will-change: max-height, opacity, transform;
}

.mobile-menu-panel li.submenu-open > ul.sub-menu {
  opacity: 1;
  transform: translateY(0);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu-panel ul.sub-menu,
  .mobile-menu-panel .submenu-toggle {
    transition: none !important;
  }
}


/* Hide sub-menus by default */
.mobile-menu-panel .sub-menu {
  display: none;
}

/* Show when parent is open */
.mobile-menu-panel li.submenu-open > .sub-menu {
  display: block;
  padding-bottom:15px;
}

.mobile-menu-panel li.menu-button a {
	text-align: center;
	font-size: 1rem;
}

/* When checked - open menu */
.mobile-nav input[type="checkbox"]:checked~.mobile-menu-panel {
	transform: translateY(0%);
}

#hamburgercheckbox:checked~.hamburger-lines .line1 {
	transform: rotate(45deg);
	background: #FFF;
}

#hamburgercheckbox:checked~.hamburger-lines .line2 {
	transform: scaleY(0);
	background: #FFF;
}

#hamburgercheckbox:checked~.hamburger-lines .line3 {
	transform: rotate(-47deg);
	background: #FFF;
}

/* Mobile menu panel (now outside container) */
.mobile-menu-panel {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100vw;
	height: auto;
	background: var(--bs-body-bg);
	padding: 5rem 1.5rem 1rem 1.5rem;
	display: flex;
	flex-direction: column;
	transform: translateY(-120%);
	transition: transform 0.4s ease-in-out;
	z-index: 9999;
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;
	overflow-y: auto;
	box-shadow: 0 1px 30px #000;
}

body.menu-open .mobile-menu-panel {
	transform: translateY(0%);
}

.mobile-menu-panel {
  position: fixed;
  inset: 0;                  /* top/right/bottom/left: 0 */
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 5rem 1.5rem 1rem;
  background: var(--bs-body-bg);
  transform: translateY(-120%);
  transition: transform 0.4s ease-in-out;
  z-index: 9999;
  box-shadow: 0 1px 30px #000;
}
body.menu-open .mobile-menu-panel { transform: translateY(0); }

.mobile-menu-panel__content {
  flex: 1;                   /* fill remaining height */
  overflow-y: auto;          /* scroll this, not the transformed parent */
  -webkit-overflow-scrolling: touch;
}

body.menu-open { overflow: hidden; }  /* lock background scroll */


.logo-container {
	z-index: 99999;
}

/* TUOTTEET */

footer,
#tilaa,
#sijainti,
#tulossa,
#vertikaaliviljely,
#tuotteet {
	padding-top: 110px;
}

.product-section {
	padding-top: 40px;
	padding-bottom: 0;
}

.product-card {
	background: #FFF;
	border-radius: 0px;
	box-shadow: rgba(0, 0, 0, 0.08) -4px 9px 25px -6px;
	padding: 1rem;
	text-align: center;
	height: 100%;
}

.product-card:hover img {
	transform: scale(1.02);
}

.product-card img {
	width: 110%;
	max-width: 110%;
	margin-left: -5%;
	margin-top: -40px;
	height: auto;
	margin-bottom: 2rem;
	transition: transform 0.2s ease;
}

.upcoming-card img {
	width: 90%;
	margin-top: 50px;
	margin-bottom: 50px;
}

.upcoming-card:hover img {
	transform: none;
}

.product-label {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 0.25rem;
}

.product-card h3 {
	font-size: 1.2rem;
	margin: 0;
}

.coming {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	border-radius: 0px;
	background: rgba(10, 41, 0, 0.5);
	backdrop-filter: blur(5px);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	color: #FFF;
	padding: 40px;
	line-height: 1;
}

.coming strong {
	font-size: 30px;
	display: inline-block;
	padding-top: 10px;
}

/* VERTIKAALIVILJELY */

.vertikaali-card {
	background-color: #dff1cb;
	/* same green tone */
	border-radius: 0px;
	padding: 2rem;
	text-align: left;
	height: 100%;
	box-shadow: rgba(0, 0, 0, 0.08) -4px 9px 25px -6px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.vertikaali-card img {
	width: 80px;
	height: auto;
	margin-bottom: 1.5rem;
}

.vertikaali-card h3 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.vertikaali-card p {
	font-size: 0.95rem;
	color: #333;
	margin: 0;
}

/* SIJAINTI */

#sijainti iframe {
	border-radius: 0px;
}

#tilaa .row>div:last-child,
#sijainti .row>div:first-child {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

/* MEISTÄ */

#meista {
	margin-top: -80px;
	padding-top: 80px;
}

#meista>div>p {
	margin-bottom: 0;
}

/* FOOTER */

footer .logo {
	width: 250px;
	max-width: 100%;
}

footer {
	padding-top: 150px;
	padding-bottom: 00px;
}

.copyright-row {
	font-size: 13px;
	margin-top: 30px;
}

.social-link-footer {
	text-align: center;
	margin-top: 30px;
}

.social-link-footer img {
	width: 30px;
	height: auto;
}

/* FOOTER */

footer {
	background: #415360;
	padding-top: 60px;
	margin-top: 90px;
}

.footer-menu li+li {
	margin-top: .45rem;
}

.footer-menu a {
	text-decoration: none;
	font-size: 14px;
}

.footer-menu a:hover {
	text-decoration: underline;
}

footer h4 {
	margin-bottom: 15px;
}

footer .button {
	margin-top: 20px;
	display: inline-block;
}

footer .button:hover {
	text-decoration: none;
}

.hrmy-events-front__list{ grid-area: list; }
.hrmy-events-front__calendar{ grid-area: cal; }

.wp-block-list {
	padding-left:60px;
}

.welcome-mobile-only,
.home-mobile-hero-img {display:none;}

/* LIITY MODAL */

#joinReminderModal h5 {
	font-size: 27px;
  	color: var(--orange);
}

.modal-backdrop {
	z-index:99999;
}
#joinReminderModal {
	z-index:999999;
}

#joinReminderModal .modal-header {
	border-bottom:none;
	padding:20px 20px 15px 20px;
}

#joinReminderModal p {
	margin-bottom:15px;
}

#joinReminderModal .modal-body {
	padding:0 20px 0 20px;
}

#joinReminderModal .modal-footer {
	border-top:none;
	padding:25px 20px 20px 20px;
}

#joinReminderModal .button {
	margin-bottom:0;
	margin:0 0 0 0 !important;
}

#joinReminderModal .btn-close:focus {
	border:none !important;
	outline:none !important;
	box-shadow:none !important;
}

.modal-backdrop {
  --bs-backdrop-zindex: 1050;
  --bs-backdrop-bg: #000 !important;
  --bs-backdrop-opacity: 0.75  !important;
}

/* Vaalea X Bootstrap-modalille */
#joinReminderModal .btn-close {
  --bs-btn-close-color: #fff;       /* valkoinen väri */
  filter: invert(1) brightness(200%); /* varmistaa vaaleuden kaikissa teemoissa */
  opacity: 1;
}
#joinReminderModal .btn-close:hover {
  opacity: 0.75;
}

/* MEDIA QUERIES */

@media (min-width: 768px) and (max-width: 1600px) {
	.container {
		max-width: 92%;
	}
}

@media (min-width: 981px) {
	#tilaa .row>div:last-child {
		padding-left: 60px;
	}

	#sijainti .row>div:first-child {
		padding-right: 60px;
	}

	.mobile-nav {
		display: none;
	}
}

@media (min-width: 1100px) and (max-width:1280px) {
	.desktop-menu-container ul li {
		margin-left: 20px;
	}
	.desktop-menu-container ul li a {
		font-size:14px;
	}
	.desktop-menu-container ul > li.menu-button a {
		padding-left:15px;
		padding-right:15px;
	}
	header .logo {
		width:160px;
	}
}

@media (min-width: 980px) and (max-width:1099px) {
.desktop-menu-container ul li {
		margin-left: 10px;
	}
	.desktop-menu-container ul li a {
		font-size:13px;
	}
	.desktop-menu-container ul > li.menu-button a {
		padding-left:15px;
		padding-right:15px;
	}
	header .logo {
		width:140px;
	}
}

@media (max-width: 980px) {
	.benefit-gallery {
		margin-top:30px;
	}
	.benefit-card__ing p {
		width:100%;
	}
	#tervetuloa {
		background:none !important;
		height:auto;
		min-height:auto;
		padding-left:0;
		padding-right:0;
	}
	#tervetuloa .container {
		padding-left:0;
		padding-right:0;
	}
	#tervetuloa h3 {
		font-size:35px;
	}
	#tervetuloa .white-box {
		padding-bottom:30px;
	}
	.welcome-mobile-only {
		display:block;
	}
	.home-hero-img {
		display:none;
	}
	.home-mobile-hero-img {display:block;}
	.post-content h2 {
		font-size:30px;
	}
	.hrmy-events-front__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.hrmy-event-card__cols {
		grid-template-columns: 1fr 40px;
	}

	.hrmy-event-card__side {
		align-items: flex-start;
		text-align: left;
	}
	.hrmy-events-front__grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "cal"
      "list";
    gap: 16px;
  }
	.klubi-hero {
		height:300px;
		padding-bottom:0 !important;
	}
	#mainhero .row > .col-lg-6:first-child,
	#pagehero .row > .col-lg-12 {
		padding:0 0 30px 0;
	}
	.single-post #pagehero .row > .col-lg-12 {
		padding-bottom:0;
	}
	.single-post footer {
		margin-top:0;
	}
	.event-card {
		display: block;
	}

	.event-card__left {
		margin-bottom: 20px;
		justify-content: left;
	}

	.event-card__meta {
		justify-content: left;
	}

	.event-card__right {
		display: flex;
		position: absolute;
		right: 10px;
		top: 30px;
	}

	.event-card__right .evt-cat-right {
		width: 50px;
	}

	.event-card__catname {
		font-size: 13px;
	}

	.event-card__day {
		font-size: 30px;
	}

	.uutiset-row>div {
		margin-bottom: 20px;
	}

	.home-hero-img {
		top: auto;
		position: relative;
		left: 0;
		right: 0;
		margin-bottom: 30px;
		max-width: 115%;
		margin-left: -7.5%;
	}

	#mainhero {
		padding-top: 0px;
		padding-bottom: 20px;
	}

	#wtf-wrapper {
		padding-top: 80px;
	}

	#searchButton {
		right: 55px;
	}

	h1 {
		font-size: 35px;
	}

	.desktop-menu-container {
		display: none;
	}

	.header-col {
		padding: 10px 5px;
		width: 95%;
		margin: auto;
	}

	header {
		top: 0px;
	}

	h2 {
		font-size: 35px;
	}

	h1 {
		padding-top:10px;
	}

	footer,
	#tilaa,
	#sijainti,
	#tulossa,
	#vertikaaliviljely,
	#tuotteet {
		padding-top: 70px;
	}

	#sijainti iframe {
		margin-top: 20px;
	}

	#meista {
		padding-top: 70px;
		margin-top: 0;
	}

	footer {
		padding-top: 30px;
	}

	footer .logo {
		margin-bottom: 30px;
	}

	footer .row>div {
		margin-bottom: 40px;
	}

	header .logo {
		width: 130px;
		margin-top: 0px;
	}

	#lomake {
		padding: 30px;
	}

	.header-col {
		border-radius: 0 0 0 0 !important;
	}

	header {
		padding-top:10px;
		box-shadow: none;
		background: var(--bs-body-bg);
		position:fixed;
	}

	header.scrolling-on-mobile {
		padding-top:0;
	}

	.logo-container {
		margin-left: 10px;
	}
}

@media (max-width: 768px) {
	.evt-header {
		display:block !important;
	}
	.evt-cat {
		margin-bottom:20px !important;
	}
	.evt-sidebar-col {
		padding-left:0;
		padding-right:0;
		padding-top:40px;
	}
	.benefit-card {
		display:block;
	}
	.benefit-thumb {
		margin-bottom:12px;
	}
}

@media (max-width: 500px) {
	h1,h2 {
		word-break:break-word;
	}
	#lomake h2.lomake-headline {
		font-size:26px;
	}
}

@media (max-width: 420px) {
	#mainhero h1 {
		font-size: 27px;
		line-height: 1.2;
		padding-bottom: 20px;
	}

	#mainhero p {
		font-size: 16px;
	}

	a.button,
	#mainhero a.button {
		margin-right: 0;
		width: 100%;
		text-align: center;
		font-size: 14px;
	}
}