/************
 ** Shostack + Associates (c) 2021;
 ** Brand Developent by Melanie Warner;
 ** Graphic Design by Paola Coda;
 ** Website Development by Connie "Sunfire" Hill;
 ************/


@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif&family=Sarabun:wght@300;400;500;600;700&display=swap');
/* font-family: 'IBM Plex Serif', serif;
font-family: 'Sarabun', sans-serif; */

:root {
	--color1: #5253a4; /* purple-ish-blue */
	--color2: #7ec352; /* lime-y-green */
	--color3: #f85212; /* orange-y-red */
	--lighter-color1: #d3cde6;
	--lighter-color2: #e5f3dc;
	--lighter-color3: #fddbcf;
	--lighter-color4: #ebf2fa;
}
html, body { height: 100%; }
body {
	font-size: 18px;
	line-height: 1.6;
	font-family: 'IBM Plex Serif', serif;
	color: #414141;
	margin: 0;
	display: flex;
	flex-direction: column;
}

h1, h2, h3 {
	font-family: 'Sarabun', sans-serif;
	font-weight: 500;
	color: var(--color3);
}
h4 {
	font-family: 'Sarabun', sans-serif;
	font-weight: 700;
	color: #464646;
}
a { color: #5885c4; }
a:hover { color: var(--color2); }
/* external links
a[target="_blank"]:after { content: "\f35d"; } */
a.header-link {
	color: var(--color3);
	text-decoration: none;
}

footer a.icon { color:#fff; }
footer a.icon:hover, footer a.icon:focus { color: var(--color2); }

dl { margin:1em; }
dt {
	padding-top: 0.8em;
	font-family: 'Sarabun', sans-serif;
	font-weight: 700;
	color: #464646;
}
blockquote {
	border-left: 2px solid #9c9c9c;
	padding-left: 2em;
}
.divider { border-bottom: 1px solid var(--color2); }
iframe { display: block; }
.center iframe, .center img {
	margin: 50px auto;
}
q { display:block; margin-top:1em; }
.align-right { text-align:right; }
.right { float: right; }
.left { float:left; }
main ul li { 
	list-style-type:none;
}
main ul li:before { 
	content: " > ";
	color: var(--color2);
	font-weight: 700;
	line-height: 1.7;
}
.sublist li:before {
	content: "";
}
.page.has-sidebar .sidebar ul li {
	padding: 5px 0;
}

.green-pill {
	display: inline-block;
	width: 135px;
	height: 27px;
	border-radius: 50px;
	background-color: #b2db97;
	color: #000;
	text-decoration: none;
	font-size: 17px;
	font-weight: 600;
	font-family: 'Sarabun', sans-serif;
	text-align: center;
}
.green-pill:hover { color: #fff; background-color: var(--color2); }

.whitepaper-meta, .credit-text {
	font-style: italic;
	font-size: 0.8em;
}
.small-text { font-size: 0.7em; }

nav, header, footer { flex-shrink: 0; }

/** Skip To Main Content Link
 * visually hidden but still avail to screen readers **/
#skip a {
	position:absolute;
	left:-10000px;
	top:auto;
	width:1px;
	height:1px;
	overflow:hidden;
} 
#skip a:focus {
	position:static;
	width:auto;
	height:auto;
}

/** 404 & Coming Soon Pages **/
.page-404 p, .page-coming-soon p { 
	margin-top: 4em;
}
.page-404 #main-content,
.page-coming-soon #main-content {
	width: 100%;
	max-width: 800px;
	margin: 10px auto;
}
#img404, #img-coming-soon { 
	height: 20em;
	float: left;
	padding-right: 2em;
}
@media screen and (max-width: 799px) {
	#img404, #img-coming-soon { float: none; padding-right:inherit; }
	#img-coming-soon { width: 100%; }
}

main {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 3rem;
	flex: 1 0 auto;
}
main.page { padding-top: 125px; }
main.three-up, main.has-sidebar.landing { padding-top: inherit; }
main.three-left { padding-top: 20px; }

/** Navigation **/
#menu-icon {
	background-color: var(--color3);
	height: 40px;
	width: 40px;
	background: url("../img/green-hamburger-OFF.png") center no-repeat;
	background-size: 32px 32px;
	visibility: visible;
	border: 1px solid transparent;
	border-radius: 45%;
	display: inline-block;
	position: fixed;
	top: 2em;
	right: 2em;
}
#menu-icon[aria-expanded="true"] {
	background: url("../img/green-hamburger-ON.png") center no-repeat;
	background-size: 32px 32px;
}

nav.topmenubar { 
	height: 125px;
	width: 100%;
	background-color: #fff;
	position: fixed;
	top: 0;
	z-index: 100;
	transition: background-color 0.4s;
}
.topmenubar #main-logo {
	height: 60px;
	position: relative;
	top: 26%;
	margin-left: 2rem;
}
.topmenubar.reversed {
	background-color: var(--color1);
	transition: background-color 1s;
	color: #fff;
	-webkit-box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.2);
	box-shadow: 0px 2px 10px 0px rgba(0,0,0,0.2);
}
#menu {
	font-family: 'Sarabun', sans-serif;
	float: right;
	text-align: right;
	display: none; /* hidden by default for small screens */
	background-color: #fff;
	margin-top: 75px;
	border-radius: 9px;
	border: 1px solid var(--color2);
	padding-left: 10px;
	padding-right: 10px;
}
#menu li {
	min-height: 20px;
	padding: 5px;
	list-style-type: none;
	border-bottom: 1px solid var(--color2);
}
#menu li:last-of-type,
#menu .submenu li:last-of-type {
	border-bottom: none;
}
#menu li a {
	text-decoration: none;
	font-weight: 400;
}
.topmenubar.reversed li a {
	color: #cdcdcd;
}
.topmenubar li a,
.topmenubar.reversed .submenu li a {
	color: #555;
}
.topmenubar.reversed #menu li a:hover {
	color: #fff;
}

.submenu {
	display: none;
	position: absolute;
	z-index: 200;
	top: 100%;
	padding: 0 10px;
	background-color: var(--color2);
	-webkit-box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	border-radius: 9px;
}
.submenu li {
	margin-left: -30px;
	background-color: var(--color2);
}
.submenu li a { color: #414141; }
.submenu li a:hover { color: #fff; }
.has-submenu .fa-chevron-down {
	padding-left: 0.2em;
	color: var(--color2);
}
#menu .submenu li {
	border-bottom: 1px solid #fff;
	padding: 5px;
	text-align: left;
}


/** Page Content **/
#homepage-header, #innerpage-header { 
	background-color: var(--color1);
	color: #fff;
	padding-top: 125px;
}
#homepage-header h1, #innerpage-header h1 { 
	display: inline-block;
	color: #fff;
	max-width: 15em;
	font-size: 22px;
	margin-left: 2rem;
	line-height: 1.2;
	overflow: visible;
}
#innerpage-header h1 { max-width:80%; }
#homepage-underpill, #innerpage-underpill {
	height: 8px;
	width: 45%;
	margin: 0;
	background-color: var(--color2);
	border-top-right-radius: 50px;
	border-bottom-right-radius: 50px;
}
.page-title { 
	font-family: 'Sarabun', sans-serif;
	display: inline-block;
	margin-bottom: 10px;
	color: #000;
	font-size: 28px;
	font-weight: 600;
}
#title-underpill {
	height: 15px;
	position: relative;
	left: -3rem;
	margin: 0;
	margin-bottom: 30px;
	background-color: var(--color2);
	border-top-right-radius: 50px;
	border-bottom-right-radius: 50px;
}
#homepage-pill-lines { 
	width: 35%;
	height: 95px;
	float:right;
}
#innerpage-pill-lines {
	float: right;
	height: 75px;
}

div#header-right-side-white { 
	display: inline;
	background-color: #fff;
}


.intro-columns {
	display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 800px;
    grid-gap: 50px;
    padding-bottom: 2rem;
}
.three-up .intro-columns {
	max-width: 100%;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.homepage .intro-columns img {
	width: 125px;
}
.page .intro-columns img { max-width: 100%; }
.intro-columns .column-top img { margin-top: 2em; }
.column h2, .sidebar h2 {
	color: var(--color3);
	font-family: 'Sarabun', sans-serif;
	font-weight: 600;
	font-size: 28px;
}
#threat-modeling-book-cover img {
	border: 1px solid #000;
}

.three-left .flex { display:flex; }
.three-left .left-column { width:30%; max-width: 400px; }
.three-left .right-column { 
	width: 65%; 
	max-width: 800px;
	border-left: 1px solid var(--color2);
	padding-left: 35px;
	margin-left: 35px;
}

.four-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	max-width: 100%;
	grid-gap: 45px;
}
.four-columns.associates { 
	grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
}
.headshot { 
	max-height:200px; 
	width:auto;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	background-color: #aaa;
}
.associate-and-photo { 
	display:inline-flex;
	margin-bottom: 1.5em;
}
.associate-and-photo .headshot { 
	margin-right: 1.5em;
}
.associate-and-photo h4 { margin-top:0; }

nav.breadcrumbs {
	font-family: 'Sarabun', sans-serif;
	font-weight: 300;
	font-size: 15px;
	padding-top: 2em;
}
nav.breadcrumbs a {
	color: #8c8c8c;
	text-decoration: none;
}
nav.breadcrumbs a:hover {
	text-decoration: underline;
	color: var(--color1);
}
nav.breadcrumbs a.current {
	color: #000;
}
nav.contents {
	border: 1px dotted var(--color2);
	background-color: #f2f2f2;
	padding: 0 2em;
	max-width: 75%;
	margin:  1em 2.5em;
}
nav.contents p#toc-title {
	font-weight: 700;
	font-size: 1.1em;
}
#tm-long-page section:not(:first-child) {
	border-top: 1px solid var(--color2);
	margin-top: 2rem;
	line-height: 1.6;
}
#tm-long-page h3 { color: var(--color1); }

.courses-widget-area {
	width:100%;
	display:inline-flex;
	grid-gap:3em;
}
.landing .courses-widget-area {
	display:block;
}

#main-content > .belowthefold {
	border-top: 1px solid var(--color2);
	margin-top: 2rem;
	line-height: 1.6;
}

.landing .belowthefold {
	grid-column: 1 / 3;
}

.grid-container {
	font-size: 1.05em;
	display:grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px 40px;
}
.grid-container div { border-radius: 8px; }
.grid-container .heading { 
	grid-area: 1/1/2/3;
	text-align:center;
	padding:8px 0;
	background-color:#414141;
	color:white;
}
.grid-container .title {
	font-family: 'Sarabun', sans-serif;
}
.grid-container .block, .grid-container .block2 {
	padding:12px;
}
.grid-container ul {
	padding-inline-start:1em;
}
.grid-container.first .block.liveinst { 
	background-color:var(--lighter-color1);
}
.grid-container.first .block.selfpace { 
	background-color:var(--lighter-color2);
}
.grid-container.second .block { 
	background-color:var(--lighter-color4);
}
.grid-container.second .block2 {
	background-color: var(--lighter-color3);
}


.list-with-logos li:before {
	display:none;
}
.list-with-logos li {
	display:inline-grid;
	margin-bottom:2em;
}
.list-with-logos .img-holder img {
	width:100%;
	max-width:300px;
	height:auto;
	padding-right:1em;
}
.list-with-logos p {
	margin-top:0;
}



aside {
	border-left: none;
	padding-left: 0;
	margin-left: 0;
	border-top: 1px solid var(--color2);
}
.aside-intro h2 { margin-top: 0; }
.aside-intro p { line-height: 1.3; }
aside article {
	margin-top: 10px;
	margin-bottom: 10px;
	font-family: 'Sarabun', sans-serif;
}
aside article img {
	width: 175px;
	height: auto;
}
.blog-feed-post-title {
	font-weight: 600;
	line-height: 1.1;
	color: var(--color1);
	margin: 0;
}
.link2post { text-decoration: none; }
.blog-feed-post-date {
	font-weight: 500;
	font-size: 12px;
	color: #8c8c8c;
	margin: 0.4em 0;
}
.blog-feed-post-excerpt{
	font-weight: 300;
	font-size: 15px;
	line-height: 1;
	color: #414141;
	margin-top: 0.3em;
}

.main-blog-feed {
	margin-top: 3em;
}
.main-blog-feed article {min-height: 150px;}

.main-blog-feed article a {
	text-decoration: none;
}
.main-blog-feed article a:hover,
.main-blog-feed article a:focus {
	text-decoration: underline;
	color: var(--color2);
}

.main-blog-feed .postmeta,
.blogpost .postmeta,
.search-result .postmeta {
	font-family: 'Sarabun', sans-serif;
	font-weight: 300;
	font-size: 16px;
	font-style: italic;
	margin-top: 0;
}
.main-blog-feed .post-main-img {
	width: auto;
	max-height: 165px;
	padding-top: 2em;
}

.blogpost .post-title {
	margin-bottom: 0.5em;
	font-size: 28px;
}
.blogpost .postmeta {
	text-align: right;
}
.blogpost h3 { color: #464646; }

#blog-footer-nav {
	text-align: center;
	font-family: 'Sarabun', sans-serif;
}
#blog-footer-nav ol {
	list-style-type: none;
	font-weight: 400;
}
#blog-footer-nav ol li {
	display: inline-block;
	border-radius: 9px;
	margin: 0 5px;
}
#blog-footer-nav ol li a {
	text-decoration: none;
	padding: 12px;
}
#blog-footer-nav ol li a:hover,
#blog-footer-nav ol li a:focus {
	color: var(--color3);
}
#blog-footer-nav [aria-current] {
	background-color: var(--color2);
}
#blog-footer-nav [aria-current] a {
	color: #fff;
}
.single-post-main-img {
	max-width: 100%;
}
.single-post-main-img img {
	max-width: 100%;
	height: auto;
}
.single-post-excerpt {
	display: none;
}

.page .sidebar {
	font-size: 15px;
	font-family: 'Sarabun', sans-serif;
	font-weight: 300;
	line-height: 1.4;
}
#course-list {
	padding-left: 1em;
}

#threat-prop-mitigation {
	width: 75%;
	border-collapse: collapse;
}
#threat-prop-mitigation td {
	border: 1px solid var(--color2);
	padding: 0.5em;
}

#mc_embed_signup {
	background: #fff;
	clear: left;
}


footer {
	height: fit-content;
	border-top: 12px solid var(--color2);
	background-color:  var(--color1);
	text-align: center;
	font-size: 15px;
	font-family: 'Sarabun', sans-serif;
	font-weight: 400;
	color: #fff;
	overflow: visible;
}
footer ul {
	display: inline-flex;
	justify-content: space-evenly;
	align-items: center;
	padding: 0;
	margin: 0;
	flex-flow: row wrap;
}
footer ul li {
	list-style-type: none;
	padding: 0.4em;
}
footer .center { width: 100%; }



/*** MEDIA QUERIES ***/

/* smallest screens */
@media screen and (max-width: 575px) {
	.topmenubar #main-logo { height: 45px; }
	#menu-icon { 
		right: 2em;
	}
	#menu { margin-top: 45px; }
	#homepage-header, #innerpage-header { height: 100px; }
	#homepage-pill-lines, #innerpage-pill-lines { display: none; }
	#homepage-underpill, #innerpage-underpill { width: 75%; }
	#homepage-header h1, #innerpage-header h1 { max-width: unset; }
	main {
		padding: 1em;
	}
}

/* not quite smallest screens */
@media screen and (min-width: 576px) {
	aside .blogs-list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		grid-gap: 2em;
	}
	.main-blog-feed .post-main-img {
		margin-right: 2em;
		float: left;
		width: auto;
		max-width: 300px;
		padding-top: unset;
	}
}

@media screen and (max-width: 799px) {
	/* settings for mobile menu */
	#menu.is-active {
		display: inherit;
	}
	.topmenubar.reversed #menu li a { color:initial; }
	#menu {
		margin-right: 12px;
		text-align: center;
		width: 215px;
		-webkit-box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
		box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	}
	#menu li { padding-right: 0; }
	.submenu {
		position: static;
		-webkit-box-shadow: none;
		box-shadow: none;
	}
	.has-submenu.is-active .submenu { display: block; }
	.has-submenu.is-active .fa-chevron-down { color: var(--color3); }
	.submenu li { margin-left: 0; }

	main {padding: 2em;}

	/* stacking of 3 columns */
	.intro-columns {
		display: block;
	}
	.intro-columns .column {
		margin-bottom: 5em;
		clear: both;
	}
	.intro-columns .column:last-of-type {
		margin-bottom: 2em;
	}
	.intro-columns .column img {
		float: left;
		padding-right: 1em;
		padding-top: 1em;
	}
	.three-up .intro-columns .column img {
		float: none;
	}
	.intro-columns .green-pill { float: right; }

	.three-left .flex { display: block; }
	.three-left .left-column { width: 95%; max-width:800px; }
	.three-left .right-column {
		width: 90%;
		max-width:800px;
		border-left: none;
		padding-left: inherit;
		margin-left: inherit;
		border-top: 1px solid var(--color2);
		margin-top: 25px;
		padding-top: 25px;
	}
	.four-columns.associates {}
	.associate-and-photo { display:block; }

	.landing .grid-container { display: block; }
	.landing .grid-container .block,
	.landing .grid-container .block2 { margin: 1em 0; }
}

/* wide tablet */
@media screen and (min-width: 800px) {
	/* turn off mobile menu */
	#menu-icon { visibility: hidden; }
	/* apply widescreen menu design */
	#menu {
		background-color: transparent;
		margin-top: initial;
		border-radius: 0;
		padding-right: 0;
		display: inherit;
		float: right;
		position: relative;
		top: 1.4em;
		display: inline-flex;
		justify-content: space-evenly;
		align-items: center;
		border: none;
		padding-inline-start: unset;
	}
	#menu li { 
		border-bottom: none;
		padding: 1em;
	}
	#menu li a:hover {
	    color: #000;
	}

	#menu li.has-submenu:hover .submenu,
	#menu li.has-submenu:focus .submenu,
	.submenu:hover, .submenu:focus {
		display: block;
	}
	#menu li.has-submenu:hover .fa-chevron-down,
	#menu li.has-submenu:focus .fa-chevron-down {
		color: var(--color3);
	}
	.submenu li { margin-left: inherit; }
	#homepage-header,
	#homepage-pill-lines { height: 150px; }
	#innerpage-header,
	#innerpage-pill-lines { height: 115px; }
	#homepage-header h1 {
		font-size: 32px;
		max-width: 12em;
	}
	#innerpage-header h1 { font-size:32px; }
	#homepage-underpill { 
		height: 12px;
		max-width: 50%;
	}
	#innerpage-underpill{ height:12px; width:60%; }
	main { display: block; }
	aside {
		padding-top: 1.5em;
		margin-top: 1.5em;
		width: 100%;
	}
	.page .sidebar {
		margin-top: 10em;
		margin-left: 3em;
	}
	.landing .sidebar,
	.landing #main-content {
		margin-top: 2em;
	}
	.landing .courses-widget-area {
		display:inline-flex;
	}


	footer ul { flex-wrap: nowrap; }
	footer ul li { padding: 1em; }
}

@media screen and (min-width: 905px) {
	#homepage-header,
	#homepage-pill-lines { height: 175px; }
}

/* smaller desktop/laptop */
@media screen and (min-width: 976px) {
	#menu { margin-right: 2em; }
	#homepage-header,
	#innerpage-header { width: 98%; }
	#homepage-header h1,
	#innerpage-header h1 { font-size:36px; }
	#homepage-header,
	#homepage-pill-lines {
		height: 200px;
	}
	#homepage-underpill { height: 15px; }
	main.has-sidebar {
		display: grid;
		grid-template-columns: 3fr 1fr;
	}
	.list-with-logos li {
		grid-template-columns:20% 75%;
		grid-column-gap:2%;
		margin-bottom:0.9em;
	}
	aside {
		max-width: 200px;
		border-top: none;
		padding-top: 0;
		border-left: 1px solid var(--color2);
		padding-left: 2rem;
		margin-left: 2em;
		grid-column: 2;
	}
	.landing .sidebar {
		max-width: 300px;
	}
	.landing .courses-widget-area {
		display:inline-block;
	}
	.homepage .aside-intro h2 { margin-top:-15px; }
	footer ul li { padding: 1.4em; }

}

/* biggest screens */
@media screen and (min-width: 1100px) {
	.topmenubar #main-logo { margin-left: 4em; }
	#menu { margin-right: 4em; }
	#homepage-header,
	#innerpage-header { width: 95%; }
	#homepage-header h1 { font-size: 40px; }
	#homepage-header h1,
	#innerpage-header h1 { margin-left:2em; }
	aside .blogs-list { grid-gap: 0; }
	.grid-container { width:85%; }
}

