@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
	--white: #fff;
	--black: #131313;
	--dark-black: #131010;
	--gray: #C4C0C0;
	--green-trnsp: rgba(34, 133, 103, 0.15);
	--green: #228567;
}

* {
	margin: 0;
	padding: 0;
	outline: none;
}

html {
	margin: 0;
	padding: 32px 0;
}

body {
	font-family: "Lato", sans-serif;
	background: var(--white);
	color: var(--black);
	font-size: 18px;
	font-weight: 500;
}

.hidden {
	display: none;
}

.wrapper {
	max-width: 1284px;
	width: 100%;
	margin: 0 auto;
}

.wrapper-courses {
	max-width: 1328px;
	width: 100%;
	margin: 0 auto;
}

header {
	width: 100%;
	display: flex;
	justify-content: space-between;
}

.logo {
	width: 212px;
	height: 105px;
	object-fit: cover;
}

#logo-kai {
	max-width: 417px;
	width: 90%;
	height: 131px;
	flex-shrink: 0;
	aspect-ratio: 417/131;
}

.logo-kai-box {
	display: flex;
	justify-content: center;
	align-items: center;
}

.contact-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
}

.contact-info a {
	color: var(--black);
	text-decoration: none;
	font-size: 18px;
	font-weight: 500;
}

.welcome-content {
	display: flex;
	padding: 44px 0 48px;

	h1 {
		color: var(--dark-black);
		font-size: 41px;
		font-weight: 600;
		margin: 0;
	}
}

.welcome-info {
	display: flex;
	gap: 32px;
	flex-direction: column;
}

p {
	color: var(--dark-black);
	font-size: 18px;
	font-weight: 500;
}

p:last-child {
	margin-bottom: 0px;
}

.gray-line {
	width: 100%;
	border-top: 1px solid var(--gray);
}

.main-content {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding-top: 48px;
}

.speaker {
	display: flex;
	padding: 24px;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
	align-self: stretch;
	border-radius: 15px;
	background: var(--green-trnsp);
	margin-bottom: 48px;
}

.speaker-box {
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;

	.speaker-box-info {
		min-width: 70%;
		display: flex;
		flex-direction: column;
		gap: 32px;
	}

	h2 {
		font-size: 20px;
		color: var(--dark-black);
	}

	.speaker-name {
		font-weight: 800;
		margin: 0;
	}

	.speaker-list {
		max-width: 85%;
		text-align: justify;
		font-size: 16px;
	}

	.speaker-course-name,
	.speaker-date {
		font-weight: 800;
	}

	.speaker-box-photo {
		max-width: 500px;
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		height: 400px;
		
		img {
			width: 308px;
			height: 370px;
			object-fit: cover;
			border-radius: 15px;
		}
	}
}

.speaker-courses-info {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.speaker-courses-module {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.speaker-courses-module > * {
	flex: 0 0 calc(50% - 10px);
	box-sizing: border-box;	

	.custom-panel-heading {
		background-color: #2FB58C;
	}
}

.speaker-courses-module > .custom-panel.open {
	background-color: #2FB58C !important;
}

.custom-panel {
  color: var(--white);
  background-color: transparent;
  border-radius: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.custom-panel-heading,
.scroll-to-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px;
  font-size: 26px;
  font-weight: 500;
  background-color: var(--green);
  border-radius: 75px;
  transition:
    border-radius 0.4s ease,
    background-color 0.4s ease,
    transform 0.4s ease;
}

.custom-panel-heading img,
.scroll-to-form img {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
}

body .scroll-to-form{
	border-color: var(--green);
}

body .scroll-to-form:hover{
	background-color: var(--green);
	border-color: var(--green);
}

.custom-panel-body {
	flex-direction: column;
	gap: 20px;
  padding: 0 24px;
  font-size: 16px;
  color: var(--white);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.4s ease;
}

.custom-panel.open {
  background-color: rgba(34, 133, 103, 0.80);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.custom-panel.open .custom-panel-heading {
  border-radius: 15px;
  background-color: transparent;
}

.custom-panel.open .custom-panel-heading img {
  transform: rotate(-90deg);
}

.custom-panel.open .custom-panel-body {
  max-height: 500px;
  opacity: 1;
  padding: 15px 24px;
}

.custom-panel.open .custom-panel-body {
  display: flex;
}

.join-courses {
	display: flex;
	flex-direction: column;
	padding: 64px;
	background: var(--green-trnsp);
	border-radius: 15px;
	gap: 80px;
	width: 100%;

	h2 {
		color: var(--dark-black);
		font-size: 32px;
		font-weight: 700;
	}
}

.join-courses-box {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.form-to-join form {
	max-width: 430px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 50px;
	align-items: center;
	background-color: var(--white);
	padding: 40px 64px;
	border-radius: 15px;
}

.btn-send {
	display: flex;
	width: 220px;
	height: 62px;
	padding: 10px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	border-radius: 75px;
	background: var(--green);
	color: var(--white);
	font-size: 18px;
	font-weight: 400;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.4s ease-in-out;
}

body .scroll-to-form{
	width: 100%;
}

.form-content {
	min-width: 320px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-input {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--black);
}

.join-courses-info {
	display: flex;
	flex-direction: column;
	gap: 32px;

	h3 {
		color: var(--green);
		font-size: 24px;
		font-weight: 700;
		margin: 0;
	}

	h2 {
		color: var(--dark-black);
		font-size: 40px;
		font-weight: 700;
		margin: 0;
	}

	ul {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		gap: 8px;
		margin: 0;
		padding: 0;
	}

	li {
		display: flex;
		gap: 8px;
		font-size: 20px;
		list-style: none;
		align-items: center;
	}
}

footer {
	display: flex;
	flex-direction: column;
	gap: 48px;
	padding: 42px 0 0;
}

.footer-contact {
	display: flex;
	flex-direction: row;
	justify-content: space-between;

	.footer-logo {
		width: 217.229px;
		height: 187px;
		flex-shrink: 0;
		aspect-ratio: 217.23/187.00;
	}

	.footer-contact-info {
		display: flex;
		align-items: center;
		justify-content: center;

		ul {
			margin: 0;
			padding: 0;
			font-size: 18px;
			font-weight: 500;
		}

		li {
			list-style: none;
		}

		a {
			color: var(--black);
			font-size: 18px;
			font-weight: 500;
			text-decoration: none;
		}
	}
}

.footer-name-date {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#popup-message {
	max-width: 429px;
	width: 95%;
	padding: 50px 70px;
	display:none; 
	justify-content: center;
	align-items: center;
	position:fixed; 
	top:50%; 
	left:50%; 
	transform:translateX(-50%); 
	background:#fff;  
	z-index:9999; 
	border-radius: 15px;
}

.success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: var(--white);
	gap: 32px;
}

@media (min-width: 320px) and (max-width: 840px) {

	body, p {
		font-size: 14px;
	}

	.wrapper,
	.wrapper-courses {
		width: 90%;
	}

	.logo {
		width: 171px;
		height: 85px;
	}

	.contact-info {
		flex-direction: column;
		gap: 0;
		justify-content: normal;

		a {
			font-size: 12px;
		}
	}

	.welcome-content,
	.speaker-box {
		flex-direction: column;
	}

	.welcome-content h1 {
		font-size: 24px;
	}

	.speaker {
		margin-bottom: 32px;
		gap: 24px;
	}

	.speaker-box {

		h2 {
			font-size: 14px;
		}

		.speaker-list {
			font-size: 14px;
		}

		.speaker-box-photo {
			height: 300px;

			img {
				width: 236px;
				height: 283px;
			}
		}
	}

	.custom-panel {
		margin: 0;
	}

	.custom-panel-heading,
	.scroll-to-form {
		font-size: 14px;
		padding: 14px;
	}

	.custom-panel-heading img,
	.scroll-to-form img {
		width: 14px;
		height: 14px;
	}

	.speaker-courses-info,
	.speaker-courses-module {
		gap: 10px;
	}

	.speaker-courses-module > * {
		flex: 0 0 calc(100%);
	}

	.join-courses {
		padding: 32px 16px;
		gap: 32px;
		border-radius: 25px;

		h2,
		.join-courses-info h3,
		.join-courses-info li {
			font-size: 16px;
		}

		.join-courses-info h2 {
			font-size: 24px;
		}

		.join-courses-box {
			flex-direction: column;
			gap: 32px;
		}
	}

	.form-to-join form {
		padding: 32px;
		gap: 24px;

		.form-content {
			min-width: auto;
		}

		.btn-box {
			width: 100%;
		}

		.btn-send {
			width: inherit;
			font-size: 14px;
			height: 44px;	
		}
	}

	footer {
		gap: 24px;
		padding: 24px 0;
	}

	.footer-contact .footer-logo {
		width: 117px;
		height: 101px;
	}

	.footer-contact .footer-contact-info ul {
		font-size: 14px;

		a {
			font-size: 14px;
		}
	}

	.footer-name-date {
		font-size: 10px;
	}
}