/* Variables */
:root {
  --primary-color: #591E71;
  --secondary-color: #589DAF;
  --accent-color: #C598D8;
  --text-color: #333333;
  --nav-height: 60px;
  --footer-bg: #1a1a1a;
}



/* CSS Reset - Modern and comprehensive */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}


.hide{
display:none !important;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Remove default padding */
ul,
ol {
  padding: 0;
}

/* Remove default list styling */
ul,
ol {
  list-style: none;
}

/* Reset default styling for hr */
hr {
  border: 0;
  border-top: 1px solid;
  opacity: 0.25;
}

/* Button reset */
button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* Table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Reset fieldset */
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* Reset blockquote and q */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
  content: none;
}

/* Remove default focus outline - remember to define your own! */
*:focus {
  outline: none;
}

/* Anchor tags */
a {
  text-decoration: none;
  color: inherit;
}







/* Visually hidden, but still available to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Make it visible again when focused/activated (for keyboard users) */
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}




















/* Base Typography */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-color);
}

/* Layout Container */
.layout-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header for Inner Pages */
.mavric-header {
  background: var(--primary-color);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
}

/* Navigation */
.main-navigation {
    /*background: linear-gradient(to right, #ffffff00 30vw, #ffffff 60vw, #ffffff);*/
    background:#fff;
    color: var(--primary-color);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.33rem 1rem 0.33rem 1rem;
}

.main-navigation ul:not(.contextual-links) {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.main-navigation a {
    text-transform: capitalize;
  color: var(--primary-color);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color 0.3s ease;
    font-weight: bold;
    font-family: 'Montserrat';
    font-size: 1.2rem;
}
.hero-spacer {
    display: block;
    position: relative;
    height: 4px;
    background-color: var(--primary-color);
}
.main-navigation a:hover {
  color: var(--secondary-color);
  text-decoration:underline;
}

.main-content ul {
    list-style: unset;
    padding-left: 2rem;
}
.basicPageLeft p{
    margin: unset;
}

.site-logo-hero {
	height: 32vh;
    position: absolute;
    display: inline-block;
    background-color: var(--background-color);
    border-radius: 50%;
    padding: 0.33rem;
    box-shadow: var(--background-color) 0px 0px 2rem 2rem;
    left: 4rem;
    top: 3rem;
    max-height: calc(50vh - 8rem);
}
.site-logo-hero img {
    width: 100%;
    height: 100%;
}
/* Logo Positioning */
.site-logo-nav {
  position: absolute;
  z-index: 1001;
}

/* Inner page logo positioning */
.mavric-header .site-logo-nav {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Front page logo positioning - overlapping nav */
.hero-section .site-logo-nav {
  position: absolute;
  bottom: -30px; /* Adjust to overlap nav */
  left: 50%;
  transform: translateX(-50%);
}

.nav-logo img {
  height: 80px; /* Larger for overlap effect */
  background: white;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero-section {
  position: relative;
    min-height: 400px;
    height: 50vh;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-color);
    background-image: url(/mavricipf/themes/custom/cscc/css/Banner.png);
    background-size: cover;
    /* background: no-repeat; */
    background-repeat: no-repeat;
    background-position: bottom left;
}

/* Hero Content - Rotating View Container */

.hero-content{
    display: flex;
    top: 40px;
    margin-top: 60px;
    margin-bottom: 61px;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    align-content: flex-end;
    height: 80%;
    height: calc(100% - 80px);
}
/* Styles for rotating hero items (view output) */
.hero-content .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-content .hero-slide.active {
  opacity: 1;
}

.hero-content .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(107, 44, 145, 0.7) 0%, rgba(0, 166, 160, 0.7) 100%);
}

.hero-content .hero-text {
    display: inline-block;
    /* position: absolute; */
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 600px;
    right: 2vw;
    top: 12vh;
    font-size: 3rem;
    text-align: right;
    font-weight: 900;
    font-family: "Montserrat";
    /* text-shadow: -4px 4px 8px var(--primary-color); */
    text-shadow: 4px 4px 6px var(--footer-bg), -4px 4px 6px var(--footer-bg), 0px 4px 4px var(--footer-bg);
    line-height: 3.33rem;
    margin: 0 2vw 0 auto;
}
.hero-content h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-override {
    width: 100%;
    height: 100%;
    background: no-repeat;
    background-size: cover;
    background-position: center left;
}


/* Front page navigation at bottom of hero */
.hero-section .main-navigation {
  position: relative;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 3rem 0 200px 0;
  background: #f8f9fa;
}

.content-container {
  max-width: 1900px;
  margin: 0 auto;
  padding: 0 2vw;
}

/* Footer */
.mavric-footer {
  background: var(--footer-bg);
  color: white;
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

.footer-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content > div {
  margin-bottom: 2rem;
}
.footer-content {
    position: relative;
    margin-top: calc(-10vh - 3rem);
    text-align: right;
}
.footer-menu-wrapper {
    text-align: center;
}

/* Footer Menu */
/*.footer-menu-wrapper ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    flex-direction: column;
}*/

.footer-menu-wrapper ul {
    display: grid;
    gap: 2rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    flex-direction: column;
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: column dense;
    align-content: space-between;
    justify-content: center;
    align-items: start;
    justify-items: start;
}


.footer-menu-wrapper a {
  color: white;
  transition: color 0.3s ease;
}

.footer-menu-wrapper a:hover {
  color: var(--secondary-color);
  text-shadow
}

/* Footer Supporters */
.footer-supporters {
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Footer Bottom */
.footer-bottom {
  font-size: 0.875rem;
  color: #ccc;
}

.footer_branding {
    position: relative;
    height: 20vh;
	text-align: center;
}

/* Footer Logo */
.footer_branding img {
    height: 100%;
    filter: brightness(0) invert(1);
    margin: 0 auto;
}

.footer-logo-BG {
    height: 100%;
    width: auto;
    display: inline-block;
    background-color: var(--footer-bg);
    border-radius: 50%;
    padding: 1rem;
}
.footer-spacer {
    align-items: center;
    text-align: center;
    width: 100%;
    display: block;
    height: 1rem;
    top: 0;
    position: relative;
    background-color: var(--secondary-color);
}
.footer-spacer div {
    width: calc(20vh + 2rem);
    display: inline-block;
    position: relative;
    top: calc(-10vh + 0rem);
    height: calc(20vh + 2rem);
    border-radius: 50%;
    background-color: var(--secondary-color);
}
img.UNCbranding {
    max-width: 20vw;
    position: relative;
    display: inline-block;
}

.content-container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 2vw;
}

.fpCard {
    display: flex;
    /* width: 80vw; */
    height: 323px;
    justify-content: space-between;
}
.fpCardContent {
    flex: 1 1;
}
.fpCardContent p {
    display: block;
    height: 124px;
    margin: 0 1vw 26px 1vw;
}
.fpCardContent hr {
    height: 4px;
    border: 0;
    opacity: 1;
    margin: 0 0 26px 0;
    background-color: var(--primary-color);
}
.fpCardContent hr:nth-child(odd) {
    margin: 24px 0 0 0;
    background-color: var(--secondary-color);
}
.fpCardLinks{
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.fpCardLinks a {
    font-weight: bold;
    font-size: 1.10rem;
    padding: 0.33rem 1rem;
    color: var(--background-color);
    background: var(--primary-color);
    border-radius: 0.75rem;
}

.fpCardImage {
    flex: 1 1;
    height: 100%;
    overflow: hidden;
}
.fpCardImage img {
    height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
	    border: 4px solid var(--primary-color);
}
.fpCardsContainer {
    display: flex;
    flex-direction: column;
}
.fpCardsContainer>div {
    margin: 50px 0;
}
.fpCard:nth-child(even of .fpCard) {
    display: flex;
    flex-direction: row-reverse;
}
.fpCard:nth-child(even of .fpCard) h2 {
    text-align: right;
}









.basicPageContent {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10vw;
}
.basicPageLeft {
    flex: 1 1;
    min-width: 400px;
}
.basicPageRight {
    flex: 1 1;
    min-width: 400px;
}
.basicPageRight img {
    border-radius: 33px;
}

header.mavric-header.not-front {
    display: block;
	position: fixed;
    left: 0px;
    right: 0px;
	background: none;
	height: var(--nav-height);
	height: 40px;
}
header.mavric-header.not-front .main-navigation {
    background: none;
    color: var(--primary-color);
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}
header.mavric-header.not-front .main-navigation>div {
	background:#fff;
	display:inline-block;
}

header.mavric-header.not-front .main-navigation>.navSpacer {
    background: linear-gradient(to right, #ffffff00 0, #ffffff 20vw, #ffffff);
    flex: 1 1;
    height: auto;
}

.mavric-header .site-logo-nav {
    right: unset;
    transform: unset;
	position: absolute;
	top: 2px;
    left: 2px;
}

header.mavric-header.not-front .main-navigation #block-cscc-main-menu
 {
    padding: 0.33rem 1rem 0.33rem 1rem;
}

section.hero-section.not-front {
    height: 10vh;
    min-height: 320px;
}

section.hero-section.not-front span.hero-text{
    top: 8vh;
}

.basicPageButtonContainer .basicPageButton{
    font-weight: bold;
    font-size: 1.10rem;
    padding: 0.33rem 1rem;
    color: var(--background-color);
    background: var(--primary-color);
    border-radius: 0.75rem;
}
.basicPageButtonContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    margin: 4vh 0;
}

.newsBlock {
    text-align: center;
}
.newsBlock hr {
    height: 4px;
    border: 0;
    opacity: 1;
    margin: 0 0 26px 0;
    background-color: var(--primary-color);
}
.newsBlock .newsSpacer {
    display: block;
    height: 8px;
    border: 0;
    margin: 2rem 0 4rem 0;
    background-color: var(--accent-color);
    opacity: 0.1;
    border-radius: 20px;
}

.newsBlock header {
    width: 100%;
}
.newsBlock {
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1rem;
	margin: 0 0 6rem 0;
}
.newsContainer.views-row {
    min-width: 300px;
    width: 25vw;
    border: 4px solid var(--primary-color);
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
	max-width:530px;
}
.newsContainer a {
    font-weight: bolder;
    font-size: 1.2rem;
    width: 80%;
    margin: auto;
    padding: 0.5rem 2rem;
}
.newsContainer p {
    padding: 0 2rem 1rem 2rem;
    text-align: justify;
}
.newsBlock footer {
    width: 100%;
}

.fpNewsButton a {
    font-weight: bold;
    font-size: 1.10rem;
    padding: 0.33rem 1rem;
    color: var(--background-color);
    background: var(--primary-color);
    border-radius: 0.75rem;
}

.newsPage{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}


.newsPage ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: space-between;
    gap: 2rem;
}
.newsPage header {
    width: 100%;
    flex: 1 1 100%;
}
.news-list {
    flex: 1 1;
    min-width: 400px;
}
.newsPage footer {
    width: 12vw;
    min-width: 256px;
    border-left: 2px solid var(--secondary-color);
    padding: 0 0 0 2rem;
}
.newsPageItem footer {
    width: 12vw;
    min-width: 256px;
    border-left: 2px solid var(--secondary-color);
    padding: 0 0 0 2rem;
}
.newsPageContainer {
    display: flex;
    align-content: stretch;
    flex-direction: row;
    max-height: 600px;
    height: 33vh;
    /* min-height: 200px; */
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #c598d824;
}
.newsPageContainer:nth-last-child(-n + 2) {
    flex: 1 1;
    min-width: 300px;
    /* height: 30vh; */
    border-bottom: none;
    border-right: 2px solid #c598d824;
    padding-right: 2rem;
    /* max-height: 263px; */
}
.newsPageContainer img {
    height: 100%;
    border-radius: 2rem;
    display: block;
    /* flex: 1 1 33%; */
    width: auto;
}
.newsPageContainer:nth-last-child(-n + 1) {
    border: none;
    padding-right: 0;
}

.newsPageContainer a {
    font-weight: 900;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--secondary-color);
    padding: 1rem 0;
    margin: 0 0 1rem 0;
    display: inline-block;
}
.newsPageSideContainer {
    border-top: 4px solid #589daf1f;
    padding: 0.5rem 0.25rem;
}
.newsBlockEmbed form {
    margin-bottom: 1rem;
}
.newsBlockEmbed input {
    width: 100%;
}
.newsPageContainer>div {
    flex: 25 22 699px;
}
.newsPageContainer:nth-last-child(-n + 2) img {
    max-height: 160px;
}
.newsPageItem {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}
.newsPageItem header {
    width: 100%;
}
.newsPageItem .newsItemContainer {
    flex: 1 1;
    display: flex;
    gap: 2rem;
}
.newsItemContainer img {
    flex: 1 1;
    width: 40%;
}



.oncallwrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-direction: row;
}
.onCallCard{
    border: #ededed 3px solid;
    padding: 0.75rem 1em;
    margin: 1vw 2vw;
    border-radius: 12px;
    background: #fff;
    box-shadow: #33333347 0px 8px 8px 0px;
}









/* Who we are page with map */
.whoweare {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: space-between;
    gap: 2rem;
}
.siteContainer.views-row {
    max-width: 15vw;
    width: 15vw;
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 1rem;
}

.whoweare header {
    flex: 100%;
}
.whoweare form {
    flex: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    flex-wrap: wrap;
}
.whoweare label {
    position: absolute;
    margin: -14px 0px 0px 12px;
    font-size: 0.75em;
    background: #f8f9fa;
    padding: 2px 6px 0px 6px;
    border-radius: 12px;
}
.whoweare select{
    padding: 6px 2px 6px 2px;
    border-radius: 20px;
    border: solid #33333388 2px;
}
.whoweare input{
    border-radius: 20px;
    border: solid #33333388 2px;
    padding: 5px 6px 5px 6px;
}
.whoweare form div{
   margin-right: 2em;
}

.whoweare form input{
    border-radius: 20px;
    border: solid 2px #33333388;
}

.whoweare hr {
    padding: 0.25em;
    border: 0;
    background: #616161;
    opacity: 1;
    border-radius: 1em;
}


.main-navigation ul>li>ul {
    position: absolute;
    /* background: #fff; */
    display: flex;
    flex-direction: column;
    height: auto;
    z-index:100;
}
.main-navigation ul>li>ul>li {
    background: #fff;
}
.hero-content>div {
    display: flex;
    top: 40px;
    margin-top: 60px;
    margin-bottom: 0;
    flex-direction: row;
    justify-content: flex-end;
    align-items: baseline;
    align-content: flex-end;
}



.main-content table>thead>tr {
    background: var(--primary-color);
    color: #fff;;
}
.main-content table th {
    padding: 8px 8px 4px 8px;
    text-align:left;
}
.main-content table th:first-child {
  border-top-left-radius:8px;
}
.main-content table th:last-child {
  border-top-right-radius:8px;
}

.main-content table td {
    padding: 0px 8px;
    border-bottom: solid 2px #a6a6a6;
    border-right: solid 2px #E3E3E3;
}

.main-content table tr td:last-child {
  border-right: 0;
}
.main-content table tr:last-child td{
  border-bottom:0;
}



.main-content table{
  width:100%;
}

.main-content header nav>ul{
  display:flex;
  list-style:none;
  border-bottom: 8px solid var(--secondary-color);
  padding: 0;
}
.main-content header nav>ul>li{
  padding:0;
  margin-right:2px;
}
.main-content header nav>ul>li a{
  display:block;
  padding:2px 8px;
  background: var(--primary-color);
  color: #fff;
  border-radius:8px 8px 0px 0px;
  border:solid 2px var(--primary-color);
  border-bottom:none;
}
.main-content header nav>ul>li .is-active{
  background: var(--secondary-color);
  border: solid 2px var(--secondary-color);
  border-bottom:none;
  color: #fff;
}

.main-content header nav>ul>li a:hover{
  background: var(--accent-color);
  color: #fff;
}



.vem-toolbar{
  justify-content:flex-end;
}
.vem-toolbar button{
    background: var(--primary-color);
    padding: 4px 14px;
    color: var(--background-color);
    border-radius: 8px;
}




.core-card-wrapper {
    display: inline-block;
    padding: 8px 0px 0px 30px;
    background: var(--primary-color);
    border-radius: 12px;
    box-shadow: 4px 7px 10px 0px rgb(from var(--footer-bg) r g b / 0.3);
    margin: 0px 0px 30px 0px;
}
.core-card-wrapper>span {
    font-size: 1.5rem;
    color: var(--background-color);
    font-weight: bold;
    margin-right: 1rem;
}
.core-card {
    background: var(--background-color);
    padding: 7px 14px;
    border-radius: 0 0 12px 0;
}
.core-card p {
    line-height: 1;
}
.clinical-cores-table form {
    display: flex;
    margin-bottom: 12px;
}
.clinical-cores-table form div {
    margin: 0px 6px;
}
.views-element-container form {
    display: flex;
    margin-bottom: 12px;
}
.views-element-container form div{
    margin:0px 6px;
}

a.button {
    padding: 8px 12px;
    background: var(--primary-color);
    border-radius: 8px;
    color: var(--background-color);
    font-weight: bold;
    margin: 12px 0px;
    display: inline-block;
}
.views-element-container header>div:last-child {
    margin-bottom: 42px;
}
.committee-nav {
    display: flex;
    justify-content: space-between;
}
.committee-list ul {
    list-style: none;
}
.committee-list ul li a {
    padding: 4px 9px;
    color: var(--background-color);
    background: var(--primary-color);
    border-radius: 6px;
    font-weight: bold;
    margin: 0px 0px 12px 0px;
    display: inline-flex;
}







/* Sticky navigation for front page */
@supports (position: sticky) {
  .is-front .hero-section .main-navigation {
    position: sticky;
    top: 0;
    z-index: 999;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .main-navigation ul {
    flex-direction: column;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .nav-logo img {
    height: 60px;
  }
  
  .footer-menu-wrapper ul {
    flex-direction: column;
    gap: 1rem;
  }
}
