/* HERO + SEARCH */
.resources-hero{
  padding-bottom:110px
}

.resource-search-wrap{
  display:flex;
  max-width:720px;
  align-items:center;
  gap:15px;
  margin-top:35px;
  padding:9px 10px 9px 18px;
  border:2px solid rgba(255,255,255,.75);
  background:var(--white);
  box-shadow:0 8px 24px rgba(15,40,102,.1)
}

.resource-search-label{
  flex-shrink:0;
  color:var(--dark-orange);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase
}

.resource-search-wrap input{
  width:100%;
  margin:0;
  padding:12px 10px;
  border:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:1rem
}

.resource-search-wrap input:focus{
  outline:0
}


/* CATEGORIES */
.resource-categories{
  background:var(--white)
}

.resource-categories .section-heading h2{
  color:var(--blue)
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px
}

.category-card{
  display:flex;
  min-height:245px;
  flex-direction:column;
  padding:27px;
  border:1px solid var(--border);
  border-top:6px solid var(--blue);
  background:var(--white);
  transition:transform .2s ease,box-shadow .2s ease
}

.category-card:nth-child(even){
  border-top-color:var(--orange)
}

.category-card:hover{
  transform:translateY(-5px);
  box-shadow:0 10px 28px rgba(15,40,102,.1)
}

.category-number{
  display:grid;
  width:40px;
  height:40px;
  margin-bottom:35px;
  place-items:center;
  background:var(--light-blue);
  color:var(--blue);
  font-size:.72rem;
  font-weight:800
}

.category-card:nth-child(even) .category-number{
  background:var(--light-orange);
  color:var(--dark-orange)
}

.category-card h3{
  margin-bottom:10px;
  color:var(--blue)
}

.category-card p{
  margin-top:auto;
  font-size:.91rem;
  line-height:1.65
}


/* STUDENT GUIDES */
.student-guides{
  background:var(--cream)
}

.student-guides .section-heading{
  max-width:760px;
  margin-bottom:46px
}

.student-guides .section-heading h2{
  color:var(--blue)
}

.guide-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px
}

.guide-card{
  display:flex;
  overflow:hidden;
  min-width:0;
  flex-direction:column;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--white);
  box-shadow:0 10px 26px rgba(15,40,102,.08);
  color:var(--text);
  text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease
}

.guide-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 34px rgba(15,40,102,.14)
}

.guide-cover{
  position:relative;
  aspect-ratio:16 / 10;
  overflow:hidden;
  background:var(--light-blue)
}

.guide-cover img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  transition:transform .25s ease
}

.guide-card:hover .guide-cover img{
  transform:scale(1.025)
}

.guide-card-content{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:24px 25px 26px
}

.guide-card .resource-type{
  width:max-content;
  max-width:100%;
  margin-bottom:14px;
  padding:7px 10px;
  border-radius:999px;
  background:var(--light-orange);
  color:var(--dark-orange);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.07em;
  line-height:1.2;
  text-transform:uppercase
}

.guide-card:nth-child(even) .resource-type{
  background:var(--light-blue);
  color:var(--blue)
}

.guide-card h3{
  margin-bottom:12px;
  color:var(--blue);
  font-size:1.22rem;
  line-height:1.3
}

.guide-card p{
  margin-bottom:25px;
  color:var(--gray);
  font-size:.9rem;
  line-height:1.6
}

.guide-link{
  display:inline-flex;
  width:max-content;
  margin-top:auto;
  align-items:center;
  padding-bottom:3px;
  border-bottom:2px solid var(--orange);
  color:var(--blue);
  font-weight:900
}

.guide-card:hover .guide-link{
  color:var(--dark-orange)
}


/* FEATURED RESOURCES */
.featured-resources{
  background:var(--white)
}

.featured-resources .section-heading h2{
  color:var(--blue)
}

.featured-resource-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}

.featured-resource-card{
  position:relative;
  padding:30px;
  border:1px solid var(--border);
  border-left:6px solid var(--blue);
  background:var(--white);
  box-shadow:0 7px 22px rgba(15,40,102,.06)
}

.featured-resource-card:nth-child(2){
  border-left-color:var(--orange)
}

.featured-resource-card:nth-child(3){
  border-left-color:var(--blue)
}

.resource-type{
  display:inline-block;
  margin-bottom:18px;
  color:var(--dark-orange);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase
}

.featured-resource-card h3,
.resource-item h3{
  margin-bottom:10px;
  color:var(--blue)
}

.featured-resource-card p{
  line-height:1.65
}

.featured-resource-card a,
.resource-item>a{
  display:inline-flex;
  margin-top:20px;
  color:var(--blue);
  font-weight:800
}

.featured-resource-card a:hover,
.resource-item>a:hover{
  color:var(--dark-orange)
}


/* RESOURCE SECTIONS */
.resource-section{
  background:var(--white)
}

.resource-section:nth-child(even),
.alternate-section{
  background:var(--cream)
}

.resource-section-heading{
  display:grid;
  grid-template-columns:1fr .8fr;
  align-items:end;
  gap:50px;
  margin-bottom:38px
}

.resource-section-heading .section-label{
  color:var(--orange)
}

.resource-section-heading h2{
  color:var(--blue)
}

.resource-list{
  display:grid;
  gap:12px
}

.resource-item{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:25px 28px 25px 32px;
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--white);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease
}

.resource-item:before{
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:5px;
  background:var(--blue);
  content:""
}

.resource-item:nth-child(even):before{
  background:var(--orange)
}

.resource-item:hover{
  transform:translateX(4px);
  border-color:#cbd4df;
  box-shadow:0 8px 22px rgba(15,40,102,.08)
}

.resource-item-content{
  max-width:780px
}

.resource-item p{
  line-height:1.65
}

.resource-item>a{
  flex-shrink:0;
  margin-top:0
}


/* EMPTY SEARCH RESULT */
.resource-empty-section{
  display:none;
  padding:45px 0
}

.resource-empty-message{
  padding:25px;
  border-left:5px solid var(--orange);
  background:var(--light-orange);
  color:var(--text);
  text-align:center
}


/* SEARCH HIGHLIGHT */
.resource-search-match{
  outline:3px solid var(--orange);
  outline-offset:3px;
  background:var(--light-orange)
}


/* RESPONSIVE */
@media(max-width:950px){
  .category-grid{
    grid-template-columns:repeat(2,1fr)
  }

  .featured-resource-grid,
  .guide-grid{
    grid-template-columns:repeat(2,1fr)
  }
}

@media(max-width:650px){
  .resources-hero{
    padding-bottom:78px
  }

  .resource-search-wrap{
    display:block;
    padding:10px 12px
  }

  .resource-search-label{
    display:block;
    padding:4px 4px 0
  }

  .category-grid,
  .featured-resource-grid,
  .guide-grid,
  .resource-section-heading{
    grid-template-columns:1fr
  }

  .category-card{
    min-height:210px
  }

  .resource-item{
    align-items:flex-start;
    flex-direction:column;
    gap:15px
  }

  .resource-item>a{
    margin-top:4px
  }
}
