/* Custom styles for the major info page */

/* ==========================================================================
   BASE STYLES (Non-media query rules)
   ========================================================================== */

/* Override ASU header scrolled class to make it non-sticky */
#headerContainer header {
  position: relative !important;
}
#skip-link {
  display: none;
}
/* AB Testing hide class */
.ab-testing-hide {
  display: none !important;
}

/* Global link styles */
a {
  color: #8c1d40;
  text-decoration: underline;
}

a:hover {
  text-decoration: underline;
}

.btn:hover {
  text-decoration: none !important;
}

.backtop {
  display: none;
}

footer a.text-gold:visited:not(.btn):not(.uds-modal-close-btn) {
  color: #ffc627 !important;
}

/* Button styles */
.btn-primary:hover,
.btn-primary:focus {
  text-decoration: none !important;
}

/* Saved to favorites popup */
.saved-to-favorites-popup {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  white-space: nowrap;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}

.saved-to-favorites-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Arrow pointing up to the heart icon */
.saved-to-favorites-popup::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #333;
}

/* Favorites button focus - Unity Design System */
.singleBox:focus,
.singleBox:focus-visible {
  outline: 0 !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 1) !important;
}

/* ==========================================================================
   Hero section
   ========================================================================== */

.hero-section {
  background-color: white;
  display: flex;
  align-items: center;
  color: #333;
  margin-bottom: 0;
}

.program-hero-content {
  padding: 3rem;
}

.hero-program-image {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Sticky nav section (tab-nav)
   ========================================================================== */

.sticky-nav-buttons .btn-primary:hover {
  background-color: #8c1d40 !important;
  border-color: #8c1d40 !important;
  color: white !important;
}

.sticky-nav-buttons .btn-outline-dark:hover {
  background-color: #333 !important;
  border-color: #333 !important;
  color: white !important;
}

.sticky-nav-buttons .btn {
  margin-right: 12px !important;
}
/* Navigation styles */
.tab-nav {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
  position: sticky;
  top: 110px;
  background-color: white;
  z-index: 90;
  white-space: nowrap;
  transition: top 0.3s ease;
}

.tab-nav.show-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.tab-nav .tab-nav-header {
  font-size: 18px;
  font-weight: 700;
  margin-right: 12px;
}

.tab-nav ul {
  list-style: none;
  margin: 5px 0 0 0;
  padding: 0;
  display: flex;
}

.tab-nav li {
  margin: 0;
  padding-top: 5px;
}

.tab-nav a {
  display: flex;
  align-items: center;
  padding: 12px;
  text-decoration: none;
  color: #333;
  transition: border-bottom-color 0.3s ease;
  outline: none;
  line-height: 1.2;
}

.tab-nav ul a {
  border-bottom: 8px solid transparent;
}

.tab-nav ul a:hover {
  border-bottom-color: #ffc627;
}

.tab-nav a:focus {
  outline: none;
  border: none;
}

.tab-nav a:hover {
  background-color: white;
}

/* ==========================================================================
   Quick facts section
   ========================================================================== */

#quick-facts {
  padding-top: 72px;
}

.quick-facts-card-icon {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
}

.quick-facts-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #333;
}

/* ==========================================================================
   Stem-OPT and Accreditation section
   ========================================================================== */

/* STEM-OPT and Accreditation card styles */
#stem {
  padding-bottom: 72px;
}

.stem-card {
  background-color: #f8f8f8;
  padding: 24px;
  position: relative;
}

.stem-card h3 {
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 16px;
  color: #484848;
}

.stem-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #484848;
  line-height: 1.4;
}

.stem-card .chevron-circle {
  position: absolute;
  top: 50%;
  right: 20px;
  padding: 0;
  width: 25px;
  height: 25px;
  border: 1px solid #8c1538;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stem-card .chevron-circle:hover {
  background-color: #8c1538;
}

.stem-card .chevron-circle:hover svg {
  fill: white;
}

/* ==========================================================================
   Degree Overview section
   ========================================================================== */

#overview {
  background-image: linear-gradient(
    180deg,
    white 0px,
    white 150px,
    #f1f1f1 100px,
    #f1f1f1 100%
  );
  min-height: 400px;
  width: 100%;
  padding-bottom: 56px;
}

#overview .degree-overview-card {
  padding: 56px 48px;
}

#overview .card-header {
  padding-top: 0px !important;
}

#overview .card-body {
  padding-left: 112px;
  padding-bottom: 0;
  margin-top: 16px !important;
  margin-bottom: 0;
}

/* Overview content collapsible styles */
#overview-content {
  position: relative;
  overflow: hidden;
  transition: max-height 0.7s ease-out;
}

#overview-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 1)
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease-out;
  height: 100px;
}

#overview-content.collapsed {
  max-height: 200px;
}

#overview-content.collapsed::after {
  opacity: 1;
}

.overview-show-more {
  display: inline-block;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: #8c1d40;
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
}

.overview-show-more:hover {
  color: #6b1631;
}

/* ==========================================================================
   Sample Courses section
   ========================================================================== */

#courses {
  padding-top: 112px;
  padding-bottom: 40px;
}

.course-year {
  margin: 0;
  position: relative;
}

.course-year::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: -20px;
  width: 3px;
  background-color: #ffc627;
  z-index: 1;
}

.course-year.graduate-category::before {
  display: none;
}

.course-year:last-child::before {
  display: none;
}

.course-year.graduate-category .course-year-content {
  padding-left: 0;
}
/* Course year styles */
.course-year-header {
  background-color: transparent;
  border: none;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 30px;
  font-weight: bold;
  position: relative;
  z-index: 2;
  padding-left: 0;
}

.course-year-number {
  background-color: #ffc627;
  color: #000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 24px;
  font-weight: bold;
  font-size: 1.5rem;
  position: relative;
  z-index: 3;
}

.course-year-content {
  padding: 12px 0px 24px 72px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.8s ease-out,
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  opacity: 0;
  transform: translateY(-10px);
  font-size: 18px;
}

.course-year-content.open {
  max-height: 10000px;
  opacity: 1;
  transform: translateY(0);
}

.course-item {
  padding: 16px 0px 16px 16px;
  border-bottom: 1px solid #bfbfbf;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
}

.course-item:has(.course-title-big),
.course-item:not(:has(.course-expand)) {
  pointer-events: none;
}

.course-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.course-year-arrow {
  transition: transform 0.3s ease;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
}

.course-year-header.open .course-year-arrow {
  transform: rotate(180deg);
}

.course-title {
  font-weight: 700;
}

.course-title-big {
  font-weight: 700;
  font-size: 30px;
}

.degree-details {
  padding-bottom: 72px;
}

.degree-details .course-item {
  padding: 15px 0px !important;
}

.course-code {
  color: #747474;
  font-weight: 400;
  font-size: 18px;
}

.course-item:last-child {
  border-bottom: none;
}

.course-details {
  flex: 1;
}

.course-credits {
  color: #747474;
  font-weight: 400;
}

.course-label {
  color: #747474;
  font-weight: 400;
}
/* Course expand styles */
.course-expand {
  background: none;
  border: 2px solid #000;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #000;
}

.course-expanded-details {
  font-size: 0.85rem;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out;
  padding: 0 20px;
}

.course-expanded-details.open {
  max-height: 500px;
  padding: 20px;
  border-top: 1px solid #ddd;
  background-color: #f8f9fa;
}

/* Curriculum Summary card with same background as stem-card */
.curriculum-summary {
  background-color: #f8f9fa;
  padding: 25px;
  border: 1px solid #ddd;
  border-left: 8px solid #ffc627;
  position: sticky;
  top: 180px;
  align-self: flex-start;
}

.curriculum-summary .summary-heading {
  background-color: #333;
  color: white;
  padding: 4px 8px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

.curriculum-summary .summary-credits {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  line-height: 1;
  margin-bottom: 20px;
}

/* Curriculum summary course styling */
.curriculum-summary-course {
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

/* ==========================================================================
   Skills section
   ========================================================================== */

#skills {
  padding-top: 64px;
  padding-bottom: 96px;
}

/* Skills animation */
.skill-item {
  opacity: 0;
  transform: scale(0);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-item.skill-visible {
  opacity: 1;
  transform: scale(1);
}

.skills-text-fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.skills-text-fade.text-visible {
  opacity: 1;
}

/* ==========================================================================
   Careers section
   ========================================================================== */

#careers {
  background-color: #f1f1f1;
  padding-bottom: 96px;
}
/* Career table styles */
.career-table {
  width: 100%;
  border-collapse: collapse;
}

.career-table thead tr {
  border-bottom: 1px solid #d0d0d0;
}

.career-table th {
  padding: 0.5rem 0;
  text-align: left;
  color: #747474;
  font-weight: 400;
}

.career-table th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.career-table th.sortable:hover {
  color: #191919;
  text-decoration: underline;
}

.career-table th.sortable:focus {
  outline: 2px solid #191919;
  outline-offset: 2px;
}

.career-table th.sortable:focus-visible {
  outline: 2px solid #191919;
  outline-offset: 2px;
}

.career-table th .sort-icon {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.career-table th[data-sort="asc"] .sort-up,
.career-table th[data-sort="desc"] .sort-down {
  fill: black;
}
/* Career table body styles */
.career-table tbody tr {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  border-bottom: 1px solid #d0d0d0;
}

.career-table tbody tr.row-visible {
  opacity: 1;
  transform: translateX(0);
}

.career-table td {
  padding: 1rem 0;
  color: #333;
}

.career-table td:first-child {
  transition: transform 0.3s ease;
}

.career-table .mobile-label {
  display: none;
}

.career-table tbody tr:hover td:first-child {
  transform: translateX(10px);
}

.career-table .career-link-cell {
  text-align: right;
}

.career-table .career-link-cell a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.career-table .career-link-cell .chevron-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid #8c1538;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.career-table .career-link-cell a:hover .chevron-circle {
  background-color: #8c1538;
}

.career-table .career-link-cell a:hover .chevron-circle svg {
  fill: white;
}

.career-table tbody tr:hover {
  background-color: #f1f1f1;
}

/* Apply "Learn more" hover effect when hovering over the entire row */
.career-table tbody tr:hover .career-link-cell .chevron-circle {
  background-color: #8c1538;
}

.career-table tbody tr:hover .career-link-cell .chevron-circle svg {
  fill: white;
}

/* Make "Learn more" text look like a link */
.career-table .career-link-cell {
  display: inline-flex;
  gap: 8px;
  color: #8c1d40;
  text-decoration: underline;
}

.text-growth-positive {
  color: #497500;
}

/* Skills and Career hero sections */
#courses h2,
#skills h2,
.career-hero h2 {
  font-size: 48px;
}

/* Career hero styles */
.career-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 380px;
  background: linear-gradient(195.92deg, #ffc627 61.09%, #ffb00b 100.28%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.career-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.career-hero.animate-backgrounds .career-bg-image {
  animation-duration: 4s;
  animation-iteration-count: 1;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.career-hero.animate-backgrounds .career-bg-image:nth-child(1) {
  animation-name: fadeInOut1;
}

.career-hero.animate-backgrounds .career-bg-image:nth-child(2) {
  animation-name: fadeInOut2;
}

.career-hero.animate-backgrounds .career-bg-image:nth-child(3) {
  animation-name: fadeInOut3;
}

.career-hero.animate-backgrounds .career-bg-image:nth-child(4) {
  animation-name: fadeInOut4;
}

.career-hero-content {
  position: relative;
  z-index: 10;
}
/* Career opportunities list styles */
.career-opps-list p {
  display: none;
}

.career-opps-list p.career-note {
  display: block;
  margin-top: 1rem;
  color: #484848;
}

.career-opps-list ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
  row-gap: 0;
}

.career-opps-list li {
  font-size: 20px;
  font-weight: 700;
  padding: 1.5rem 0 1.5rem 40px;
  border-bottom: 1px solid #d0d0d0;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(4rem);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.career-opps-list li.item-visible {
  opacity: 1;
  transform: translateX(0);
}

.career-opps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 36px;
  background-image: url("../images/employee-badge-icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Cost section
   ========================================================================== */

/* Cost hero section */
.cost-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cost-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}

.cost-fg-image {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 80%;
  width: auto;
  z-index: 3;
  transform: translateX(20%);
}

.cost-hero.animate-cost .cost-fg-image {
  animation: slideInFromRight 0.8s ease-out forwards;
}

.cost-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-left: 6rem;
  opacity: 0;
  transform: translateY(80px);
}

.cost-hero.animate-cost .cost-hero-content {
  animation: slideInFromBottom 1s ease-out 0.2s forwards;
}

/* ==========================================================================
   Also Interested section
   ========================================================================== */

/* Also interested in - horizontal scroll */
.interest-scroll-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
}

.interest-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.interest-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.interest-scroll-container::-webkit-scrollbar-thumb {
  background: #8c1d40;
  border-radius: 4px;
}

.interest-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #6b1631;
}

.interest-card {
  flex: 0 0 calc(30% - 0.67rem);
  min-width: 300px;
  background-color: #fff;
}

/* Faculty section - similar to interest section */
.faculty-container {
  overflow: hidden;
}

.faculty-scroll-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.faculty-scroll-container::-webkit-scrollbar {
  display: none; /* WebKit */
}

.faculty-card-wrapper {
  flex: 0 0 calc(25% - 1.5rem);
  width: 218px;
}

/* ==========================================================================
	 Shared button styles
   ========================================================================== */

/* shared show more styles */

.career-table-show-more,
.more-about-show-more,
.skills-show-more {
  display: block;
  margin: 16px 0;
  padding: 0;
  background: none;
  border: none;
  color: #8c1d40;
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
}

.career-table-show-more:hover,
.more-about-show-more:hover,
.skills-show-more:hover {
  color: #6b1631;
}

.career-table-show-more:focus,
.more-about-show-more:focus,
.skills-show-more:focus {
  outline: 2px solid #191919;
  outline-offset: 2px;
}

.career-table-show-more:focus-visible,
.more-about-show-more:focus-visible,
.skills-show-more:focus-visible {
  outline: 2px solid #191919;
  outline-offset: 2px;
}

.skills-show-more {
  margin-top: 16px;
  margin-bottom: 0;
}

/* Shared wrapper positioning */
#career-table-wrapper,
#more-about-wrapper,
#skills-list-wrapper {
  position: relative;
}

/* Shared collapsible content base styles */
#career-table-container,
#more-about-content,
#skills-list {
  position: relative;
  overflow: hidden;
  transition: max-height 1.2s ease-out;
}

/* Shared gradient overlay */
#career-table-container::after,
#more-about-content::after,
#skills-list::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to bottom,
    rgba(240, 240, 240, 0),
    rgba(240, 240, 240, 1)
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease-out;
}

#career-table-container::after {
  height: 120px;
}

#more-about-content::after {
  height: 100px;
}

#skills-list::after {
  height: 80px;
}

/* Skills list semantic structure */
#skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-item {
  list-style: none;
}

/* Collapsed states */
#career-table-container.collapsed,
#more-about-content.collapsed,
#skills-list.collapsed {
  transition: max-height 0.7s ease-out;
}

#career-table-container.collapsed {
  max-height: 900px;
  transition: max-height 1s ease-out;
}

#more-about-content.collapsed {
  max-height: 250px;
}

#skills-list.collapsed {
  max-height: 150px;
}

/* Collapsed gradient overlays */
#career-table-container.collapsed::after,
#skills-list.collapsed::after {
  opacity: 1;
}

#career-table-container.collapsed::after {
  transition: opacity 1s ease-out;
}

#more-about-content.collapsed::after,
#skills-list.collapsed::after {
  transition: opacity 0.7s ease-out;
}

/* ==========================================================================
	 Modal css for Apply now, Stem-OPT
   ========================================================================== */

/* Apply modal styles */
.cluetipTh,
#startApplicationBtn {
  font-weight: bold;
  margin: 10px 0;
}

input[type="radio"] {
  margin-right: 5px;
}

#stemOptModal .alert-icon {
  display: flex;
  align-items: center;
  flex: 0 0 3rem;
}

/* Modal styles - Right side panel */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  transition: background-color 0.3s ease-out;
  pointer-events: none;
}

.modal.show {
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.modal-content {
  position: fixed;
  right: 0;
  top: 0;
  background: white;
  width: 500px;
  height: 100vh;
  overflow: hidden;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  border-radius: 0 !important;
  pointer-events: auto;
}

.modal.show .modal-content {
  transform: translateX(0);
}

/* Desktop modal ID-specific rules for proper animation */
#applyNowModal .modal-content,
#requestInfoModal .modal-content,
#stemOptModal .modal-content,
#accreditationModal .modal-content,
#curriculumArchiveModal .modal-content,
#checksheetModal .modal-content,
#whatIfModal .modal-content {
  transform: translateX(100%) !important;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

#applyNowModal.show .modal-content,
#requestInfoModal.show .modal-content,
#stemOptModal.show .modal-content,
#accreditationModal.show .modal-content,
#curriculumArchiveModal.show .modal-content,
#checksheetModal.show .modal-content,
#whatIfModal.show .modal-content {
  transform: translateX(0) !important;
}

.modal-header {
  padding: 20px 20px 0 20px;
  border-bottom: none;
}

.modal-back {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8c1538;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}

.modal-back:hover {
  text-decoration: underline;
}

.modal-body {
  padding-left: 30px;
  overflow-y: auto;
  height: calc(100vh - 80px);
}

.modal-body h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
  font-weight: bold;
  line-height: 2.25rem;
}

.modal-body p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: #333;
}

/*=========================================
	Admissions details section 
=====================================*/
#admissions {
  padding-top: 96px;
  padding-bottom: 96px;
}
/* Accordion styles */
.accordion-button:not(.collapsed) {
  box-shadow: none;
}

#admissions-accordion .accordion-button,
#admissions-accordion-extra .accordion-button {
  padding-top: 1.1rem !important;
  padding-bottom: 1.1rem !important;
}

#admissions-accordion .accordion-button::after,
#admissions-accordion-extra .accordion-button::after {
  background-image: url("../images/chevron-down.svg") !important;
  transform-origin: center !important;
}

#admissions-accordion-extra > .accordion-item {
  border-left: 0.5rem solid #8c1d40 !important;
}

/* Nested accordion styles */
.accelerated-accordion {
  border: none;
  background: transparent;
}

.accelerated-accordion .accordion-item {
  border: none;
  background: transparent;
}

.accelerated-accordion .accordion-item + .accordion-item {
  border-top: none;
}

.accelerated-accordion .accordion-header {
  padding: 1rem 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  background: transparent !important;
  font-weight: normal;
  width: auto;
  border: none;
  color: #8c1d40;
  text-decoration: underline;
  text-align: left;
  font-size: 1rem;
}

.accelerated-accordion .accordion-header:hover {
  color: #6b1631;
}

.accelerated-accordion .accordion-header:focus {
  outline: 2px solid #191919;
  outline-offset: 2px;
}

.accelerated-accordion .accordion-header:focus-visible {
  outline: 2px solid #191919;
  outline-offset: 2px;
}

.accelerated-accordion .accordion-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0;
  text-decoration: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238C1D40' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
  transition: transform 0.2s ease-in-out;
}

.accelerated-accordion .accordion-header:hover .accordion-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236B1631' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.accelerated-accordion .accordion-header.active .accordion-icon {
  transform: rotate(-180deg);
}

.accelerated-accordion .accordion-collapse {
  border: none;
  background: transparent;
  display: none;
}

.accelerated-accordion .accordion-collapse:not(.show) {
  height: 0;
  overflow: hidden;
}

.accelerated-accordion .accordion-collapse.collapsing {
  display: block;
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.accelerated-accordion .accordion-collapse.show {
  display: block;
  height: auto;
}

.accelerated-accordion .accordion-body {
  padding: 0;
  margin: 0;
  background: transparent;
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */

@keyframes fadeInOut1 {
  0%,
  8.33% {
    opacity: 0;
  }
  16.67%,
  25% {
    opacity: 1;
  }
  33.33%,
  100% {
    opacity: 0;
  }
}

@keyframes fadeInOut2 {
  0%,
  25% {
    opacity: 0;
  }
  33.33%,
  41.67% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes fadeInOut3 {
  0%,
  41.67% {
    opacity: 0;
  }
  50%,
  58.33% {
    opacity: 1;
  }
  66.67%,
  100% {
    opacity: 0;
  }
}

@keyframes fadeInOut4 {
  0%,
  58.33% {
    opacity: 0;
  }
  66.67%,
  100% {
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  to {
    transform: translateX(-5%);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileZoom {
  0% {
    transform: scale(2.2);
  }
  100% {
    transform: scale(1.9);
  }
}
/* ==========================================================================
   MEDIA QUERIES (Organized by breakpoint - desktop first, larger to smaller)
   ========================================================================== */

/* Below XL (max-width: 1259px) */
@media (max-width: 1259px) {
  .hero-section {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

/* LG to XL (min-width: 992px and max-width: 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-section {
    min-height: 450px;
  }

  .hero-program-image {
    object-fit: cover;
    object-position: center center;
    height: 100%;
    min-height: 450px;
  }
  .tab-nav .container {
    margin-left: 24px;
  }
}

/* Mobile devices (max-width: 991px for device ipad Mini and phone) */
@media (max-width: 991px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .btn-dark,
  .btn-outline-dark {
    font-size: 14px;
  }

  #hero .container {
    padding: 0 0 48px 0;
  }

  .hero-buttons .btn {
    font-size: 14px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-program-image {
    object-fit: cover;
    object-position: center top;
    max-height: 500px;
    height: auto;
    width: 100%;
  }

  /* Mobile sticky tab navigation */
  .tab-nav {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    transition: top 0.3s ease;
  }

  .tab-nav .container {
    margin-left: auto !important;
  }

  .tab-nav.show-sticky {
    top: 0;
  }
  .tab-nav .container {
    padding: 12px 16px;
  }

  .tab-nav .container > div {
    padding: 0;
    justify-content: flex-start !important;
    position: relative;
  }

  .tab-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px 0;
  }

  .tab-nav ul.show {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: white;
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e0e0e0;
  }

  .tab-nav ul.show::before {
    content: "On this page:";
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
  }

  .tab-nav ul li {
    display: block;
    margin: 0;
  }

  .tab-nav ul.show li {
    padding: 0;
    border: none;
  }

  .tab-nav ul.show li a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-bottom: none;
  }

  .tab-nav ul.show li a:hover,
  .tab-nav ul.show li a.active {
    color: #8c1538;
    background-color: #f8f9fa;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
  }

  .tab-nav ul li:last-child {
    border-bottom: none;
  }

  .tab-nav ul a {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
    border-bottom: none !important;
  }

  .tab-nav ul a:hover {
    background-color: #f8f8f8;
    border-bottom: none !important;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    background: none;
    border: none;
    padding: 0;
    margin-left: 12px;
    height: 36px;
    width: 40px;
  }

  .mobile-nav-toggle svg {
    transition: transform 0.3s ease;
    margin-left: 16px;
    display: block;
  }

  .mobile-nav-toggle.active svg {
    transform: rotate(180deg);
  }

  .sticky-nav-buttons {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  /* Mobile navigation and button styles */
  .sticky-nav-buttons {
    justify-content: flex-end;
  }

  .sticky-nav-buttons > *:not(.mobile-nav-toggle) {
    margin-right: auto;
  }

  .sticky-nav-buttons .btn-sm {
    padding: 12px 24px;
    font-size: 12px;
  }

  /* Mobile quick facts cards */
  #quick-facts {
    padding-top: 48px;
    border-top: 1px solid #ccc;
  }
  #quick-facts .row .col-3 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px;
  }

  #quick-facts .row .col-3:last-child {
    margin-bottom: 0;
  }

  .card-body {
    font-size: 0.9rem !important;
    padding: 0px 16px 16px 16px !important;
  }

  .card-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .quick-facts-card-icon {
    margin-bottom: 0 !important;
    flex-shrink: 0;
    height: 35px !important;
    width: auto !important;
  }

  .quick-facts-card-title {
    margin: 0 !important;
    flex: 1;
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
  }

  /*** STEM-OPT section ****/

  #stem {
    padding-bottom: 64px;
  }

  .stem-card {
    padding: 16px !important;
  }

  .stem-card h3 {
    font-size: 14px;
  }

  .stem-card-title {
    font-size: 16px;
  }

  .stem-card .chevron-circle {
    right: 10px !important;
  }

  .stem-card-row .col-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
  }

  .stem-card-row .col-6:last-child {
    margin-bottom: 0;
  }

  /** mobile for Overview section */
  #overview {
    padding-bottom: 40px;
  }

  #overview .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  #overview .degree-overview-card {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  #overview .card-body {
    border-left: none;
    margin-left: 0 !important;
    padding-left: 1rem !important;
  }

  /** mobile for Course and Curriculum section 888*/
  #courses {
    padding-top: 64px;
    padding-bottom: 24px;
  }

  #courses .course-code {
    padding-top: 32px;
  }

  .course-year-arrow {
    width: 32px;
  }

  .course-year-header {
    font-size: 24px;
  }

  .course-credits {
    display: block !important;
    margin-top: 5px;
  }

  .course-credits::before {
    content: none !important;
  }

  .course-label {
    display: block !important;
    margin-top: 5px;
  }

  .course-label::before {
    content: none !important;
  }

  .desktop-divider {
    display: none !important;
  }

  /* .course-item {
		padding: 16px;;
	} */

  .course-details {
    margin-right: 20px !important;
  }

  .course-year::before {
    display: none !important;
  }

  .course-year-content {
    padding: 16px 0 16px 0;
    font-size: 16px;
    transition:
      max-height 0.8s ease-out,
      opacity 0.6s ease-out,
      transform 0.6s ease-out !important;
  }

  .course-year-number {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
    line-height: 40px !important;
    margin-right: 12px;
  }

  .course-description-content {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .course-expanded-details.open {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Mobile responsive: curriculum-summary above left column */
  .curriculum-summary {
    position: static;
    order: -1;
    margin-bottom: 20px;
    border-left: 1px solid #ddd; /* Remove yellow left border */
    border-bottom: 8px solid #ffc627; /* Add yellow bottom border */
  }

  /* Degree details mobile - reorder summary before curriculum */
  .degree-details {
    padding-bottom: 24px;
  }

  .degree-details .row {
    display: flex;
    flex-direction: column;
  }

  .degree-details .row {
    flex-direction: column-reverse;
  }

  /* Degree details mobile - align chevron arrows to the right */
  .degree-details .graduate-category .course-year-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0 !important;
  }

  .degree-details .graduate-category .course-year-header span:first-child {
    flex: 1 !important;
    text-align: left !important;
    padding-right: 16px !important;
  }

  .degree-details .graduate-category .course-year-arrow {
    margin-left: auto !important;
    flex-shrink: 0 !important;
    position: absolute !important;
    right: 2px !important;
  }

  .degree-details .graduate-category {
    position: relative !important;
  }

  /* Skills animation mobile-specific */
  .skills-text-fade {
    opacity: 1;
    transition: none;
    font-size: 16px !important;
  }

  .skill-item {
    opacity: 0;
    transform: translateX(50px);
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
    font-size: 16px;
  }

  .skill-item.skill-visible {
    opacity: 1;
    transform: translateX(0);
  }

  /* Career opportunities mobile */
  .career-opps-list ul {
    grid-template-columns: 1fr;
  }

  .career-opps-list li {
    font-size: 16px;
  }

  /* Mobile career hero */
  .career-bg-image {
    display: none;
  }

  .career-hero {
    aspect-ratio: 375 / 254;
    height: auto !important;
    align-items: flex-end !important;
    padding-bottom: 30px !important;
    margin-bottom: 3rem !important;
  }

  .career-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/careers-hero-background-mobile.png");
    background-position: left 48%;
    background-size: cover;
    transform-origin: left 48%;
    transform: scale(2.2);
  }

  .career-hero.animate-backgrounds::before {
    animation: mobileZoom 1s ease-out forwards;
  }

  .career-hero-content h2 {
    font-size: 30px !important;
    margin-bottom: 0 !important;
  }

  .career-grad-text {
    margin-bottom: 28px !important;
  }

  /* Mobile cost hero */
  .cost-hero {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .cost-hero-content {
    position: relative;
    padding-left: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: 1rem !important;
    margin-right: 1rem;
    width: auto !important;
    order: 1;
  }

  .cost-fg-image {
    position: relative;
    height: 250px;
    width: 100%;
    object-fit: contain;
    order: 2;
    right: auto;
    bottom: auto;
  }

  /* Interest cards mobile */
  .interest-card {
    flex: 0 0 calc(85% - 0.5rem);
  }

  .interest-card a span {
    font-size: 14px;
  }

  #faculty .container {
    padding-bottom: 96px;
    margin-bottom: 0;
  }

  /* Faculty cards mobile - same as interest cards */
  .faculty-card-wrapper {
    flex: 0 0 calc(85% - 0.5rem);
    width: 218px;
  }
  /* General mobile styles */
  .video-section {
    padding: 50px 0 !important;
  }

  .video-section h2 {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
  }

  .play-button {
    width: 80px !important;
    height: 80px !important;
  }

  .play-button svg {
    width: 30px !important;
    height: 30px !important;
  }

  .video-container {
    padding-bottom: 40% !important;
    max-height: 250px;
  }
  #careers {
    padding-bottom: 64px;
  }

  #careers .fs-4 {
    font-size: 16px !important;
  }

  /* Mobile table layout */
  .career-table thead {
    display: none;
  }

  .career-table tbody tr {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: relative;
  }

  .career-table td {
    padding: 4px 0;
    display: block;
    width: 100%;
  }

  .career-table td:first-child {
    font-size: 18px !important;
    margin-bottom: 8px;
  }

  .career-table td:nth-child(2),
  .career-table td:nth-child(3) {
    font-size: 14px !important;
  }

  .career-table .mobile-label {
    display: inline;
  }

  .career-table .career-link-cell {
    position: absolute;
    right: 0;
    bottom: 20px;
    width: auto !important;
    text-align: right;
  }

  .career-table tbody tr:hover td:first-child {
    transform: none;
  }

  /* Collapsible content - Show more/less functionality */
  #career-table-container {
    position: relative;
    transition: max-height 1.5s ease-out;
    max-height: 5000px;
  }

  #career-table-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
      to bottom,
      rgba(240, 240, 240, 0),
      rgba(240, 240, 240, 1)
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease-out;
  }

  #career-table-container.collapsed {
    max-height: 900px;
    overflow: hidden;
    transition: max-height 1s ease-out;
  }

  #career-table-container.collapsed::after {
    opacity: 1;
    transition: opacity 1s ease-out;
  }

  #skills h2,
  #courses h2 {
    font-size: 30px !important;
  }

  #admissions {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  #admissions h2 {
    font-size: 24px !important;
  }

  #admissions .accordion-button {
    font-size: 16px !important;
  }

  #cost h2 {
    font-size: 24px !important;
  }

  #skills-list {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  #skills .skill-item {
    border: none !important;
    padding: 0 !important;
  }

  /* Mobile modal positioning */
  #applyNowModal,
  #requestInfoModal,
  #stemOptModal,
  #accreditationModal,
  #curriculumArchiveModal,
  #checksheetModal,
  #whatIfModal {
    justify-content: center !important;
    background-color: rgba(0, 0, 0, 0) !important;
    transition: background-color 0.3s ease-out !important;
  }

  #applyNowModal.show,
  #requestInfoModal.show,
  #stemOptModal.show,
  #accreditationModal.show,
  #curriculumArchiveModal.show,
  #checksheetModal.show,
  #whatIfModal.show {
    background-color: rgba(0, 0, 0, 0.5) !important;
  }

  #applyNowModal .modal-content,
  #requestInfoModal .modal-content,
  #stemOptModal .modal-content,
  #accreditationModal .modal-content,
  #curriculumArchiveModal .modal-content,
  #checksheetModal .modal-content,
  #whatIfModal .modal-content {
    width: 100% !important;
    max-width: 600px !important;
    height: 100vh !important;
    transform: translateX(100%) !important;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  #applyNowModal.show .modal-content,
  #requestInfoModal.show .modal-content,
  #stemOptModal.show .modal-content,
  #accreditationModal.show .modal-content,
  #curriculumArchiveModal.show .modal-content,
  #checksheetModal.show .modal-content,
  #whatIfModal.show .modal-content {
    transform: translateX(0) !important;
  }

  /* Mobile modal styles - full screen coverage */
  /* Generic rules removed - all modals use ID-specific rules above */

  .row.mb-4 {
    display: flex;
    flex-direction: column;
  }

  .col-md-9 {
    order: 1;
  }

  .col-md-3 {
    order: 0;
  }
}

/* Small devices (max-width: 575px) */
@media (max-width: 575px) {
  .program-hero-content {
    padding: 1.5rem;
  }
}

/* XL and above (min-width: 1200px) */
@media (min-width: 1200px) {
  .hero-program-image {
    object-fit: cover;
    object-position: center center;
    height: 480px;
    max-width: 650px;
  }
}

/* Tablet and small desktop (min-width: 769px) */
@media (min-width: 769px) {
  .skills-show-more,
  .career-table-show-more {
    display: none;
  }
}

/* Accessibility - Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  #career-table-container,
  #more-about-content,
  #skills-list,
  .skill-item,
  .skills-text-fade {
    transition: none !important;
    animation: none !important;
  }
}
