
/* ---------- TAMU VISUAL STYLE ---------- */

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
	font-family: "Oswald", "Open Sans", Arial, sans-serif;
}
  
.header-logo {
    padding: 0 1rem;
    width: auto;
    height: 3rem;
}

.text-maroon {
	color: var(--bs-primary);
}

.bg-cement {
	background-image: url("/images/cement.jpg");
}

/* ---------- Structure ---------- */

.section {
    padding: 50px 0;
}

.section .section {
    padding: 30px 0;
}

/* offset anchors to account for fixed header */
a.anchor {
    display: block;
    position: relative;
    top: -3.5rem;
    visibility: hidden;
}


/* ---------- SEARCH ------------------ */

#job-listing-form .list-group-item.active {
    color: black;
    background-color: var(--bs-gray-200);
}

/* ---------- JOB MANAGEMENT ---------- */

.link-icon {
    width: 1rem;
}

.button-icon {
    width: 1.5rem;
}

#job-table {
    min-width: 30rem;
}

.manager-table .header {
    display: flex;
    font-weight: 700;
    border-bottom: 1.5px solid rgb(0, 0, 0);
}

.manager-table .table-row:nth-child(even) {
    background-color: var(--bs-gray-100);
}

#job-table .summary {
    display: flex;
    text-decoration: none;
    color: var(--bs-body-color);
}

#job-table .detail {
    margin-left: 1.5rem;
    padding: .5rem;
    border-top: 1px solid rgba(0, 0, 0, .5);
}

.manager-table .col {
    flex: 0 0 auto;
    padding-left: .5rem;
    padding-right: .5rem;
    padding-top: .25rem;
    padding-bottom: .25rem;
}

.manager-table .expander {
    width: 1.5rem;
    height: 2rem;
    padding-left: 0;
    padding-right: 0;
    transform: rotate(90deg);
    transition: all .4s;
}

.manager-table .collapsed .expander {
    transform: rotate(0deg);
}

.manager-table .expander svg {
    fill: rgba(0, 0, 0, .5);
}

#job-table .id {
    width: 4.5rem;
    text-align: right;
}

#job-table .title {
    flex: 1 1 auto;
    width: auto;
}

#job-table .deadline {
    width: 8rem;
}

#job-table .published {
    width: 8rem;
}

#location-table {
    min-width: 30rem;
}

#location-table .location {
    display: flex;
    text-decoration: none;
    color: var(--bs-body-color);
}

#location-table .description {
    flex: 1 1 auto;
    width: auto;
}

#location-table .coordinates {
    width: 14rem;
}

#location-table .edit {
    width: 2rem;
}

#location-table .remove {
    width: 2rem;
}

.field-validation-error {
    color: var(--bs-danger);
}

.validation-summary-errors {
    color: var(--bs-danger);
    border: 1.5px solid var(--bs-danger);
    border-radius: .375rem;
    background-color: var(--bs-warning);
    margin-bottom: 2rem;
    padding: 1rem;
}

.validation-summary-errors ul {
    margin-bottom: 0;
}

.field-required-label:not(.form-check-label *) {
    font-weight: bolder;
}

.field-required-label:not(.form-check-label *)::after {
    content: "*";
    vertical-align: super;
    font-size: smaller;
}

#edit-job-form fieldset {
    border: 1px solid var(--bs-gray-400);
    border-radius: .375rem;
}

#edit-job-form legend {
    float: none;
    width: fit-content;
    margin-left: 1rem;
    padding-left: .25rem;
    padding-right: .25rem;
    font-size: var(--bs-body-font-size);
}

#edit-job-form #JobDescription {
    min-height: 10rem;
}

#edit-job-form select,
#employer-profile-form select,
#edit-job-form input[type="date"] {
    width: fit-content;
}

#edit-job-form input[type="date"] {
    display: inline-block;
}

.text-entry-short {
    max-width: 15rem;
}

.ranged-input div.row:nth-child(2) {
    max-width: 40rem;
}

.ranged-input input {
    display: inline;
}

.ranged-input input:not([type="date"]) {
    max-width: 10rem;
}

.ranged-input label {
    margin-left: 1rem;
}

.ranged-input .d-flex label {
    margin-left: 0;
}

.ranged-input .d-flex {
    row-gap: .5rem;
}

.ranged-input.hours-entry label {
    width: 2.5rem;
}

.ranged-input.date-entry label {
    width: 4rem;
}

@media (min-width: 768px) {

    .ranged-input label {
        width: fit-content !important;
    }

    .ranged-input input {
        margin-left: .25rem;
    }

    .ranged-input .d-flex input {
        margin-left: 0;
    }
}

.field-info {
    width: 1rem;
    height: 1rem;
    margin-left: .5rem;
    margin-bottom: .4rem;
    display: inline-block;
    vertical-align: bottom;
}


/* ---------- TRIX CONTENT ---------- */

.trix-content h1 {
    font-family: "Open Sans",sans-serif;
}

.trix-content p {
    margin-top: 0;
    margin-bottom: 1rem;
}


/* ---------- APPROVAL PORTAL ---------- */

.rejection-reason-input{
    width: 100%;
    min-height: 5rem;
}

#include-job-label {
    width: 8rem;
}

.location-unchecked {
    background-color: rgba(var(--bs-light-rgb), 1);
}


/* ---------- HEADER ---------- */

header {
	border-bottom: 2rem solid var(--bs-primary);
}

.dropdown-username {
    max-width: 16rem;
}

.bg-sponsors {
    background-image: url("/images/bryan-dickerson-Qxgw8RkqE5o-unsplash.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.bg-sponsors > .center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-sponsors > .center > p {
    background-color: rgba(255,255,255,.75);
    width: fit-content;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 25px;
}


/* These styles create the AgriLife Member bar at the top of the site footer. */

.bg-a {
    background: url(/images/agrilife-a-footer.svg);
    background-repeat: no-repeat;
    background-size: auto 8rem;
	background-position: center center;
    width: 100%;
    height: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#member-banner a {
    text-decoration: none;
    color: #FEFEFE;
}

#member-banner a:hover,
#member-banner a:focus {
    text-decoration: underline;
    color: #FFF;
}

#member-agrilife {
    width: fit-content;
    height: fit-content;
}
#member-agrilife .member-text {
	font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: #eaeaea;
	letter-spacing: 1px;
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 0;
	font-weight: 300;
}
#member-agrilife .member-brand {
	font-weight: 500;
    color: #fff;
}

#member-list {
	margin: 0;
}

#member-border {
    width: 100%;
    height: fit-content;
    min-height: 3rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#member-list p {
    font-size: 1rem;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {

    .bg-a {
        background-size: 15rem auto;
        background-position: left center;
        justify-content: left;
        width: 15rem;
        height: auto;
    }

    #member-border {
        border-left: 1.5px solid rgba(255, 255, 255, .5);
        margin-top: 1.5rem;
    }
}


/* Styles for the footer */

.site-footer {
    padding: 0;
    text-align: center;
}

.site-footer a {
    color: #FEFEFE;
}

.site-footer a:focus,
.site-footer a:hover {
    text-decoration: underline;
    color: #FFE404;
}

.site-footer .footer-info,
.site-footer .footer-container {
    padding: 1rem;
}

.site-footer,
.site-footer .footer-container {
    background-color: #410000;
}

.site-footer .footer-container,
.site-footer .footer-container a {
    font-family: "Open Sans",sans-serif;
}

.site-footer .footer-container p {
    margin-bottom: 1rem;
    line-height: 1.5;
    text-align: left;
    padding-left: 0.94rem;
    padding-right: 0.94rem;
    margin-left: auto;
    margin-right: auto;
}

.site-footer .footer-container ul {
	text-align: left;
}

.site-footer .req-links {
    font-family: Oswald,sans-serif;
    font-weight: 400;
    padding-right: .62rem;
    padding-left: .62rem;
    margin: 0;
    text-align: center;
}

.site-footer .req-links li {
    display: inline-block;
    list-style-type: none;
    border-left: 1px solid #fff;
    line-height: 1rem;
    margin: .2rem 0 .2rem .75rem;
    padding-left: .75rem;
}

.site-footer .req-links li:first-child {
    border-left: none;
    margin-left: 0;
    padding-left: 0.65rem;
}

.site-footer .footer-info {
    font-family: "Open Sans",sans-serif;
    line-height: 1.6rem;
}

.site-footer .footer-info ul li a {
    margin: 0;
    padding: 0;
}

.site-footer .footer-info ul li {
    width: 50%;
    margin-top: .67rem;
    padding: 0;
    line-height: 1.2;
}

.site-footer .footer-info ul li:first-child,
.site-footer .footer-info ul li:first-child+li {
    margin-top: 0;
}

.site-footer .footer-info ul li:nth-child(even) {
    padding-left: .5rem;
}

.site-footer .footer-info ul li:nth-child(odd) {
    padding-right: .5rem
}

.site-footer .divider {
    border-top: 1.5px solid rgba(255, 255, 255, .5);
    padding-top: 1rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .site-footer {
        text-align: left;
    }

    .site-footer .footer-info,
    .site-footer .footer-container {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .site-footer .footer-container p {
        margin-bottom: 15px;
    }

    .site-footer .divider {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
}

.site-footer .logo img {
    width: 100%;
    max-width: 360px;
}

.icon-location::before,
.icon-phone::before,
.icon-phone-black::before,
.icon-email::before,
.icon-email-black::before {
    content: "";
    display: inline-block;
    vertical-align: top;
    margin-right: .5rem;
    background: transparent none no-repeat center/contain
}

.icon-location::before {
    width: 14px;
    height: 1.6rem;
    background-image: url("/images/icon-location.svg")
}

.icon-phone::before {
    width: 16px;
    height: 1.6rem;
    background-image: url("/images/icon-phone.svg");
    background-position: left 6px
}
.icon-phone-black::before {
    width: 16px;
    height: 1.6rem;
    background-image: url("/images/icon-phone-black.svg");
    background-position: left 6px
}

.icon-email::before {
    width: 16px;
    height: 1.6rem;
    background-image: url("/images/icon-email.svg")
}

.icon-email-black::before {
    width: 16px;
    height: 1.6rem;
    background-image: url("/images/icon-email-black.svg")
}

/* ---------- STYLE FOR GRID EDITOR ---------- */

.grid-section .img-fluid img {
    max-width: 100%;
    height: auto;
}

/* ---------- MISC ---------- */

.view-height {
    max-height: calc(100vh - 3.5rem);
}

.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 3.5rem;
    z-index: 0;
}

.contact-link {
    text-decoration: none;
    color: black;
}
.contact-link:hover {
    text-decoration: underline;
    color: var(--bs-link-color);
}

.button-link {
    cursor: pointer;
}

.row-gap-1 {
    row-gap: .25rem;
}

.row-gap-2 {
    row-gap: .5rem;
}

.map-container {
    width: 100%;
    height: 20rem;
    max-width: none;
    box-sizing: initial;
}

.dropdown {
    white-space: nowrap;
}


/* ---------- SPONSOR CAROUSEL ---------- */

/* Sponsor card */
.card.sponsor {
    width: 250px;
    height: 200px;
    margin-right: auto;
    margin-left: auto;
}

.card.sponsor .card-body {
    padding: 0;
    margin: 0;
    height: 100%;
}

.card.sponsor img {
    width: 225px;
    height: 175px;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
    margin-bottom: auto;
    display: block;
}

/* We resize the inner width so we don't cover up the previous/next buttons. */
.carousel-inner {
  width: 80%;
  overflow: hidden;
  margin-right: auto;
  margin-left: auto;
}

/* Just display one sponsor card for small screens */
.carousel-item > div > * {
    display: none;
    width: 250px;
    height: 200px;
}
.carousel-item > div > :first-child {
    display: block;
}

/* 2 items */
@media (min-width: 768px) {

    .carousel-item > div > :nth-child(2) {
        display: block;
    }

    .carousel-item-next:not(.carousel-item-start),
    .active.carousel-item-end {
        transform: translateX(50%);
    }

    .carousel-item-prev:not(.carousel-item-end),
    .active.carousel-item-start {
        transform: translateX(-50%);
    }
}

/* 3 items */
@media (min-width: 1200px) {

    .carousel-item > div > :nth-child(3) {
        display: block;
    }

    .carousel-item-next:not(.carousel-item-start),
    .active.carousel-item-end {
        transform: translateX(33.3%);
    }

    .carousel-item-prev:not(.carousel-item-end),
    .active.carousel-item-start {
        transform: translateX(-33.3%);
    }
}

/* 4 items */
@media (min-width: 1550px) {

    .carousel-item > div > :nth-child(4) {
        display: block;
    }

    .carousel-item-next:not(.carousel-item-start),
    .active.carousel-item-end {
        transform: translateX(25%);
    }

    .carousel-item-prev:not(.carousel-item-end),
    .active.carousel-item-start {
        transform: translateX(-25%);
    }
}

/* 5 items */
@media (min-width: 2000px) {

    .carousel-item > div > :nth-child(5) {
        display: block;
    }

    .carousel-item-next:not(.carousel-item-start),
    .active.carousel-item-end {
        transform: translateX(20%);
    }

    .carousel-item-prev:not(.carousel-item-end),
    .active.carousel-item-start {
        transform: translateX(-20%);
    }
}

/* 6 items */
@media (min-width: 2400px) {

    .carousel-item > div > :nth-child(6) {
        display: block;
    }

    .carousel-item-next:not(.carousel-item-start),
    .active.carousel-item-end {
        transform: translateX(16.7%);
    }

    .carousel-item-prev:not(.carousel-item-end),
    .active.carousel-item-start {
        transform: translateX(-16.7%);
    }
}
