/*!
Theme Name: SSU Directory
Theme URI: http://underscores.me/
Author: Phill Mamula
Author URI: https://www.phillm.com
Description: Savannah State University Faculty & Staff Directory
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ssudirectory
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

SSU Directory is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


/* =Colors
-------------------------------------------------------------- */
/* Defining color variables */
:root {
  --white: #FFFFFF;
  --black: #232220;
  --cream: #F7F5EE;
  --orange: #ED7900;
  --orangetext: #DC6F00;
  --blue: #001689;
  --bluegray: #C0D9FF;
  --gray: #f7f6f4;
}
.default, .regular, .black { color: var(--black); }
.white { color: var(--white); }
.cream { color: var(--cream); }
.gray { color: var(--gray); }
.blue { color: var(--blue); }
.orange { color: var(--orange); }


/* =Global
-------------------------------------------------------------- */
html,body {
    margin: 0; 
    padding: 0;
    min-height: 100%;
    overscroll-behavior: none;
}
body {
    color: var(--black);
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.5em;    
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
.page {
    padding: 0;
    margin: 0;
}
strong, b { font-weight: 700; }
p { margin: 0 0 15px; }

/* Type */
h1, h2, h3, h4, h5, h6 {
    color: var(--blue);
    line-height: 1em;
    margin: 15px 0 10px;
    text-wrap: balance;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
}
h1 { font-size: 3em; }
h2 { font-size: 2.5em; }
h3 { font-size: 2em; }
h4 { font-size: 1.5em; }

a, a:link, a:visited { 
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}
a:hover { color: var(--orangetext); }


button { cursor: pointer; }
video:focus,
input:focus,
button:focus {outline:0; cursor: pointer;}
textarea,
input.text,
select,
input[type="text"],
input[type="button"],
input[type="submit"],
.input-checkbox {
-webkit-appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
     -o-appearance: none;
        appearance: none;
border-radius: 0;
}
hr {
    margin: 30px 0;
    background: transparent;
    clear: both;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
span.edit-link a { text-decoration: underline; }


/* Adjustments */
.small-text { font-size: 0.9em; line-height: 1.4em; }
.large-text {
    font-size: 1.25em;
    line-height: 1.4em;
    font-weight: 300;
    text-wrap: balance;
}
.mobile-only,
.stacked-only { display: none; }
.hide-mobile,
.stacked-hidden  { display: block; }


/* Flex */
.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.flex > * {
    flex: 1;
}
.flex.invert {
    flex-direction: row-reverse;
}
.flex.center {
    justify-content: center;
}
.flex.center>* { flex: inherit; }
.flex.justify {
    justify-content: space-between;
}
.flex.justify > * {
    flex: inherit;
}
.flex.overflow,
.flex.overflow.three,
.flex.overflow.four {
    align-items: initial;
    width: calc(100% + 40px);
    margin-left: -20px;
}

/* Two Columns */
.flex.overflow.two {
    width: calc(100% + 50px);
    margin-left: -25px;
}
.flex.overflow.two > * {
    flex: 1 0 calc(50% - 40px);
    width: calc(50% - 40px);
    max-width: calc(50% - 40px);
    margin: 20px;
}

/* Three columns */
.flex.overflow.three > * {
    flex: 1 0 calc(33.3% - 30px);
    width: calc(33.3% - 30px);
    max-width: calc(33.3% - 30px);
    margin: 15px;
}

/* Four Columns */
.flex.overflow.four > * {
    flex: 1 0 calc(25% - 30px);
    width: calc(25% - 30px);
    max-width: calc(25% - 30px);
    margin: 15px;
}

/* Container */
.container {
    width: 90vw;
    max-width: 1280px;
    position: relative;
    margin: 0 auto;
    z-index: 3;
}
.container.fullwidth { max-width: 1600px; }
.container.small { max-width: 980px; }


/* =Header
-------------------------------------------------------------- */
header#masthead {
	padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Site Title */
header#masthead .site-title-area {
	display: flex;
}
header#masthead .site-branding img {
	max-width: 90px;
	height: auto;
	display: block;
}

/* Home Edits */
body.home header#masthead { border: none; }


/* Navigation */
header#masthead nav.main-navigation {
	width: auto;
}

header#masthead nav.main-navigation ul {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
header#masthead nav.main-navigation ul li {
	margin-left: 5vw;
}
header#masthead nav.main-navigation ul li a {
	font-size: 0.85em;
	line-height: 1em;
	font-weight: 500;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 15px 25px;
    border-radius: 50px;
}
header#masthead nav.main-navigation ul li a[target="_blank"]:after {
    content: '\e09f';
    font: var(--fa-font-light);
    margin: 0 0 0 10px;
    opacity: 0.5;
}
header#masthead nav.main-navigation ul li a:hover {
	background: var(--orange);
    color: var(--white);
}


/* =Themes (Colors)
-------------------------------------------------------------- */
/* Blue */
.theme-blue { 
    background: var(--blue); 
    color: var(--cream);
}
.theme-blue h1, 
.theme-blue h2,
.theme-blue h3,
.card.theme-blue h4,
.button.theme-blue h4,
.theme-blue h4 { color: var(--white); }
.card.theme-blue a:hover h4,
.theme-blue a:hover,
.button.theme-blue a:hover h4,
.theme-blue h4 a:hover{ color: var(--orange); }



/* =Search
-------------------------------------------------------------- */
header.directory {
    padding: 50px 0;
    background: var(--blue) url('images/arch-left-blue.png') no-repeat bottom right / 500px auto;
}
header.directory h1 {
    font-size: 2.5em;
    font-weight: 600;
    margin: 0 0 15px;
}
header.directory .large-text {
    color: var(--bluegray);
    margin: 0 0 25px;
    opacity: 0.8;
}

/* Filters */
.filter-area .wpc-instead-of-posts-found,
.wpc-edit-filter-set,
.wpc-wrap-icons .wpc-filter-selected-values,
.wpc-filter-collapsible.wpc-closed .wpc-filter-selected-values { display: none; }
.widget.widget_wpc_filters_widget,
.search-area .wpc-filter-people_department { margin-bottom: 0; }

/* Search Bar */
.search-area .wpc-search-icon { left: 5px; }
.search-area .wpc-filters-widget-content input[type=text] {
    padding: 12px 50px;
    border-radius: 50px;
    width: calc(100% + 30px);
    margin-left: -15px;
}
.search-area .wpc-filters-widget-content .wpc-filters-section .wpc-filter-search-form .wpc-search-field {
    padding-left: 50px;
    width: 100%;
    max-width: 980px;
}

/* Toggle */
.search-area .wpc-filter-header .wpc-filter-title button .wpc-wrap-icons {
    display: inline-flex;
}
.search-area .wpc-filter-header .wpc-filter-title button .wpc-wrap-icons:after {
    content: '+';
    margin-left: 5px;
}
.search-area .wpc-filter-header .wpc-filter-title button .wpc-open-icon {
    display: none;
}

/* Departments */
.search-area .wpc-filters-main-wrap li.wpc-term-item {
    font-size: 0.9em;
    font-weight: 500;
}
.search-area .wpc-counter-length-2 .wpc-term-count {
    opacity: 0.4;
}
.search-area .wpc-filters-main-wrap .wpc-filters-labels li.wpc-term-item { margin-bottom: 8px; }
.wpc-filters-main-wrap .wpc-filters-labels li.wpc-term-item label span.wpc-filter-label-wrapper,
.search-area .wpc-filters-main-wrap .wpc-filters-labels li.wpc-term-item label {
    border: 1px solid #3d4eaa;
    transition: all 0.15s ease-in-out;
}
.search-area .wpc-filters-main-wrap input.wpc-label-input:checked+label span.wpc-filter-label-wrapper {
    background-color: #2741ca;
}
.search-area .wpc-filters-main-wrap input.wpc-label-input+label:hover span.wpc-filter-label-wrapper {
    background: #2741ca;
    transition: all 0.15s ease-in-out;
}


/* =People
-------------------------------------------------------------- */
section.directory {
    padding: 25px 0;
    min-height: 400px;
}

/* Results */
section.directory .results {
    padding: 0 0 15px;
}
section.directory .results.flex { justify-content: space-between; align-items: flex-end; }
section.directory .results.flex>* { flex: inherit; }
section.directory .results.flex ul { margin: 0; }
section.directory .results.flex .disclaimer {
    opacity: 0.7;
    font-size: 0.7em;
    line-height: 1.2em;
    text-align: right;
}
section.directory .wpc-filter-chips-list li.wpc-filter-chip a {
    border: none;
    background: var(--gray);
    font-size: 0.9em;
    font-weight: 500;
    padding: 5px 15px;
}
section.directory .wpc-filter-chips-list li.wpc-filter-chip a:hover{
    border: none;
    background: var(--orange);
    color: var(--white);
}
section.directory .wpc-filter-chips-list .wpc-chip-remove-icon,
section.directory .wpc-filter-chips-list a:hover .wpc-chip-remove-icon, 
section.directory .wpc-filter-search-wrapper button.wpc-search-clear:hover, 
section.directory .wpc-search-field-wrapper a.wpc-search-clear-icon:hover {
    color: inherit;
    filter: invert(1);
    opacity: 0.35;
}
section.directory .wpc-filter-chips-list .wpc-chip-remove-icon { 
    filter: none;
    opacity: 0.2; 
}
section.directory .wpc-custom-selected-terms { max-width: 980px; }
section.directory .results.flex ul {
    flex-wrap: wrap;
}

/* Listing */
article.people.list {
    border-bottom: 1px solid #f0f0f0;
	padding: 15px 0;
}
article.people.list>* { padding-right: 20px; }
article.people.list>*:last-child { padding-right: 0; }


/* Copy Buttons */
article.people.list .email button,
article.people.list .phone button {
    padding: 12px;
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.15s ease-in-out;
}
article.people.list .email button i,
article.people.list .phone button i {
    margin: 0;
    opacity: 1;
    font-size: 1.1em;
}
article.people.list .email button:hover,
article.people.list .phone button:hover {
    background: var(--orange);
    color: var(--white);
}
article.people.list .email button:hover i,
article.people.list .phone button:hover i {
    font-weight: 600;
}

/* Success Message */
.success-message {
    display: none;
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 600;
    background: var(--orange);
    padding: 0.5em 1em;
    text-align: center;
    transition: opacity 0.3s ease;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
}
.success-message i {
    margin-left: 10px;
}
.success-message.visible {
    display: block;
}


/* Name */
article.people.list h4 {
	font-size: 1.2em;
    margin: 5px 0;
    font-weight: 600;
}

/* Department */
article.people.list .position {
    opacity: 0.7;
    text-wrap: balance;
}
article.people.list .department {
	text-wrap: balance;
    font-weight: 500;
}
article.people.list .contact {
    width: 115px;
    flex: inherit;
    text-align: right;
}
article.people.list i {
	font-size: 1.25em;
}


/* Pagination */
.wp-pagenavi {
    padding: 40px 0;
    display: flex;
    flex-wrap: wrap;
}
.wp-pagenavi>* {
    font-family: 'Inter', sans-serif;
    font-size: 0.8em;
    line-height: 1.2em;
    font-weight: 500;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    margin-right: 5px;
    margin-bottom: 5px;
}
.wp-pagenavi .current {
    color: var(--white);
    background: var(--orange);
    border-color: var(--orange);
}
.wp-pagenavi a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

/* =Footer
-------------------------------------------------------------- */
footer.site-footer {
    margin-top: auto;
    padding: 25px 0 50px;
    border-bottom: 8px solid var(--orange);
}

/* Copyright */
.copyright {
	font-size: 0.8em;
	line-height: 1.4em;
	text-wrap: balance;
}
.copyright.small-text { 
    opacity: 0.6; 
    width: 100%;
    max-width: 900px;
}




/* =Mobile (Media Queries)
-------------------------------------------------------------- */
@media (max-width: 1280px) { }
@media (max-width: 1024px) {
    /* Header */
    header.directory h1 { font-size: 2em; line-height: 1.2em; }
    .large-text { font-size: 1.1em; line-height: 1.5em; }
    header.directory .arch { max-width: 250px; }

    .mobile-only { display: block; }
    .hide-mobile { display: none; }

    /* Search. */
    .search-area .wpc-filters-widget-content input[type=text] { margin: 0; }
    .search-area .wpc-search-icon { left: 20px;}
    

    /* People */
    .position { margin: 5px 0; font-size: 0.8em; }
}
@media (max-width: 800px) {
    header#masthead .site-branding img { max-width: 75px;}
    header.directory { padding: 40px 0 20px; }
    article.people.list { padding: 20px 0;}
    article.people.list>* { padding: 0; }
    article.people.list .name { padding-right: 5vw; }
    article.people.list .name .department.small-text { font-size: 0.8em; text-wrap: balance; }
    .stacked-only { display: block; margin: 5px 0 0; }
    .stacked-hidden { display: none; }
}
@media (max-width: 540px)  {
    header#masthead nav.main-navigation { display: none;}
    .large-text { font-size: 1em; line-height: 1.4em; }

}

