.playbook-home {
  width: 100%;
  position: relative;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  font-size: 0.75rem;
  color: #000;
  font-family: "Source Sans Pro";
}

/* Sidebar Styles */
.side-navigation-menus {
  flex: 0 0 18.75rem;
  max-width: 18.75rem;
  background-color: #1f3d7b;
  color: #fffdf7;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  min-height: 100vh;
  height: auto;
  position: sticky;
  top: 0;
}

/* Content Area */
.playbook-content {
  flex: 1;
  background-color: #e8ecf5;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Container for Sidebar and Content */
.page {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.page,
.reports-wrapper,
.cards {
  display: flex;
  flex-wrap: wrap;
}

.template-header {
  font-size: 2rem;
  font-weight: 600;
  line-height: 105%;
  padding: 0 1.5rem;
}

/* Top buckets (Domains and Frameworks) */
.top-buckets {
  align-self: stretch;
  overflow-y: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  margin-right: 1rem;
}

.top-buckets .left div.module,
.top-buckets .right div.module {
  padding-right: 0;
}

.bottom-bucket {
  width: 100%;
  margin-right: 1rem;
}

/* Module styles */
.module {
  align-self: stretch;
  border-radius: 1rem;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 1.5rem;
  font-size: 1rem;
  gap: 2.5rem;
}

.section-sub-head {
  position: relative;
  font-size: 18px;
  font-weight: 600;
  font-family: "Source Sans Pro";
  color: #000;
  text-align: left;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#cards-wrapper {
  margin-left: -0.75rem;
}

/* Individual card */
.right .cards {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: calc(33.333% - 16px);
  min-width: 223px;
  padding: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.right .cards:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.task-list {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  gap: 24px;
  text-align: left;
  font-size: 12px;
  color: #222;
  font-family: "Source Sans Pro";
}

.reports {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  margin-right: 1rem;
}

.reports-card {
  width: 100%;
  position: relative;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: flex;
  flex: 0 0 24%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
  gap: 16px;
  text-align: center;
  font-size: 12px;
  color: #000;
  font-family: "Source Sans Pro";
}

/* Parent .card ensures alignment */
.reports-card div.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  box-sizing: border-box;
}

/* Instructions container for text */
.reports-instructions {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.report-text {
  position: relative;
  font-family: "Source Sans Pro";
  color: #535353;
  text-align: center;
}

.reports-image {
  width: 100%;
  position: relative;
  height: 145px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.reports-image img {
  align-self: stretch;
  flex: 1;
  position: relative;
  border-radius: 16px;
  max-width: 100%;
  overflow: hidden;
  max-height: 100%;
  object-fit: cover;
}

.section-sub-head {
  padding: 0 1.5rem;
}

.adobe-acrobat-reader {
  width: 80px;
  position: relative;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
}

.program-guide-icon-wrapper {
  width: 60px;
  box-shadow: 0 0 10px rgba(179, 141, 217, 0.5) inset;
  border-radius: 8px;
  background-color: #fef8ff;
  border: 1px solid #fbfbfb;
  box-sizing: border-box;
  height: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.program-guide-category {
  align-self: stretch;
  position: relative;
  letter-spacing: 0.4px;
  line-height: 160%;
  text-transform: uppercase;
}

.program-guide-title {
  align-self: stretch;
  position: relative;
  font-size: 16px;
  line-height: 160%;
  font-weight: 600;
  font-family: "Source Sans Pro";
  color: #000;
}

.program-guide-content-wrapper {
  align-self: stretch;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.program-guide-card {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  text-align: left;
  font-size: 12px;
  color: #0080ab;
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
}

/* General sprite styles */
.program-guide-card-image-wrapper {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.program-guide-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.program-guide-card-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.explore-header {
  align-self: stretch;
  position: relative;
  font-weight: 600;
}

.playbook {
  font-weight: 600;
  font-family: "Source Sans Pro";
  white-space: pre-wrap;
}

.explore-text {
  align-self: stretch;
  position: relative;
  font-size: 16px;
  line-height: 160%;
  color: #4d4d4d;
}

.community-forum-link {
  margin: 0 !important;
  top: 32px;
  left: 165px;
  height: 14px;
  overflow: hidden;
}

.community-forum-link,
.playbook-library-link {
  color: #0080ab;
  text-decoration: underline;
  transition: all 0.2s ease;
}

.community-forum-link:hover,
.playbook-library-link:hover {
  color: #006d91;
  text-decoration: none;
  opacity: 0.9;
}

.community-forum-link:focus,
.playbook-library-link:focus {
  outline: 2px solid #0080ab;
  outline-offset: 2px;
}

.suggestions-header {
  align-self: stretch;
  position: relative;
  font-weight: 600;
}

.jedcampusseal-icon {
  width: 56px;
  position: relative;
  height: 60.6px;
  object-fit: cover;
}

.membership-logo-image {
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.membership-item-links {
  font-weight: 600;
}

.membership-items {
  color: #1f3d7b;
}

.suggestions-text {
  flex: 1;
  position: relative;
  line-height: 160%;
}

.membership-logo {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  font-size: 16px;
  color: #4d4d4d;
}

.keep-us-in-the-loop {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  font-size: 16px;
}

.suggestions,
.explore {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
}

.right,
.left {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  text-align: left;
  padding: 0;
  font-size: 16px;
  color: #222;
  font-family: "Source Sans Pro";
}

.right {
  padding-top: 27px;
}

.document-title {
  width: 153px;
  position: relative;
  line-height: 140%;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.report-title {
  position: relative;
  font-weight: 600;
  font-family: "Source Sans Pro";
  color: #000;
  text-align: center;
}

.text {
  position: absolute;
  top: 0;
  left: 0;
  width: 137.6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.description {
  position: absolute;
  top: 21px;
  left: 0;
  line-height: 140%;
  color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  width: 362px;
}

.assessment-text {
  align-self: stretch;
  position: relative;
  height: 55px;
}

.instructions-text-icon {
  width: 185.8px;
  position: relative;
  height: 13.8px;
}

.instructions {
  border-radius: 4px;
  background-color: #e0faff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}

.assessment-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
}

.open {
  position: relative;
  letter-spacing: 0.4px;
  line-height: 160%;
  text-transform: uppercase;
  font-weight: 900;
}

.external-link-icon {
  width: 12px;
  position: relative;
  height: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.open-assessment-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  cursor: pointer;
  background-color: #0080ab;
  color: #fff;

  /* border-radius: 8px; */
  transition: all 0.2s ease;
}

.open-assessment-link {
  text-decoration: none;
  display: inline-block;
}

.open-assessment-button:hover {
  background-color: #006d91;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.open-assessment-button:focus {
  outline: 2px solid #0080ab;
  outline-offset: 2px;
}

.open-assessment-button:active {
  background-color: #057;
  transform: translateY(1px);
}

.open-assessment-button svg {
  fill: currentColor;
}

.assessment-card {
  flex: 1;
  width: 100%;
  position: relative;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px;
  gap: 16px;
  text-align: left;
  font-size: 12px;
  color: #000;
  font-family: "Source Sans Pro";
}

.external-link-icon {
  width: 14px;
  height: 14px;
}

.external-link-icon use {
  fill: #fffdf7;
}

/* Icon Container */
.reports-icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #0080ab;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.reports-icon {
  width: 14px;
  height: 14px;
  max-width: 100%;
  max-height: 100%;
}

/* Card states */
.assessment-card,
.reports-card {
  position: relative;
  transition: all 0.2s ease-in-out;
}

/* Default (enabled) state */
.open-assessment-button {
  background-color: #0080ab;
  padding: 8px 16px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease-in-out;
}

.top-buckets .open-assessment-button {
  margin-top: 4rem;
}

.open-assessment-button:hover {
  background-color: #006d91;
}

/* Disabled state styling */
.assessment-card:not(:has(.open-assessment-link)),
.reports-card:not(:has(.open-assessment-link)) {
  opacity: 0.7;
}

.assessment-card:not(:has(.open-assessment-link))::after {
  content: "Not yet available";
  position: absolute;
  right: -20px;
  top: 75%;
  transform: translate(-50%, -27%);
  color: #666;
  font-size: 16px;
  font-style: italic;
}

.reports-card:not(:has(.open-assessment-link))::after {
  content: "Not yet available";
  right: 16px;
  top: 50%;
  color: #666;
  font-size: 16px;
  font-style: italic;
  display: inline-block;
  width: 180px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 24px;
}

/* Better focus states for accessibility */
.open-assessment-link:focus-visible {
  outline: 2px solid #0080ab;
  outline-offset: 2px;
  border-radius: 24px;
}

/* Icon styling */
.external-link-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Hover effects */
.assessment-card:has(.open-assessment-link):hover,
.reports-card:has(.open-assessment-link):hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Additional accessibility feature - screen reader text */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile breakpoint */
@media only screen and (max-width: 1100px) {
  .assessment-card {
    flex-direction: column !important;
    padding: 16px;
  }

  .assessment-wrapper {
    gap: 12px;
  }

  .assessment-text {
    min-height: auto;
  }

  .document-title {
    width: 100%;
    font-size: 16px;
  }

  .description {
    position: relative;
    top: 1.5rem;
    left: 0;
    width: 100%;
    font-size: 13px;
  }

  .text {
    width: 100%;
  }

  .assessment-card:not(:has(.open-assessment-link))::after {
    position: relative;
    transform: none;
    margin-top: 8px;
    text-align: center;
    right: auto;
  }

  .top-buckets {
    flex-direction: column;
    padding: 16px;
    flex-wrap: wrap;
  }

  .left,
  .right {
    width: 100%;
    border: none;
  }

  .module {
    padding: 16px;
    gap: 16px;
  }

  .reports {
    flex-direction: column;
  }

  .reports-card {
    width: 100%;
  }

  .reports-card:not(:has(.open-assessment-link))::before {
    position: relative;
    transform: none;
    margin-top: 8px;
    text-align: center;
    right: auto;
  }

  .assessment-card,
  .reports-card {
    flex-direction: column;
    align-items: stretch;
  }

  .open-assessment-button {
    width: 100%;
    justify-content: center;
  }

  div.assessment-card .open-assessment-link {
    margin-top: -65px;
    width: 85px;
    float: right;
  }
}

@media (max-width: 768px) {
  .page {
    flex-direction: column;
  }

  .page,
  .dashboard-home {
    display: flex;
    flex-direction: column;
  }

  .side-navigation-menus {
    width: 100%;
    max-width: unset;
    position: relative;
  }

  .task-list {
    width: 100%;
  }

  .task-list * {
    max-width: 100% !important;
  }

  .reports-icon {
    min-width: 14px !important;
    min-height: 14px !important;
  }
}

@media (max-width: 480px) {
  .instructions {
    margin-top: 1rem;
  }
}
