/* Enhanced styling for the CULI Resources section. Loaded after site.css;
   keeps the CULI palette (State Flag #00205B, Blue Ridge #005EB8, Clemson
   Orange #F56600) and Trade Gothic Next, but modernizes layout and cards. */

/* ---------- category pill nav ---------- */

.res-nav {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: .5rem;
  margin: 1.5rem 0 .5rem;
}

.res-nav a {
  display: inline-block;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #005EB8;
  color: #005EB8;
  font-size: .95rem;
  font-weight: bold;
  transition: all .15s ease-in-out;
}

.res-nav a:hover {
  background-color: #e8f1fa;
  color: #00417e;
  text-decoration: none;
}

.res-nav a.res-nav--active {
  background-color: #005EB8;
  color: #FFF;
}

/* ---------- category page header ---------- */

.res-header {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 2.5rem;
  margin-bottom: .5rem;
  border-bottom: 3px solid #F56600;
  padding-bottom: .75rem;
}

.res-header h1 {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0;
}

.res-search {
  position: relative;
}

.res-search i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888B8D;
  pointer-events: none;
}

.res-search input {
  width: 260px;
  max-width: 100%;
  padding: .5rem .9rem .5rem 2.4rem;
  border: 1px solid #CBC4BC;
  border-radius: 8px;
  font-size: .95rem;
}

.res-search input:focus {
  outline: none;
  border-color: #005EB8;
  box-shadow: 0 0 0 3px rgba(0, 94, 184, .15);
}

/* ---------- sections + file cards ---------- */

.res-section {
  margin-top: 2rem;
}

.res-section__title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #00205B;
  margin-bottom: 1rem;
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: .9rem;
}

.res-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1rem;
  background: #FFF;
  border: 1px solid #e3ded8;
  border-radius: 10px;
  color: #333333;
  transition: all .15s ease-in-out;
}

.res-card:hover {
  text-decoration: none;
  color: #333333;
  border-color: #005EB8;
  box-shadow: 0 4px 14px -6px rgba(0, 32, 91, .35);
  transform: translateY(-1px);
}

.res-card__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.3rem;
  color: #FFF;
  background-color: #005EB8;
}

.res-card__icon--pdf { background-color: #B94700; }
.res-card__icon--word { background-color: #005EB8; }
.res-card__icon--ppt { background-color: #B94700; }
.res-card__icon--video { background-color: #522D80; }

.res-card__body {
  min-width: 0;
  flex: 1 1 auto;
}

.res-card__name {
  font-weight: bold;
  line-height: 1.25;
  margin-bottom: .15rem;
  overflow-wrap: break-word;
}

.res-card__meta {
  font-size: .75rem;
  letter-spacing: .05em;
  color: #8C8279;
  text-transform: uppercase;
}

.res-card__dl {
  flex: 0 0 auto;
  color: #CBC4BC;
  transition: color .15s ease-in-out;
}

.res-card:hover .res-card__dl {
  color: #F56600;
}

.res-empty {
  display: none;
  margin-top: 2.5rem;
  text-align: center;
  color: #8C8279;
}

/* ---------- landing page cards ---------- */

.res-home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.res-home__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.4rem 1.3rem;
  background: #FFF;
  border: 1px solid #e3ded8;
  border-radius: 12px;
  color: #333333;
  transition: all .15s ease-in-out;
}

.res-home__card:hover {
  text-decoration: none;
  color: #333333;
  border-color: #005EB8;
  box-shadow: 0 6px 18px -8px rgba(0, 32, 91, .4);
  transform: translateY(-2px);
}

.res-home__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.6rem;
  color: #FFF;
  background-color: #005EB8;
  transition: background-color .15s ease-in-out;
}

.res-home__card:hover .res-home__icon {
  background-color: #F56600;
}

.res-home__name {
  font-size: 1.05rem;
  font-weight: bold;
  line-height: 1.2;
}

.res-home__count {
  font-size: .8rem;
  color: #8C8279;
}

@media (max-width: 600px) {
  .res-header {
    align-items: stretch;
    flex-direction: column;
  }

  .res-search input {
    width: 100%;
  }
}
