body {
  background-color: #ffffff;
}


/*########################### Header menu ###########################*/
/* There are a few anti-patterns and I will change that later */
#apila-responsive-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #ffffff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}

.apila-header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.apila-logo {
	position: absolute;
	left: 18%;
	top: 50%;
	transform: translateY(-50%);
}

.apila-nav {
	display: flex;
	align-items: center;
	width: 100%;
	justify-content: center;
}

#apila-menu {
	display: flex;
	justify-content: center;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#apila-menu li {
	margin-left: 20px;
	margin-right: 20px;
	margin-top: 15px;
	margin-bottom: 5px;
}

#apila-menu a {
	font-family: Arial, Helvetica, sans-serif;
	text-decoration: none;
	color: #616161;
	font-weight: bold;
	font-size: 15px;
	transition: color 0.4s ease;
}

#apila-menu a:hover {
	color: #32ba45;
}

.option-selected {
	color: #32ba45 !important; /* Override the apila-menu a color */
}

.dropdown {
	position: relative;
	display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
	display: none;
	position: absolute;
	background-color: #ffffff;
	min-width: 180px;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
	color: rgb(36, 36, 36);
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	font-weight: normal !important;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
	background-color: #ebebeb;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
	display: block;
}

.dropdown > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #616161;
    border-bottom: 2px solid #616161;
    margin-left: 5px;
    transform: rotate(45deg);
    vertical-align: 2px;
	transition: border-color 0.4s ease;
}

.dropdown > a:hover::after {
    border-right-color: #32ba45;
    border-bottom-color: #32ba45;
}

#apila-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    position: relative;
}

#apila-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #616161;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

#apila-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(-45deg);
}

#apila-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#apila-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(45deg);
}

@media screen and (max-width: 1350px) {
	.apila-logo {
		left: 10%;
	}
}

@media screen and (max-width: 1050px) {
	.apila-logo {
		left: 4%;
	}
}

@media screen and (max-width: 880px) {
    #apila-menu-toggle {
        display: block;
    }

	#apila-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: #ffffff;
		flex-direction: column;
		padding: 20px;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	}

	#apila-menu.active {
		display: flex;
	}

	#apila-menu li {
		margin: 0;
        width: 100%;
	}

    #apila-menu a {
        display: block;
        padding: 12px 16px;
        color: #616161;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    #apila-menu a:hover {
        background-color: #f1f1f1;
        color: #32ba45;
    }

	#apila-menu-toggle {
		display: block;
	}

	.apila-nav {
		justify-content: flex-end
	}

	.apila-logo {
		left: 20px;
	}

	.dropdown > a::after {
        display: none;
    }

    .dropdown-content {
        display: none !important; /* Hide dropdown content on mobile */
    }

    /* Style the Palvelut link like other top-level links */
    .dropdown > a {
        font-weight: bold;
    }
}

/*########################### Body ###########################*/

a {
	color: #32ba45;
}

a:hover {
	color: #32ba45;
}

/* A lot of !important to override the main style sheet */
body {
	padding-top: 70px;
    max-width: 1300px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
	overflow-x: hidden;
}

.container {
    max-width: 1300px !important;
    width: 100% !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
	font-family: 'Inter', sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.blog-caption,
.blog-aside-header {
    font-family: 'Zilla Slab', serif !important;
}

.layoutSingleColumn {
    max-width: 1240px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.content-area {
    max-width: 1240px !important;
    width: 100% !important;
}

@media (min-width: 1300px) {
    .container {
        width: 1300px !important;
    }
}

/*########################### Footer ###########################*/

.apila-footer {
    background-color: #333333;
    color: white;
    font-family: Arial, sans-serif;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /*center and expand the footer while keeping body !important overrides to main stylesheet*/
    display: flex;
    flex-direction: column;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
	margin-bottom: -40px; /*Bubblegum fix to fix 40px padding after footer. After extensive searching, I have no idea what causes it so this was the approach that works but is not pretty (the cause must be in main style sheet)*/
}

.apila-footer-content {
	padding-top: 13px;
	padding-bottom: 40px;
	padding-left: 20px;
	padding-right: 20px;
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.apila-footer-logo { /* make white with filter then remove filter on hover */
    width: 200px;
    margin-left: auto;
	margin-right: auto;
	margin-bottom: 40px;
	filter: brightness(0) invert(1);
	transition: filter 0.3s ease;
}

.apila-footer-logo:hover {
    filter: none;
}

.apila-footer-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    margin: 0 auto;
}

.apila-footer-info {
    font-size: 18px;
	color: #ffffff;
}

.apila-footer .apila-footer-content .apila-footer-info p br { /* tiny bit bigger br */
    content: "";
    display: block;
    margin-bottom: 0.2em;
}

.apila-footer-nav {
    border-top: 2px solid #4d4d4d;
    padding-top: 20px;
    margin-top: 64px;
	margin-bottom: 27px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.apila-footer-nav a {
    color: #cfcfcf;
    text-decoration: none;
	margin-left: 15px;
	margin-right: 15px;
    margin-top: 40px;
    font-size: 16px;
	transition: color 0.3s ease;
}

.apila-footer-nav a:hover {
	color: #ffffff;
}

.apila-footer-social {
    margin-top: 20px;
	margin-bottom: 60px;
}

.apila-footer-social a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
	transition: color 0.5s ease;
}

.apila-footer-social a:hover {
	color: #32ba45;
}

@media screen and (min-width: 800px) {
	.apila-footer-social a::after {
		content: "LinkedIn";
		background-color: #252525;
		color: #d3d3d3;
		padding: 0 10px;
		border-radius: 5px;
		font-size: 13px;
		font-weight: lighter;
		white-space: nowrap;
		opacity: 0;
		position: absolute;
		bottom: 24.5%;
		left: 50%;
		transform: translateX(-50%);
		transition: opacity 0.3s ease;
		pointer-events: none;
	}
	
	.apila-footer-social a:hover::after {
		opacity: 1;
	}
}


.apila-footer-copyright {
    background-color: #000000;
    padding: 27px 0;
    font-size: 15px;
    color: #ffffff;
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

@media screen and (max-width: 800px) {
  .container--bio td {
    width: 100%!important;
    display: block;
  }
  .container--bio td img#biographyImage {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

