/* custom style for award Winner page in CHA site */
.cha-layout-container {
  display: flex;
  min-height: 100vh;
  width: auto;
}
.cha-sidebar-menu {
  width: fit-content;
  flex-shrink: 0;

  ul {
    list-style-type: none;

    li a {
      display: block;
      color: maroon;
      text-decoration: none;
      padding: 10px;
      box-sizing: border-box;
      border-radius: 4px;
      transition: background-color 0.2s ease, color 0.2s ease;
    }

    li a:hover,
    li a:focus,
    li a:active {
      background-color: maroon;
      color: #fff;
    }
  }
}
.cha-page-content {
  flex-grow: 1;
}
.views-element-container {
  table {
    thead th {
      vertical-align: bottom;
      font-weight: normal;
    }
    td {
      font-size: 1rem;
    }
  }
  a {
    text-decoration: none;
    color: #07c;
  }
}
form#views-exposed-form-all-awards-block-manage-your-awards {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;

  .js-form-item label,
  .js-form-item input,
  .js-form-item select {
    display: block;
    width: 100%;
  }
}
.cha-user-profile {
  margin-top: 1.5em;

  p {
    margin-bottom: 1em;
  }
}
.view-section.submitted-awards,
.view-section.manage-awards {
  padding-top: 1.5em;
}
a.cha-btn-link {
  display: inline-block;
  text-decoration: none;
  background-color: #f5f5f5;
  color: #333;
  padding: 5px 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #ccc;
  border-radius: 4px;

  /* Smooth transition effect for the hover animation */
  transition: background-color 0.2s ease-in-out;
}

/* Change appearance when the user hovers over the button */
a.cha-btn-link:hover {
  background-color: #e6e6e6;
  text-decoration: none;
  background-position: 0 -15px;
  transition: background-position 0.1s linear;
}

/* Ensure clarity for keyboard/screen reader navigation */
a.cha-btn-link:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

/* Stacks columns vertically on screens smaller than 768px wide */
@media (max-width: 768px) {
  .cha-layout-container {
    display: flex;
    flex-direction: column; /* Stacks components top-to-bottom */
  }

  .cha-sidebar-menu {
    width: 100%; /* Sidebar takes full horizontal width */
  }
}
.view-current-award-winners.contextual-region {
  display: grid;
  padding: 0 3.5rem;
  width: 100%;
  box-sizing: border-box;
  padding-left: 15%;
  padding-right: 15%;
}
/* 1. Make the main form container display items horizontally */
.view-winner-listings .views-exposed-form {
  display: flex;
  flex-flow: row wrap; /* Allows wrapping only if screen is too small */
  align-items: flex-end; /* Aligns the button perfectly with the bottom of inputs */
  gap: 15px; /* Controls spacing between filters and the button */
}

/* 2. Prevent the button wrapper from taking up the whole line */
.view-winner-listings .views-exposed-form .form-actions {
  display: flex;
  width: auto; /* Shrinks the wrapper to the size of the button */
  margin: 0; /* Clears any theme-default margins pushing it out of alignment */
}
.view-winner-listings .views-view-table caption {
    background: #dddddd;
    border-color: #bbbbbb;
    border-style: solid;
    border-width: 1px;
    margin: 1em 0;
    padding: 0.5em;
    text-transform: uppercase;
    text-align: center;
}
