:root {
  --red: #a61e2f;
  --button-red: #de2b40;
  --white: #ffffff;
  --dark-gray: #292d32;
  --cream: #f2e7d1;
  --light-gray: #f1f1f0;
  --gray: #d0d1ce;
  --green: #58b947;
  --orange: #e57200;
  --black: #000000;
}
/* 
body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background-color: #f4f4f4;
  
} */

.schedule-container {
  font-family: "Open Sans", serif;
  width: 92rem;
  transform: scale(0.77);
  transform-origin: top center;
}

.search-interface {
  padding: 1.5rem;
  border: 1px solid var(--light-gray);
  border-radius: 1rem;
  margin: 1rem;
  max-width: 100%;
  overflow: hidden;
}

.form-heading-link {
  color: var(--red);
  text-decoration: none;
  margin-bottom: 0rem;
  line-height: 4rem;
  font-weight: bold;
  font-size: 3.4rem;
}

.form-heading-link:hover {
  color: var(--red);
  text-decoration: none;
}

.searchable-fields {
  display: flex;
  flex-wrap: wrap;
}

form.form-sched-search select,
form.form-sched-search input {
  background-color: var(--light-gray);
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  text-align: left;
  border-radius: 2px;
}

#Dept {
  margin-top: 1rem;
  flex: 2;
  height: 4rem;
  border: none;
  outline: none;
  font-weight: bold;
}

.crn-search,
.instructor-search {
  flex: 1;
  display: inline;
  margin-left: 1rem;
  margin-top: 1rem;
  height: 4rem;
  border: none;
  outline: none;
}

.crn-search::placeholder,
.instructor-search::placeholder {
  padding-left: 0.7rem;
}

.selectable-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  align-items: center;
  width: 100%;
  margin: 1rem 0rem;
}

.term,
.modality,
.type,
.time,
.availability,
.oer,
.location,
.days {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.fh_filter-panel {
  border: none;
  border-radius: 2px;
}

.clickable-fields {
  display: flex;
  gap: 5rem;
  flex-wrap: nowrap;
}

.days {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem;
  text-align: center;
  border: 2px solid var(--border);
  background-color: var(--bg-secondary);
  border-radius: 10px;
}

.day-title {
  flex: 0;
  font-weight: normal;
  display: inline-flex;
}

.day-input {
  margin: -0.5rem 0.5rem 0rem;
}

.action-buttons {
  clear: both;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
  padding: 0rem;
  flex: 2;
  text-align: center;
}

.filter-reset {
  padding: 0.5rem 2rem;
  background-color: var(--light-gray);
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 2px;
  border: 1px solid var(--light-gray);
}

.filter-search {
  padding: 0.5rem 3rem;
  background-color: var(--red);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: bold;
  border: 1px solid var(--red);
  border-radius: 2px;
}

.filter-reset a {
  text-decoration: none;
  color: var(--red);
}

.filter-reset a:hover,
.filter-reset a:visited:hover {
  text-decoration: none;
  color: var(--button-red);
}

.filter-search:hover {
  text-decoration: none;
  color: var(--white);
  background-color: var(--button-red);
  border: 1px solid var(--red);
}

.fh-schedule-link{
  color: var(--red);
  text-decoration: underline;
  
}

.fh-schedule-link:hover{
  color: var(--red);
  text-decoration: none;
}

/* Schedule Results Begin */

#schedule_results {
  border-radius: 2px;
}

.fh_dept-title {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 2.8rem;

}

.fh_url a,
.fh_url a:visited {
  text-decoration: none;
  font-weight: bold;
  margin-left: 0.4rem;
  color: var(--red);
}

.fh_url a:hover{
  color: var(--button-red);
}



.fh_sched-course {
  display: flex;
  margin-top: 0rem;
  padding: 0.5rem 1rem;
  width: 100%;
  background-color: var(--light-gray);
}

h3.fh_course-id,
h3.fh_course-head,
h3.fh_course-units {
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--tertiary);
}

.fh_grid-id,
.fh_grid-title,
.fh_grid-units {
  margin: 0.5rem;
  background-color: unset;
}

.fh_grid-id {
  text-align: left;
  flex: 1;
}

.fh_grid-title {
  flex: 2;
  text-align: center;
}

.fh_grid-units {
  flex: 1;
  text-align: right;
  color: var(--red);
}

.fh_cross-listed {
  border: 0px solid #064ba8;
  border-radius: 0.5rem;
  background-color: darkgreen;
  color: #ffffff;
  font-weight: normal;
  margin: 1rem;
  padding: 0.25rem;
  text-align: center;
}

.fh_course-meta {
  display: flex;
  background-color: var(--light-gray);
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 6rem;
  box-sizing: border-box;
}

.fh_xfer-div {
  display: flex;
  flex: 1;
  flex-direction: row;
  gap: 1rem;
  justify-content: flex-start;
  white-space: nowrap;
  /* min-width: 10rem; */
}

.fh_xfer-status {
  border-radius: 2px;
  font-weight: bold;
  padding: 0.25rem;
}

.fh_details {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  flex: 2;
  justify-content: center;
  font-size: 1.2rem;
  text-align: center;
  
}

.fh_cross-list {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
}

/* Ensuring description & outline stay centered */
.fh_desc,
.fh_outline {
  white-space: nowrap;
  
}

.fh_desc a{
  color: var(--red);
}

.fh_panel-desc .fa-caret-right {
  transition: transform 0.3s ease;
}

.fh_panel-desc[aria-expanded="true"] .fa-caret-right {
  transform: rotate(90deg); /* Rotates the caret when expanded */
}


.fh_outline a {
  text-decoration: none;
  color: var(--red);
}

.fh_outline a:hover {
  text-decoration: underline;
}

.fh_panel-group {
  width: 100%;
  margin: 0px;
  background-color: none;
}

.fh_panel-div {
  width: 100%;
  padding: 1rem;
  background-color: #efefef;
  /* border: 0px solid #ccc;
  border-top: 0px solid #333; */
  overflow: hidden;
  transition: height 0.3s ease-out, padding 0.3s ease-out;
}




.fh_detail-label {
  font-weight: bold;
  padding-right: 1rem;
  min-width: 10rem;
  text-align: left;
  flex-shrink: 0;
}

ul {
  list-style-type: none;
}

li {
  margin-top: 1rem;
}

.fh_details-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 5px;
}

.section {
  padding: 2rem;
  box-shadow: 0 0.4rem 0.5rem rgba(0, 0, 0, 0.1);
  background-color: var(--white);
  border-radius: 1rem;
  /* border: 2px solid var(--primary); */
}

.fh_sched-wrap {
  padding: 1rem 2rem 1rem;
}

.fh_sect-availability {
  color: var(--white);
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0.2rem;
  max-width: fit-content;
}

.fh_sect-availability span{
padding: 0.3rem;
}

.fh_section-head {
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
hr.line {
  border: 0;
  border-top: 1px solid var(--bg-secondary); /* Creates a line */
  margin: 0;
  padding: 0;
  width: 100%;
}

.fh_sessid-dates {
  flex: 1;
}

.fh_sessid-dates h4 {
  font-size: 1.2rem;
}

.fh_sched-course-info {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.fh_course-info-table {
  display: flex;
}

.meetlines {
  display: flex;
  flex-direction: column;
  width: 90%;
}

.fh_meetlines-head,
.meet-tr {
  display: flex;
  width: 100%;
  padding: 0.5rem 0;
}

.fh_meetlines-head {
  font-weight: bold;
  text-align: left;
}

.meet-td {
  padding: 0.3rem;
  display: flex;
  align-items: center;
}

.meet-tr .meet-td {
  font-weight: normal;
}

.meet-td:nth-child(1) {
  flex: 1;
} /* Type */
.meet-td:nth-child(2) {
  flex: 1;
} /* Room */
.meet-td:nth-child(3) {
  flex: 2;
} /* Day & Time */
.meet-td:nth-child(4) {
  flex: 2;
} /* Instructor */

.meet-availability {
  flex: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: bold;
  color: #d00d2d;
  text-align: right;
  white-space: nowrap;
}