/* ScienceAide Study Guides */

.sa-sg {
	--sa-sg-border: #e5e5e8;
	--sa-sg-heading: #08082d;
	--sa-sg-text: rgba(1, 0, 40, 0.702);
	--sa-sg-blue: #2579f5;
	--sa-sg-category-bg: rgba(0, 150, 136, 0.0784);
	--sa-sg-category-text: rgba(0, 150, 136, 1);
	width: 100%;
}

.sa-sg *,
.sa-sg *::before,
.sa-sg *::after {
	box-sizing: border-box;
}

.sa-sg__grid {
	display: grid;
	gap: 30px;
	align-items: stretch;
}

.sa-sg__grid--1 { grid-template-columns: minmax(0, 1fr); }
.sa-sg__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sa-sg__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sa-sg__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.sa-sg-card {
	background: #fff;
	border: 1px solid var(--sa-sg-border);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	transition: transform .2s ease, box-shadow .2s ease;
}

.sa-sg-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(8, 8, 45, .08);
}

.sa-sg-card__media {
    position: relative;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #f1f4f7;
}

#content h3.sa-sg-card__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2em;
    letter-spacing: -0.2px;
    color: rgba(1, 0, 40, 1);
}

#content h3.sa-sg-card__title a {
    color: rgba(1, 0, 40, 1);
}

.sa-sg-card__image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.sa-sg-card__image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform .35s ease;
}

.sa-sg-card:hover .sa-sg-card__image {
	transform: scale(1.025);
}

.sa-sg-card__image-link--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef4fb;
	color: var(--sa-sg-heading);
	font-weight: 600;
	text-decoration: none;
}

.sa-sg-card__popular {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 7px 11px;
	border-radius: 5px;
	background: #17174a;
	color: #fff;
	font-size: 11px;
	line-height: 1;
	font-weight: 600;
}

.sa-sg-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.sa-sg-card__taxonomy {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	min-height: 25px;
	margin: 0 0 15px;
	font-size: 12px;
	line-height: 1.3;
}

.sa-sg-card__category {
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 6px;
	background: var(--sa-sg-category-bg);
	color: var(--sa-sg-category-text);
	font-weight: 500;
}

.sa-sg-card__dot {
	color: rgba(1, 0, 40, 0.702);
}

.sa-sg-card__audience {
    color: rgba(27, 26, 62, 1);
    font-weight: 500;
}

.sa-sg-card__title {
	margin: 0 0 8px;
	color: var(--sa-sg-heading);
	font-size: 20px;
	line-height: 1.3;
	font-weight: 500;
}

.sa-sg-card__title a {
	color: inherit;
	text-decoration: none;
}

.sa-sg-card__title a:hover {
	color: var(--sa-sg-blue);
}

.sa-sg-card__excerpt {
	color: var(--sa-sg-text);
	font-size: 14px;
	line-height: 1.55;
}

.sa-sg-card__divider {
	width: 100%;
	height: 1px;
	margin: 16px 0;
	background: rgba(230, 230, 234, 1);
}

.sa-sg-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 14px;
	color: #44445a;
	font-size: 12px;
	line-height: 1.4;
}

.sa-sg-card__meta-item {
	display: inline-flex;
	font-weight: 500;
    font-size: 12px;
	align-items: center;
	gap: 5px;
	color: rgba(1, 0, 40, 0.702);
}

.sa-sg-card__meta-item svg {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	fill: none;
	stroke: rgba(1, 0, 40, 0.702);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sa-sg-card__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: auto;
	padding-top: 24px;
	color: var(--sa-sg-blue);
	font-size: 14px;
	line-height: 1.3;
	font-weight: 500;
	text-decoration: none;
}

a.sa-sg-card__link{
	color: rgba(47, 128, 237, 1) !important;
}

.sa-sg-card__link span {
	transition: transform .2s ease;
}

.sa-sg-card__link:hover span {
	transform: translateX(4px);
}

.sa-sg__load-more-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 40px;
}

.sa-sg__load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 125px;
	padding: 12px 22px;
	border: 1px solid var(--sa-sg-blue);
	border-radius: 5px;
	background: var(--sa-sg-blue);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 500;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.sa-sg__load-more:hover {
	background: #fff;
	color: var(--sa-sg-blue);
}

.sa-sg__load-more:disabled {
	cursor: wait;
	opacity: .65;
}

.sa-sg__load-more.is-loading .sa-sg__button-arrow {
	animation: sa-sg-spin .7s linear infinite;
}

.sa-sg__loader {
	color: var(--sa-sg-text);
	font-size: 13px;
}

@keyframes sa-sg-spin {
	from { transform: rotate(0); }
	to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
	.sa-sg__grid--3,
	.sa-sg__grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sa-sg__grid {
		gap: 22px;
	}
}

@media (max-width: 767px) {
	.sa-sg__grid--1,
	.sa-sg__grid--2,
	.sa-sg__grid--3,
	.sa-sg__grid--4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.sa-sg__grid {
		gap: 20px;
	}

	.sa-sg-card__title {
		font-size: 19px;
	}
}
