/* ==========================================================================
   Atrium Resources — Frontend Styles
   Single Swiper markup used at all breakpoints.
   When Swiper is NOT active (count <= slidesPerView), the wrapper gets the
   .is-static class from JS and renders as a plain flex/grid row.
   ========================================================================== */

/* Section wrapper
   ========================================================================== */

.atrium-resources {
    text-align: center;
}

/* ==========================================================================
   Slider wrapper
   ========================================================================== */

.atrium-resources__slider {
    overflow: hidden; /* Required by Swiper */
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Revealed by JS once Swiper is initialised or static class is applied */
.atrium-resources__slider.is-ready {
    opacity: 1;
}

/* Static state — applied by JS when count <= slidesPerView.
   Swiper is not initialised; slides sit in a plain flex row. */
.atrium-resources__slider.is-static {
    overflow: visible;
}

.atrium-resources__slider.is-static .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transform: none !important; /* Override any residual Swiper transform */
}

@media (max-width: 1023px) {
    .atrium-resources__slider.is-static .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .atrium-resources__slider.is-static .swiper-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Hide bullets when static */
.atrium-resources__slider.is-static .atrium-resources__bullets {
    display: none;
}

/* ==========================================================================
   Pagination bullets (active Swiper only)
   ========================================================================== */

.atrium-resources__bullets {
    margin-top: 10px;
    text-align: center;
}

.atrium-resources__bullets.swiper-pagination-bullets {
    position: relative;
    bottom: 0 !important; /* Override Swiper's default bottom positioning */
}

.atrium-resources__bullets .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cccccc;
    opacity: 1;
    margin: 0 4px;
    transition: background 0.2s ease;
}

.atrium-resources__bullets .swiper-pagination-bullet-active {
    background: #1a1a1a;
}

/* ==========================================================================
   Card — shared styles
   ========================================================================== */

.atrium-resources__card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.atrium-resources__card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: opacity 0.2s ease;
}


/* Card image
   ========================================================================== */

.atrium-resources__card-image {
    width: 100%;
    overflow: hidden;
    background-color: #e8e8e8;
    margin-bottom: 20px;
    position: relative; /* Needed for label positioning */
}

.atrium-resources__card-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.atrium-resources__card-link:hover .atrium-resources__card-image img {
    transform: scale(1.03);
}

.atrium-resources__card-image--placeholder {
    width: 100%;
    height: 100%;
    background-color: #d0d0d0;
}

/* Card label — overlaid on the featured image, top-right */
.atrium-resources__card-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: var(--e-global-typography-564efa8-font-family), Sans-serif;
    font-size: 0.6em;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 5px;
    pointer-events: none;
}

/* Card body
   ========================================================================== */

.atrium-resources__card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

/* Card title
   ========================================================================== */

.atrium-resources__card-title {
    margin: 0;
    font-family: var(--e-global-typography-a71eee4-font-family), Sans-serif;
    /*font-size: var(--e-global-typography-a71eee4-font-size);*/
    font-size: 1.1em;
    letter-spacing: 0;
    color: var(--e-global-color-text);
    text-transform: uppercase;
}

/* Card date
   ========================================================================== */

.atrium-resources__card-date {
    font-family: var(--e-global-typography-564efa8-font-family), Sans-serif;
    /*font-size: var(--e-global-typography-564efa8-font-size);*/
    font-size: 0.8em;
    /*line-height: var(--e-global-typography-564efa8-line-height);*/
    line-height: 1;
    color: var(--e-global-color-6751f9f);
}





/* ==========================================================================
   RESOURCES LIBRARY PAGE
   ========================================================================== */

.resource-categories-desktop {
	position: relative;
}
@media (max-width: 1024px) {
    .resource-categories-desktop {
        display: none;
    }
}
.resource-categories-desktop ul.resource-categories {
	list-style: none;
	display: flex;
	flex-direction: row;
	justify-content: center;
	margin: 0 !important;
}

.resource-categories-desktop ul.resource-categories li {
    font-family: var(--e-global-typography-aca7e16-font-family), Sans-serif;
    font-size: var(--e-global-typography-aca7e16-font-size);
    font-weight: var(--e-global-typography-aca7e16-font-weight);
    line-height: var(--e-global-typography-aca7e16-line-height);
    letter-spacing: var(--e-global-typography-aca7e16-letter-spacing);
	text-transform: uppercase;
	padding: 0 20px;
	color: var(--e-global-color-text);
}
.resource-categories-desktop ul.resource-categories li a {
	display: block;
	padding-bottom: 5px;
	border-bottom: 2px solid transparent;
	color: inherit;
	transition: all 0.1s ease-in-out;
}
.resource-categories-desktop ul.resource-categories li.active a {
	border-color: var(--e-global-color-primary);
}
.resource-categories-desktop ul.resource-categories li:hover a {
	color: var(--e-global-color-primary);
	border-color: var(--e-global-color-primary);
}

.resource-categories-mobile {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
}

.resource-categories-mobile label {
    font-family: var(--e-global-typography-aca7e16-font-family), Sans-serif;
    font-size: var(--e-global-typography-aca7e16-font-size);
    font-weight: var(--e-global-typography-aca7e16-font-weight);
    line-height: var(--e-global-typography-aca7e16-line-height);
    letter-spacing: var(--e-global-typography-aca7e16-letter-spacing);
    color: var(--e-global-color-primary);
	text-transform: uppercase;
}
.resource-categories-mobile select {
    border: 1px solid var(--e-global-color-5e94bfc);
    background-color: var(--e-global-color-8a7cfc3);
    padding: 5px 10px;
	margin-bottom: 0 !important;
	flex: 1;
	width: 100%;
	font-family: var(--e-global-typography-aca7e16-font-family), Sans-serif;
    font-size: var(--e-global-typography-aca7e16-font-size);
    font-weight: var(--e-global-typography-aca7e16-font-weight);
    line-height: var(--e-global-typography-aca7e16-line-height);
    letter-spacing: var(--e-global-typography-aca7e16-letter-spacing);
    color: var(--e-global-color-text);
	text-transform: uppercase;
    background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%) !important;
    background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%, 100% 0 !important;
}

@media (min-width: 1024px) {
    .resource-categories-mobile {
        display: none;
    }
}

@media (max-width: 567px) {
    .resource-categories-mobile {
        flex-direction: column;
		align-items: flex-start;
		gap: 10px;
    }
}

.resources-topics-list, .resources-topic-children {
	list-style: none !important;
}
.resources-topics-list {
	margin: 0 0 0 10px !important;
}
.resources-topics-list li {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--e-global-color-text);
}
.resources-topic-children {
	margin: 0 0 10px 20px !important;
}
.resources-topic-children li {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--e-global-color-text);
}

.resources-topics-list label {
	display: inline-flex;
    align-items: center;
    margin-bottom: 5px;
}
.resources-topics-list label input[type=checkbox] {
    margin-right: 5px;
}

@media (min-width: 1024px) {
    .atrium-resources-topics .e-n-accordion-item-title {
        pointer-events: none;
    }
	.atrium-resources-topics .e-n-accordion-item-title-icon {
		display: none !important;
	}
}

.resources-search {
	position: relative;
}
.resources-search form {
	display: flex;
	align-items: center;
}
.resources-search input[type=text] {
	margin: 0 !important;
	flex: 1;
	font-family: var(--e-global-typography-d44d8d4-font-family), Sans-serif;
    font-size: var(--e-global-typography-d44d8d4-font-size);
    font-weight: var(--e-global-typography-d44d8d4-font-weight);
    line-height: var(--e-global-typography-d44d8d4-line-height);
    color: var(--e-global-color-text);
	padding: 10px 20px;
    background: transparent;
    border: 0;
	min-height: 48px;
}
.resources-search input[type=text]::placeholder {
	opacity: 1;
    color: var(--e-global-color-text);
}
.resources-search button[type=submit] {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
    background: transparent;
    border: 0;
	width: 48px;
	height: 48px;
	cursor: pointer;
}
.resources-search button[type=submit] svg {
	width: 20px;
	height: 20px;
	fill: var(--e-global-color-text);
	opacity: 0.5;
	transition: all 0.1s ease-in-out;
}
.resources-search button[type=submit]:hover svg {
	opacity: 1;
	fill: var(--e-global-color-primary);
}
.resources-search input[type=text]:focus + button[type=submit] svg {
	opacity: 1;
	fill: var(--e-global-color-primary);
}

.resources-item-type {
	display: inline-block;
	font-family: var(--e-global-typography-98fcacf-font-family), Sans-serif;
    font-size: var(--e-global-typography-98fcacf-font-size);
    font-weight: var(--e-global-typography-98fcacf-font-weight);
    text-transform: var(--e-global-typography-98fcacf-text-transform);
    line-height: var(--e-global-typography-98fcacf-line-height);
    letter-spacing: var(--e-global-typography-98fcacf-letter-spacing);
	color: var(--e-global-color-primary);
	transition: all 0.2s ease-in-out;
}
.resources-item-type:hover {
	color: var(--e-global-color-primary);
}

.resources-item-name {
	display: block;
	font-family: var(--e-global-typography-2e10eca-font-family), Sans-serif;
    font-size: var(--e-global-typography-2e10eca-font-size);
    font-weight: var(--e-global-typography-2e10eca-font-weight);
    line-height: var(--e-global-typography-2e10eca-line-height);
    letter-spacing: var(--e-global-typography-2e10eca-letter-spacing);
	color: var(--e-global-color-text);
	transition: all 0.2s ease-in-out;
}
.resources-item-name:hover {
	color: var(--e-global-color-primary);
}

.resources-item-name.external {
	position: relative;
	padding-right: 30px;
}
.resources-item-name.external .external-icon {
	position: absolute;
	top: 0;
	right: 0;
	width: 20px;
	height: 20px;
}
.resources-item-name.external:hover .external-icon svg {
	stroke: var(--e-global-color-primary);
}
.resources-item-name.external .external-icon svg {
	width: 20px;
	height: 20px;
	stroke: var(--e-global-color-text);
	transition: all 0.1s ease-in-out;
}


