@import "/src/styles/helpers";

.section {
	@include lightSection;
	@include regularFont;

	padding: 3rem 1rem;
	overflow-x: hidden;

	@media (max-width: 768px) {
		padding: 2rem 1rem;
	}

	h2 {
		text-align: center;
		font-size: 2.5rem;
		margin-bottom: 3rem;
		color: $accent_colour;
	}
}

.mainContent {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	max-width: 1400px;
	margin: 0 auto;

	@media (min-width: 1280px) {
		flex-direction: row;
		gap: 2rem;
		align-items: stretch;
	}
}

.currentWorkSection {
	@media (min-width: 1280px) {
		flex: 1 1 54%;
		padding-right: 2rem;
		border-right: 2px solid $accent_colour;
	}

	h2 {
		text-align: center;
		font-size: 2rem;
		margin-bottom: 2rem;
		color: $accent_colour;
	}
}

.educationSection {
	@media (min-width: 1280px) {
		flex: 1 1 42%;
		margin: auto 0;
	}

	@media (max-width: 1279px) {
		padding-top: 2rem;
		border-top: 2px solid $accent_colour;
	}

	h2 {
		text-align: center;
		font-size: 1.75rem;
		margin-bottom: 1.5rem;
		color: $accent_colour;
	}
}

.educationEntry {
	background-color: transparentize($gray, 0.85);
	padding: 1rem;
	margin-bottom: 1rem;
	border-radius: 8px;
	border-left: 3px solid $accent_colour;

	&:last-child {
		margin-bottom: 0;
	}

	.degree {
		font-weight: bold;
		color: $accent_colour;
		font-size: 1rem;
		margin-bottom: 0.3rem;
	}

	.institution {
		font-style: italic;
		font-size: 0.9rem;
		margin-bottom: 0.5rem;
		color: #666;
	}

	.notes {
		font-size: 0.85rem;
		margin: 0.5rem 0;
		padding-left: 1rem;

		li {
			margin-bottom: 0.25rem;
		}
	}

	.details {
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 0.8rem;
		color: #999;
		margin-top: 0.5rem;
		flex-wrap: wrap;
		gap: 0.5rem;
	}
}

.content {
	display: flex;
	flex-direction: column;
	gap: 2rem;

	@media (min-width: 900px) {
		flex-direction: row;
		gap: 2rem;
		align-items: flex-start;
	}

	@media (max-width: 899px) {
		align-items: center;
		gap: 1.5rem;
	}
}

.imageContainer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;

	@media (min-width: 900px) {
		flex: 0 0 25%;
		gap: 1.5rem;
	}
}

.imageWrapper {
	position: relative;
	width: 200px;
	height: 200px;
	flex-shrink: 0;
}

.profileImage {
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border: 4px solid $accent_colour;
}

.roleInfo {
	text-align: center;

	h3 {
		font-size: 1.5rem;
		margin-bottom: 0.5rem;
		color: $accent_colour;
	}

	.company {
		font-size: 1.2rem;
		margin-bottom: 0.3rem;
	}

	.specialization {
		font-style: italic;
		color: #666;
		margin-bottom: 0.3rem;
	}

	.locationWrapper {
		display: flex;
		justify-content: center;
		margin-top: 0.5rem;
	}

	.location {
		font-size: 0.75rem;
		color: #999;
	}
}

.companyLink {
	color: rgb(0, 214, 254);
	text-decoration: none;
	font-weight: 600;

	&:hover {
		text-decoration: underline;
	}
}

.description {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;

	@media (min-width: 900px) {
		flex: 1;
	}

	p {
		line-height: 1.7;
		text-align: justify;
		font-size: 0.9rem;
		margin: 0;

		@media (max-width: 899px) {
			text-align: left;
			font-size: 0.85rem;
		}
	}
}
