/*
Theme Name: Basic-WP-2024-SM
Author: Sofiya Mamchych
Description: Basic web page design
Version: 1.9
*/

:root {
  --primary-color: #53c5e4;
  --primary-transparent: #53c5e447;
  --primary-transparent-solid: #cfeff8;
  --primary-deep: #187c97;
  --black: #141414;
  --white: #fff;
}

@font-face {
  font-family: "Futura Bold";
  src: url("fonts/Futura.otf");
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
/*	font-family: "Futura Bold", Arial, sans-serif;*/
	font-family: Arial, sans-serif;
	font-size: 16px;
	position: relative;
	color: var(--black);
	scroll-behavior: auto; 
}

ul {
	list-style: none;
	padding: 0;	
	margin: 0;
}

a {
	text-decoration: none;
	color: var(--primary-color);
}

img {
	width: 100%;	
}

h1 {
	font-size: 34px;
}

h2 {
	font-size: 30px;
}

h3 {
	font-size: 28px;
}

h4 {
	font-size: 19px;
	line-height: 1.3;
	font-weight: normal;
}

p {
	margin-top: 0;
}

h2.styled {
	position: relative;
	display: inline-block;
}

h2.styled.link a {
	color: var(--black);
}

h2.styled::before {
	display: block;
  content: '';
  width: 100%;
  height: 3px;
  position: absolute;
  left: 0;
  bottom: -12px;
  background-color: var(--primary-color);
}

.btn {
  padding: 16px 30px;
  background-color: var(--primary-deep);
  color: var(--white);
  font-size: 18px;
  border-radius: 100px;
  border: 2px solid var(--primary-deep);
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-right: 10px;
  margin-bottom: 10px;
  text-align: center;
  display: inline-block;
}

.btn.white {
  color: var(--primary-deep);
  background-color: var(--white);
}

.btn.white:hover {
  background-color: var(--primary-transparent);
}

.btn.animated {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn.animated:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-deep);
  border-radius: 100px;
  z-index: -2;
}

.btn.animated:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--white);
  transition: width 0.6s ease;
  border-radius: 100px;
  z-index: -1;
}

.btn.animated:hover:before {
  width: 100%; 
  transition: width 0.1s ease;
}

.btn-wrap {
	display: flex;
	flex-direction: column;
}

.btn.animated:hover {
  color: var(--primary-deep);
}

.px-1 {
	padding-right: 15px !important;
	padding-left: 15px !important;
}

.px-2 {
	padding-right: 30px !important;
	padding-left: 30px !important;
}

.px-3 {
	padding-right: 50px !important;
	padding-left: 50px !important;
}

.py-basic {
	padding-top: 25px;
	padding-bottom: 25px;
}

.mb-sm {
	margin-bottom: 10px;
}

.mr-sm {
	margin-right: 10px;
}

.mb-lg {
	margin-bottom: 40px;
}

.d-block {
	display: block !important;
}

.d-none {
	display: none !important;
}

.small-text-image {
	max-width: 600px !important;
	margin: 30px 0;
}

.xs-text-image {
	max-width: 394px !important;
	display: inline-block !important;
}

.w-100 {
	width: 100% !important;
}

.no-after::after {
	display: none !important;
}

.tabs {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.tab-select .note {
	width: 100%;
}

.tab-select .note h3 {
	margin-top: 0;
}

.tabs .item {
	border: 2px solid var(--black);
	padding: 10px 30px;
	cursor: pointer;
	margin-right: 10px;
	margin-bottom: 10px;
}

.tabs .item:hover {
	background-color: var(--primary-transparent);
	border: 2px solid var(--black);
}

.tabs .item.active {
  background-color: var(--primary-color);
  border: 1px solid var(--black);
}

.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 15px;
}

.hero-wrap {
	background-color: var(--primary-transparent);
}

.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero .img {
	max-width: 250px;
	margin-bottom: 40px;
	width: 100%;
	border: 36px solid var(--white);
	background-color: var(--white);
	box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
	border-radius: 500px;
}

.hero .img img {
	box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
	transition: all 0.5s linear;
	border-radius: 500px;
	transform: rotate(0deg);
	border: 0px solid;
}

.hero .text {
	padding: 20px;
}

.cubes {
	list-style: none;
	padding: 0;
}

.cubes li {
	padding: 20px 40px 20px 20px;
	border-radius: 10px;
	display: block;
	position: relative;
	box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
	cursor: default;
}

.cubes li span {
	position: relative;
}

.grid .links {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
}

.grid-item {
	margin: 0 auto;
	width: 100%;
	color: var(--black);
	display: block;
	background-color: var(--primary-color);
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	top: 0;
	transition: top 0.1s linear;
	border: 16px solid var(--white);
	box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.icon.circle img {
	border: 2px solid transparent;
}

.grid-item.big {
	background-color: transparent;
	border: 0;
}

.grid-item h4 {
	padding: 26px;
	margin: 0;
	font-weight: 600;
}

.grid-item h4.sm {
	font-size: 19px;
}

.grid-item .icon {
	padding: 36px 26px 26px 26px;
	text-align: center;
}

.grid-item .icon.top {
	padding: 0;
	position: relative;
	display: inline-block;
	background-color: var(--primary-transparent-solid);
  left: calc(50% - 25px);
  border-radius: 0 0 50px 50px;
}

.grid-item .icon img {
	width: 50px;
	padding: 10px;
}

.grid-item-img {
	width: 100%;
  padding-top: 75%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.active-projects .grid-item-img {
	border-bottom: 1px solid #d8d8d8;
	border-top: 1px solid #d8d8d8;
}

.partners .links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.partners .links a {
	max-width: 150px;
	min-width: 100px;
	display: block;
	margin: 5px 20px;
}

.contacts .links {
	display: flex;
	flex-wrap: wrap;
}

.contacts .links a {
	border-radius: 100px;
	margin-right: 10px;
	padding: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid;
	color: var(--black);
	margin-bottom: 10px;
}

.contacts .links a:hover{
	background-color: var(--primary-color);
}

.contacts .links a img {
	width: 20px;
}

.content {
	font-size: 20px;
	line-height: 1.5;
	max-width: 800px;
	margin: 0 auto;
}

.content img {
	height: auto;
	max-width: 100%;
	display: block;
	margin: 30px auto;
}

.note {
	background-color: var(--primary-color);
	padding: 20px;
	border-radius: 10px;
	display: inline-block;
}

.note.form-wrap {
	width: 100%;
	max-width: 600px;
}

.note.white {
	background-color: var(--white);
	border: 2px solid;
}

.note.white a.banklink {
	margin-top: 20px;
	display: block;
	font-weight: bold;
	text-decoration: underline;
	color: var(--black);
}

.note h4 {
	font-weight: 600;
	font-size: 30px;
	margin: 0 0 32px 0;
}

.badge {
	background-color: var(--primary-color);
	padding: 8px 26px;
	border-radius: 50px;
	display: inline-block;
	font-size: 20px;
	margin: 40px 0;
}

.badge.outline {
	background-color: transparent;
	padding: 6px 24px;
	border: 2px solid var(--primary-color);
}

a.badge {
	color: var(--black);
}

.category-posts {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.category-posts article {
	padding: 30px;
	border-radius: 10px;
	border: 2px solid var(--primary-color);
	width: 100%;
}

.category-posts article img {
	width: 40px;
}

.category-posts h2 {
	font-size: 26px;
}

.post-excerpt {
	font-size: 16px;
}

.team .item {
	display: flex;
	margin-bottom: 30px;
	flex-direction: column;
}

.team .item .img {
	width: 200px;
}

.team .item .text h4 {
	font-size: 30px;
	font-weight: 600;
	margin: 18px 0 10px 0;
}

.join {
	padding: 30px;
	background-color: var(--primary-color);
	color: var(--white);
	border-radius: 10px;
}

.join h2 {
	margin-top: 0;
	position: relative;
	display: inline-block;
	line-height: 1;
}

.join .text {
	padding: 30px;
	background-color: var(--white);
	color: var(--black);
	border-radius: 10px;
	font-size: 20px;
	line-height: 1.3;
}

.made-by {
	margin: 20px 0;
	font-size: 12px;
	text-align: center;
	color: var(--primary-deep);
}

@media (min-width: 550px) {
	.hero .img {
		max-width: 350px;
	}
	.grid .links {
		grid-template-columns: repeat(2, 1fr);
	}

	.grid-item {
		margin: 0;
		max-width: unset;
	}

	.btn-wrap {
		flex-direction: row;
	}

	.team .item {
		flex-direction: row;
	}

	.team .item .text {
		width: calc(100% - 200px);
		padding: 20px;
	}

	.h2.styled::before {
		height: 4px;
	}

	.join h2::after {
		width: 30px;
		height: 30px;
		content: '';
		display: block;
		position: absolute;
		right: -38px;
		background-image: url('img/icons/heart.svg');
		background-size: contain;
		background-repeat: no-repeat;
		top: 3px;
	}

	h2.styled::after {
	  display: block;
	  content: '';
	  width: 50px;
	  height: 50px;
	  background-image: url('img/icons/arrow-right.svg');
	  background-size: contain;
	  background-repeat: no-repeat;
	  position: absolute;
	  right: -50px;
	  transition: right 1.5s ease;
	  top: calc(50% - 25px);
	}

	h2.styled.in-viewport::after {
	  right: -80px;
	}

	.cubes {
		position: relative;
	}

	.cubes::after {
		display: block;
		content: '';
		width: 2px;
		height: 100%;
		background-color: var(--primary-color);
		position: absolute;
		text-align: 0;
		top: 0;
		left: calc(50% - 1px);
	}

	.cubes li::after, .cubes li::before  {
		width: 24px;
		height: 24px;
		content: '';
		position: absolute;
		background-image: url('img/icons/heart.svg');
		background-size: contain;
		background-repeat: no-repeat;
		filter: invert(13%) sepia(85%) saturate(2944%) hue-rotate(356deg) brightness(103%) contrast(85%);
		top: calc(50% - 12px);
		display: none;
		z-index: 20;
		transition: all 0.4s ease-out;
	}

	.cubes li:nth-child(2n+1)::after {
		right: -32px;
		display: block;
	}

	.cubes li:nth-child(2n+2)::before {
		left: -32px;
		display: block;
	}

	.cubes li:nth-child(2n+1)::before,
	.cubes li:nth-child(2n+2)::after {
		display: block;
		content: '';
		width: 50px;
		height: 2px;
		background: none;
		position: absolute;
		filter: none;
		right: -20px;
		top: calc(50% - 1px);
		z-index: -1;
		border-top: 2px dotted var(--primary-color);
	}

	.cubes li:nth-child(2n+2)::after {
		left: -20px;
	}

	.cubes li {
		padding: 20px;
		font-size: 14px;
		width: calc(50% - 20px);
		background-color: var(--white);
	}

	.cubes li:nth-child(2n+2) {
		margin-left: auto;
	}

	.cubes li:nth-child(2n+1):hover::after {
		transform: scale(1.5);
	}

	.cubes li:nth-child(2n+2):hover::before {
		transform: scale(1.5);
	}

}

@media (min-width: 992px) {
	h1 {
		font-size: 50px;
	}

	h2 {
		font-size: 40px;
	}

	h4 {
		font-size: 21px;
	}

	.container {
		padding: 0 30px;
	}

	.partners .links a {
		margin: 0 20px;
	}

	.tab-select .note {
		width: 600px;
	}

	.grid-item {
		transition: all 0.2s linear;
	}

	.grid-item:hover {
		top: -5px;
		transition: top 0.2s linear;
	}
	.grid-item.big:hover {
		transform: rotate(0.6deg);
		top: 0;
		transition: all 0.2s linear;
		transform-origin: top center;	
	}

	.py-basic {
		padding-top: 80px;
		padding-bottom: 80px;
	}
	.px-1 {
		padding-right: 40px;	
		padding-left: 40px;
	}

	.mb-lg {
		margin-bottom: 70px;
	}

	.mt-lg {
		margin-top: 50px;
	}

	.mt-link {
		margin-top: 30px;
		display: inline-block;
	}

	.text-center {
		text-align: center;
	}

	.hero-wrap:hover .hero .img img {
		transform: rotate(3deg);
		transition: all 0.3s linear;
		border: 10px solid var(--primary-transparent);
	}

	.hero {
		flex-direction: row;
	}

	.hero .img {
		margin: 0;
	}

	.hero .text {
		padding: 50px;
	}

	.cubes li {
		padding: 40px 70px 40px 40px;
		font-size: 22px;
		width: calc(50% - 20px);
		background-color: transparent;
	}

	.grid .links {
		grid-template-columns: repeat(3, 1fr);
	}

	.grid.big .links {
		grid-template-columns: repeat(3, 1fr);
	}

	.grid-item {
		margin-right: 20px;
	}

	.icon.circle img {
		transition: all 0.3s linear;
	}

	.note {
		padding: 50px;
	}

	.note.flag {
		padding: 50px 200px 50px 50px;
		border-radius: 10px 200px 200px 10px;
	}

	.note a {
		color: var(--black);
		text-decoration: underline;
	}

	.note img {
		max-width: 400px;
		margin-bottom: 60px;
	}

	.category-posts article {
		width: calc(50% - 10px);
	}

	.join h2::after {
		right: -50px;
		top: 8px;
	}
}

@media (min-width: 1200px) {
	.grid .links {
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
	}
}

