/**
Theme Name: Campus Lookup v2
Author: Elior, Inc.
Author URI: https://elior-na.com
Description: Campus Lookup
Version: 1.0.1
Template: astra
*/

/* Vars */
:root {

  --beige: #f3f1ee;
  --card: #161b22;
  --txt-white: #f0f6fc;
  --txt-black: #161b22;
  --sub: #8b949e;
  --accent: #0073e6;
  --color-primary-dark: #005bb5;
  --color-primary-light: #e6f2ff;
  --elior-blue: #005A82;
  --ind-blue: #012239;

}


body.page-template-page-campus-lookup {
    background-color: var(--beige);
}

body.page-template-page-bewell, .page-template-page-bewell h1, .page-template-page-bewell h2, .page-template-page-bewell h3, .page-template-page-bewell h4, .page-template-page-bewell h5 {
    font-family: 'Poppins', sans-serif;
    color: var(--ind-blue);
}

.campus-lookup {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.bewell {
    margin: 0 0 60px 0;
}

.bewell-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.bewell-container {
    background-color: #fff;
    border-radius: 4px;
    padding: 2em;
    text-align: center;
    margin-bottom: 1.5rem;
}

.bewell-recipes, .bewell-always {
    list-style-type: none;
}

.bewell-recipes li {
    padding: 2em 0;
    border-bottom: 1px solid;
}

.bewell-recipes li:first-child{
    padding-top: 1em;
}

.bewell-recipes li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bewell-always li {
    padding: 1em 0;
    text-align: center;
}

.bewell-always li::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  background-image: url('/wp-content/themes/campus-lookup/assets/img/BeWell-Blueberry.svg');
  background-size: contain;
}

.bewell-logo {
    max-width: 250px;
    height: auto;
    padding: 2em 0;
    display: block;
    margin: 0 auto;
}

/* Fueled */
.fueled-hero {
  display: block;
  width: 100%;
  height: auto;
}

.fueled-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-items: center;
  padding-bottom: 60px;
}

.fueled-btn {
    text-decoration: none !important;
    min-width: 205px;
    text-align: center;
    background-color: #336195;
}

.fueled-btn:hover {
    background-color: #E84C38;
}

.fueled-logo {
  display: block;
  max-width: 250px;
  height: auto;
  margin: 2rem auto;
}

.fueled-intro {
    max-width: 75ch;
    margin: 0 auto;
}

.pdf {
    margin-bottom: 60px;
}

/* Campus */
.campus-wrapper {
  min-height: 60vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 20px 0 60px;
}

.our-locations {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 300;
    font-size: .85rem;
    padding-bottom: 1rem;
}

.campus-locations__title {
  margin-block: 0 1.25rem;
  text-transform: uppercase;
  font-weight: 600;
}

.campus-locations__title::after {
  content: "";
  display: block;
  width: 150px;
  height: 2px;
  background-color: var(--txt-black); 
  margin-top: 1rem;
}

.campus-grid {
  list-style: none;
  padding: 0 !important;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1200px;
}

.campus-card {
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.campus-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); 
}

.campus-card__image {
  display: block;
  width: 100%;
  height: auto;
}

.campus-card__body {
  padding: 2rem;
  display: grid;
  gap: 0.75rem;
}

.campus-card__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.campus-card__btn {
  display: inline-block;
  width: max-content;
  padding: 0.6rem 1rem;
  text-decoration: none !important;
  text-transform: capitalize;
  line-height: 1;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}

.campus-card__btn:hover,
.campus-card__btn:focus-visible {
  background: #1f2937;
  border-color: #1f2937;
}

.campus-card__btn:active {
  transform: translateY(1px);
}

/* Generic */
.brand-logo {
  max-width: 250px;
  margin: 20px auto;
  display: block;
}

mark {
  color: var(--accent);
  font-weight: 600;
}

/* Search UI */
.searchwrap {
  position: relative;
  max-width: 9600px;
  margin: 0 auto;
}

.searchbox {
  position: relative;
  display: block;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 100px;
  padding: 12px 16px;
  background: var(--card);
  color: var(--txt-white);
}

.searchbox-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--sub);
  pointer-events: none;
}

.searchbox input {
  width: 100%;
  padding: 0.75em 3.5em 0.75em 2.5em; 
  border: 0;
  border-radius: 100px;
  background-color: var(--card);
  color: var(--txt-white);
  caret-color: var(--txt-white);
  font-size: 1rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

.searchbox input::placeholder {
  color: var(--sub);
}

.searchbox input:focus {
  background-color: var(--card);
  color: var(--txt);
  outline: none;
}

/* Autofill fix */
.searchbox input:-webkit-autofill {
  -webkit-text-fill-color: var(--txt-white);
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset !important;
  box-shadow: 0 0 0 1000px var(--card) inset !important;
  caret-color: var(--txt-white);
}

/* Go button (JS toggles .is-hidden) */
.go-button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: 0;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: .95rem;
  cursor: pointer;
}

.go-button:hover,
.go-button:focus {
  background: var(--color-primary-dark);
  outline: none;
}

.go-button.is-hidden {
  display: none !important;
}

/* Clear link */
.clear-search {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: transparent;
  border: 0;
  padding: 4px 1em;
  font-size: 1em;
  text-decoration: none;
  cursor: pointer;
  opacity: .85;
  color: inherit;
  box-shadow: none;
}

.clear-search:hover,
.clear-search:focus {
  opacity: 1;
  outline: none;
  color: var(--color-primary-dark);
  background: transparent !important;
}

/* Hint */
.hint {
  display: none;
  margin-top: 3rem;
  font-size: 1em;
  color: var(--txt-black);
  text-align: left;
}

/* Results */
.results {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  max-height: none;
  margin-top: 6px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  text-align: left;
}

.results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.results li {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.results li:last-child {
  border-bottom: none;
}

.result {
  display: block;
  padding: 10px 12px;
  text-decoration: none !important;
  color: var(--txt-white);
  font-size: 15px;
  line-height: 1.3;
}

.result:hover,
.result:focus-visible,
.result.active {
  background: rgba(77, 163, 255, 0.12);
  outline: none;
}

.results .name {
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
}

/* "No matches" message */
.results li.empty {
  padding: 12px 16px;
  color: var(--txt-white);
  font-style: italic;
}

/* Hero */
.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-color: var(--elior-blue);
}

.hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 75%);
    z-index: 1;
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding-bottom: 5%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    color: var(--txt-white);
    line-height: 1.25em;
    margin: 0;
}

/** 404 **/
  .not-found {
    height: 100vh;
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
  }
  
  .not-found h1 {
    font-size: 10em;
    color: var(--ast-global-color-0);
  }
  
  .not-found p {
    font-size: 1.5em;
    line-height: 1.25em;
    font-weight: 600;
    padding: 0 5%;
  }


@media (min-width: 900px) {
  /* BeWell */    
  .bewell-layout {
    grid-template-columns: 1fr 1fr; 
  }

  /* Fueled */
  .fueled-actions {
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
  }

  /* Campuses */
  .campus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet adjustments */
@media (min-width: 521px) and (max-width: 768px) {
  .clear-search {
    margin-top: 12px;     /* more breathing room below field */
    margin-right: 16px;   /* a little extra from edge */
    font-size: 13px;
  }

  .hint {
    margin-top: 4em;
  }
}

/* Mobile adjustments */
@media (max-width: 520px) {
  .searchbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 48px;
  }

  .searchbox input {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 100%;
    padding: 0 12px 0 2.25em; /* tighter right padding; icon space left */
  }

  .go-button {
    position: static;
    transform: none;
    height: 32px;
    padding: 0 12px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.clear-search {
   position: absolute;
    top: 100%;        
    right: 0;
    margin-top: 8px;
    font-size: 13px;
    text-align: right;
  }

  .hint {
    margin-top: 3em;
    padding-left: 0;
  }
  
  /* Fueled */
  .fueled-btn {
    width: 100%;
    text-align: center;
  }
}