*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.clearfix:before,
.clearfix:after {
  content: '';
  display: table;
}

.clearfix:after {
  clear: both;
}

.display-inline * {
  display: inline-block;
}

.aria-hide {
  display: none;
}

.g-signin {
    margin-bottom: 1rem;
}

/* Variables */
:root {
	--dark-grey: #404040;
	--medium-grey: #8B8B8B;
	--light-grey: #F8F8F8; 
	--black: #000000;
	--pink: #F765F8;
	--blue: #04B9D7;
	--purple: #8426E7;

	--heading-font: arboria, sans-serif;
	--body-font: poppins, sans-serif;
    --font-light: 300;
	--font-regular: 400;
	--font-medium: 500;
	--font-semibold: 600;
	--font-bold: 700;

	--dark-font-color: #404040;
	--light-font-color: #fff;
}

/* TYPOGRAPHY
Using the Perfect Fifth factor from https://www.gridlover.net/try
*/
html {
  font-size: 16px;
  line-height: 21px;
  scroll-behavior: smooth;
}

@media (min-width: 99em){
	html {
	  font-size: calc(12px + 0.390625vw);
	}
}

@media (min-width: 125em){
	html {
	  font-size: calc(15px + 0.390625vw);
	}
}

body {
  max-width: 2560px;
  padding: 0;
  margin: 0 auto;  
  font-family: var(--body-font);
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--dark-font-color);
}

h1, .h1 {
  font-family: var(--heading-font);
  font-weight: var(--font-bold);
  font-style: normal; 
  font-size: 3.348rem;
  margin-top: 1.3125rem;
  margin-bottom: 2.625rem;
}

h2, .h2, h3, .h3, h4, 
.h4, h5, .h5, h6, .h6 {
  font-family: var(--heading-font);
  font-weight: var(--font-bold);
  font-style: normal;
}

h2, .h2 {
  font-size: 2rem;
  margin-top: 1.3125rem;
  margin-bottom: 1.3125rem;
}

h3, .h3 {
  font-size: 1.625rem;
  margin-top: 1.3125rem;
  margin-bottom: 0.75rem;
}

h4, .h4 {
  font-size: 1rem;
  margin-top: 1.3125rem;
  margin-bottom: 0rem;
}

h5, .h5 {
  font-size: 1rem;
  margin-top: 1.3125rem;
  margin-bottom: 0rem;
}

.pages h3 {
	font-family: var(--body-font);
	font-weight: var(--font-medium)!important;
	font-size: 1.4rem;
}

.pages h4 {
	font-family: var(--body-font);
	font-weight: var(--font-regular);
	margin: 0 0 1rem;
	font-size: 1.2rem;
}

@media all and (max-width: 62em){
	h1, .h1 {
		font-size: 2.5rem;
	}
	
	h2, .h2 {
		font-size: 1.5rem;
		margin: 1rem 0;
	}
}

p, ul, ol, pre, blockquote {
  margin-top: 0rem;
  margin-bottom: 1.3125rem;
}

ul, ol {
	padding-left: 1rem;
	line-height: 1.6;
}

ul ul, ol ol, ul ol, ol ul {
  margin-top: 0rem;
  margin-bottom: 0rem;
}

h1 + h2 {
  margin-top: 0;
}

p {
	line-height: 1.5;
}

hr {
	border: 0;
    height: 1px;
    background-color: var(--dark-grey);
	margin: 2rem 0;	
	clear: both;
}

img {
  max-width: 100%;
}

blockquote {
    border-left: 5px solid var(--blue);
	background: #F8F8F8;
    padding: 1.5rem;
    margin: 0 0 1.5rem;
    position: relative;
	font-style: italic;
    font-weight: 300;
}

blockquote p:last-of-type {
	margin-bottom: 0;
}


.flex-row {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.no-margin {
    margin: 0;
}

.mt-0 {
    margin-top: 0;;
}

.mb-0 {
    margin-bottom: 0;;
}

.allow-newlines {
	white-space: pre-wrap;
}

/* INPUT FIELDS */
input:-webkit-autofill,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:focus {
  border: none;
  -webkit-text-fill-color: none;
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
}

.input-field input[type="text"], .input-field input[type="password"], 
.input-field input[type="date"], .input-field input[type="tel"], 
.input-field input[type="email"], 
textarea {
    width: 100%;
    box-sizing: border-box;
    border: solid 1px #e4e4e4;
    transition: 0.5s;
	padding: .25rem;
}

input[type="submit"] {
    font-size: 16px;
    font-weight: var(--font-semibold);
    background: var(--pink);
    color: white;
	border-radius: 10px;
    border: 0;
    cursor: pointer;
    padding: 16px;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

/* Table Styles */
.table {
  margin: 0 0 2rem;
  overflow-x: auto;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 10%);
}

.table.bell-schedule {
	box-shadow: none;
}

.table table {
  border-radius: 5px;
  font-weight: normal;
  border: none;
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  background-color: white;
}

.table table td, 
.table table th {
  padding: 10px 15px;
}

.table table td {
  border-right: 1px solid #F7F6F4;
}

.table table td:last-of-type {
  border-right: 0;
}

.table table thead th {
  color: #ffffff;
  background: var(--secondary-brand);
}


.table table thead th:nth-child(even) {
  color: #ffffff;
  background: #506983;
}

.table table tr:nth-child(odd) {
  background: #f5f5f5;
}

.table h3 {
	margin: .5rem 0;
}

.table img {
	width: 100%;
}

@media all and (min-width: 62em){
	.table img {
		width: 250px;
	}
}

/* Links and Buttons */
a {
    color: var(--pink);
    text-decoration: none;
    transition: all .3s ease;
}

a:hover, a:focus {
	filter: brightness(0.9)
}

.btn-link {
    color: var(--pink);
    font-weight: var(--font-medium);
}

.btn {
	display: inline-block;
    padding: 0.75rem;
	padding-bottom: 0.65rem;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: var(--font-semibold);
}

.btn-grey {
	color: var(--dark-grey);
    background: var(--light-grey);
    display: inline-block;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: .9rem;
	transition: all .3s ease;
}

.btn-blue {
	color: white;
    background: var(--blue);
}

.btn-grey:hover, 
.btn-grey:focus {
	filter: brightness(0.9)
}

.btn-blue-outline {
	color: var(--blue);
    background: none;
	border: 2px solid var(--blue);
}

.purple-link {
    color: var(--purple);
}

.grey-link {
    color: var(--medium-grey);
}

.btn-blue-outline:hover,
.btn-blue-outline:focus,
.btn-blue-outline.active {
	background: var(--blue);
	color: white;
}

/* Layout */
.wrapper {
    display: flex;
}

.content-container {
    margin: 0 auto;
    width: 90%;
}

.sidebar {
    width: 350px;
}

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

@media (min-width: 62em){
    .content-container {
        margin: 0 auto;
        width: 85%;
    }
}

/* Sidebar */
.sidebar {
    background: var(--light-grey);
    padding: 1rem;
    display: none;
}
.sidebar-content {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.sidebar-bottom {
	text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
	font-size: .8rem;
}

.logo {
   width: 100px; 
   margin-bottom: 1rem;
}

.main-nav > ul {
    list-style: none;
    padding-left: 0;
}

.main-li {
    padding: 0 0 0.5rem;
}

.main-nav a {
    font-size: .8rem;
    color: var(--medium-grey);
}

.main-nav a.current {
    font-weight: var(--font-bold);
    color: var(--blue);
}

.main-nav .main-nav-link {
    font-size: .9rem;
}

.main-nav-link.main-dropdown {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-left: -.25rem;
    cursor: pointer;
    color: var(--medium-grey);
    padding-bottom: .5rem;
}

.main-nav-link.no-dropdown {
    padding-bottom: 0.5rem;
}

.main-dropdown-menu {
    display: none;
    list-style: none;
    padding-left: 1.5rem;
}

.main-dropdown-link {
    display: block;
    padding: 0;
    font-weight: var(--font-light);
}

.main-dropdown-link.bottom {
	padding: 0 0 .5rem;
}

@media (max-width: 62em){
    .sidebar{
        position: absolute;
        left: 0;
        right: 0;
        z-index: 100;
        width: 100%;
        min-height: 100vh;
        overflow-y: scroll;
    }

    .close-icon {
        position: absolute;
        right: 1rem;
        top: 1rem;
        font-size: 2rem;
        cursor: pointer;
    }
}

@media (min-width: 62em){
    .sidebar {
        min-height: 100vh;
    }

    .close-icon {
        display: none;
    }

    .sidebar.sidebar-active {
        width: 20%;
    }

    .main-content-wrapper {
        width: 100%;
    }
    .main-content-wrapper.sidebar-active {
        width: 80%;
    }
}
/* Footer */
footer {
    padding: 1rem 0;
    color: var(--medium-grey);
    font-size: .8rem;
}

/* Page Header */
.page-header {
	color: white;
	text-align: center;
    position: relative;
}

.menu-icon {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 10;
    cursor: pointer;
}

.menu-icon i {
    font-size: 2rem;
}

.header-overlay {
    min-height: 15rem;
	background: linear-gradient(90deg, rgba(4,185,215,1) 0%, rgba(247,101,248,1) 100%);
	-webkit-mask-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
	mask-image: gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
}

.header-overlay.--Redesign-Calgary-Catholic-Schools {
    background: linear-gradient(90deg, rgba(4,185,215,1) 0%, rgba(248, 177, 45, 1) 100%);
}

.header-overlay.--Redesign-Edmonton-Catholic-Schools {
    background: linear-gradient(90deg, rgba(4,185,215,1) 0%, rgba(85, 41, 136, 1) 100%);
}

.header-content {
    position: absolute;
    z-index: 10;
    top: 3rem;
    left: 0;
    right: 0;
    width: 90%;
    margin: auto;
}

.header-content h1 {
    margin: 0 auto 1.25rem;
}

.search-wrapper label {
    display: none;
}

.search-wrapper .input-field {
    width: 80%;
}
.search-wrapper input[type="text"]{
    padding: 16px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
}

#search-form {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

@media (min-width: 48em){
    .header-content {
        width: 70%;
    }
    /* .header-overlay {
        min-height: 300px;
    } */
}

@media (min-width: 75em){
    .header-content {
        width: 50%;
    }
	
	.header-content h1 {
		font-size: 4rem;
	}
    .search-wrapper .input-field {
        width: 60%;
    }

    .menu-icon {
        left: 7.5%;
        top: 2rem;
    }
}

/* Home Page */
.home h2 {
    color: var(--black);
}
.content-box {
    display: block;
    color: var(--dark-font-color);
    background: var(--light-grey);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.content-box:hover,
.content-box:focus {
    transform: scale(1.05);
}

.feature-title {
    font-size: 1rem;
    margin-bottom: .5rem;
    color: var(--dark-grey);
    gap: .75rem;
}

.feature-box i {
	color: var(--medium-grey);
}

.feature-content p {
    margin: 1rem 0;
}

.guide-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem;
}

.guide-box h2 {
    margin: 1rem auto;
}

.guide-box i {
    font-size: 1.5rem;
}

/* Home Page - Pinned News */
.tagged-content-wrapper {
    margin: 0 0 1rem;
}

.popular-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.pinned-news-row {
    display: flex;
    margin-bottom: 1rem;
}

.pinned-tag {
    width: 25%;
	text-transform: capitalize;
	font-weight: var(--font-semibold);
}

.pinned-news-title {
    width: 75%;
}

.distric-wrapper {
    display: flex;
    flex-wrap: wrap;
	row-gap: 0.75rem;
}

.district-btn {
    width: 50%;
}

/* Pages Template */
.intro-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.intro-content p {
    font-style: italic;
}

.pages section {
    margin-bottom: 3rem;
}

.navigation-list,
.district-list {
    row-gap: 1rem;
}

.navigation-box {
    background: var(--light-grey);
    color: var(--black);
    padding: 2rem;
	border-radius: 10px;
    text-align: center;
    font-weight: var(--font-bold);
    font-family: var(--heading-font);
    font-size: 1.1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pages .district-btn {
    width: auto;
}

.tagged-news-link {
	display: block;
    margin-bottom: 1rem;
}

@media (min-width: 48em){
    .tagged-news-list {
        column-count: 2;
    }
}

@media (min-width: 75em){
	.pages h1 {
		font-size: 5rem;
	}
}

/* Rich Text Template */
.page-heading {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	row-gap: 1.5rem;
}

.page-heading.breadbrumbs-only {
    justify-content: flex-start;
}

.breadcrumbs-wrapper {
    display: flex;
	flex-wrap: wrap;
}

.breadcrumbs span {
	margin-top: 3.5px;
}

.breadcrumbs, .breadcrumbs-icon {
	color: var(--medium-grey);
    font-weight: var(--font-light);
}

.user-switch {
    display: flex;
    margin-left: auto;
    width: fit-content;
    gap: 0.75rem;
    color: var(--medium-grey);
	cursor: pointer;
	font-weight: var(--font-light);
}

/* Tab */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-label.active {
    color: var(--blue);
    font-weight: var(--font-medium);
}


/* District Landing Page */
.district-landing .ck-editor {
	color: #707070;
}

/* District Page */
.district-page h3 {
	font-family: var(--body-font);
	font-weight: var(--font-medium)!important;
	font-size: 1.4rem;
}

.district-page h4 {
	font-family: var(--body-font);
	font-weight: var(--font-regular);
	margin: 0 0 1rem;
	font-size: 1.2rem;
}

.district-logo {
	display: block;
	position: absolute;
	top: 1rem;
    right: 1rem;
	width: 50px;
	z-index: 10;
}

@media (min-width: 62em){
	.h3-placeholder {
		display: block;
		padding-bottom: 1.625rem;
	}
	
	.district-logo {
		width: 110px;
		top: 2rem;
		right: 7.5%;
	}
}

/* News Article */
.related-news-intro {
    margin: 0 0 1rem;
}

.related-news {
	margin: 2rem 0;
}

.contact-message {
    margin: 2rem 0;
}

/* News Archive */
.tagged-news-wrapper {
	padding-top: 1.5rem;
}


/* Sticky anchors */
.sticky-wrapper {
	position: sticky;
    top: 0;
    background: white;
    padding: 1rem 0;
	display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-wrapper i {
	background: var(--blue);
	color: white;
	border-radius: 50%;
	font-size: 2rem;
	cursor: pointer;
}

#sticky-top {
	display: none;
}

.pages .id-anchor {
	margin-bottom: 0;
}

.id-anchor h2 {
	margin-top: 0;
}

.btn-link.more-link {
	text-align: right;
    display: block;
    margin-top: 2rem;
}
