body {
    overflow-y: scroll;
    background-color: #F0F2F5 !important;
    width: 100%;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../images/ama_photo_bg.jpg");
    background-image: image-set(
        url("../images/ama_photo_bg.webp") type("image/webp"),
        url("../images/ama_photo_bg.jpg") type("image/jpeg")
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.10;
    filter: blur(4px);
    transform: scale(1.03);
    transform-origin: center;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    body::before {
        background-image: url("../images/ama_photo_bg-640.jpg");
        background-image: image-set(
            url("../images/ama_photo_bg-640.webp") type("image/webp"),
            url("../images/ama_photo_bg-640.jpg") type("image/jpeg")
        );
        background-size: cover;
        background-position: center center;
    }
}

body.home-page,
body.has-fixed-navbar {
    padding-top: 70px;
}

.mainView{
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  overflow: hidden;
}

@media (max-width: 767.98px){
  .mainView{
    min-height: 100vh;
  }
  .mainImg{
    border-radius: 0;
  }
}

.minorView{
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04), 0 1px 4px rgba(0,0,0,.06);
}

.profilePicture{
    box-shadow: 0 4px 4px rgba(0,0,0,.2);
    border-radius: 50%;
}

/* Fade and slide right-to-left */
.slide-left {
    animation: slideIn 0.3s ease-in-out forwards;
}

.container.slide-left {
    margin-top: 300px;
}

/* Home cards section: give it viewport height and center the cards row */
.home-cards-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: calc(100svh - 70px);
    margin-top: 0;
    margin-bottom: 0;
    padding-top: clamp(28px, 4vh, 52px);
    padding-bottom: clamp(28px, 5vh, 64px);
    box-sizing: border-box;
    position: relative;
}

@media (min-width: 992px) {
    .home-cards-shell {
        width: min(1432px, calc(100vw - 24px));
        margin-left: auto;
        margin-right: auto;
        gap: 8px;
    }

    #home-cards.container.slide-left {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
}

#home-cards.container.slide-left {
    flex: 1 1 auto;
    margin-top: 0;
    min-height: clamp(360px, 58vh, 640px);
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    position: relative;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
}

#home-cards.container.slide-left > .row {
    width: 100%;
}

.home-cards-shell .home-cards-nav {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(92, 5, 5, 0.92);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.home-cards-shell .home-cards-nav i {
    font-size: 1.2rem;
    line-height: 1;
}

.home-cards-shell .home-cards-nav:hover,
.home-cards-shell .home-cards-nav:focus-visible {
    background: #4a0404;
    transform: translate(-50%, -50%) scale(1.05);
}

.home-cards-shell .home-cards-nav:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.home-cards-shell .home-cards-nav-prev {
    left: 8px;
}

.home-cards-shell .home-cards-nav-next {
    left: calc(100% - 8px);
}

.end-era-shell {
    position: relative;
    padding-left: 0;
    padding-right: 0;
}

.end-era-shell .row {
    min-height: 408px;
}

.end-era-shell .end-era-nav {
    position: static;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(92, 5, 5, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #5c0505;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
    transform: scale(1);
}

.end-era-shell .end-era-nav i {
    font-size: 1.2rem;
    line-height: 1;
}

.end-era-shell .end-era-nav:hover,
.end-era-shell .end-era-nav:focus-visible {
    background: #ffffff;
    border-color: #861818;
    transform: scale(1.03);
}

.end-era-shell .end-era-nav:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.end-era-nav-row {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.yb-end-era-message-card {
    position: relative;
}

.end-era-nav-row .end-era-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

.end-era-nav-row .end-era-nav:hover,
.end-era-nav-row .end-era-nav:focus-visible {
    transform: translateY(-50%) scale(1.03);
}

.end-era-nav-row .end-era-nav-prev {
    left: -24px;
}

.end-era-nav-row .end-era-nav-next {
    right: -24px;
}

@media (max-width: 767.98px) {
    .end-era-shell {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }

    .end-era-shell .row {
        min-height: 0;
    }

    .end-era-shell .end-era-nav {
        width: 44px;
        height: 44px;
    }

    .end-era-shell .end-era-nav:hover,
    .end-era-shell .end-era-nav:focus-visible {
        transform: scale(1.03);
    }

    .end-era-nav-row {
        position: static;
        inset: auto;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 12px;
        pointer-events: auto;
    }

    .end-era-nav-row .end-era-nav {
        position: static;
        top: auto;
        transform: none;
    }
}

@media all {
    #home-cards.container.slide-left {
        overflow-x: hidden;
        overflow-y: hidden;
        cursor: grab;
        touch-action: pan-y;
        padding-top: 24px;
    }

    #home-cards {
        overflow: visible;
    }

    #home-cards .row {
        overflow: visible;
    }

    #home-cards.container.slide-left.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    #home-cards.container.slide-left > .row {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        align-items: center;
        width: max-content;
        margin: 0;
        gap: 1.5rem;
        will-change: transform;
    }

    #home-cards .home-feature-col {
        flex: 0 0 auto;
        width: 23rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        padding-left: 0;
        padding-right: 0;
    }

    #home-cards .row > .col-auto:not(.home-feature-col) {
        display: none;
    }

    /* Smooth scaling for all cards */
    #home-cards .home-feature-card {
        position: relative;
        transform: scale(0.94);
        opacity: 0.82;
        transition: transform 260ms ease, opacity 260ms ease;
        transform-origin: center center;
        will-change: transform;
        z-index: 1;
    }

    /* Center card grows */
    #home-cards .home-feature-card.home-carousel-center {
        transform: scale(1.12);
        opacity: 1;
        z-index: 2;
    }

    /* Optional, keep side cards slightly different */
    #home-cards .home-feature-card.home-carousel-left,
    #home-cards .home-feature-card.home-carousel-right {
        transform: scale(0.96);
        opacity: 0.86;
        z-index: 1;
    }
}

@media (max-width: 991.98px) {
    .home-cards-shell {
        gap: 6px;
    }

    #home-cards.container.slide-left {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    #home-cards.container.slide-left {
        padding-left: 0;
        padding-right: 0;
    }

    .home-cards-shell {
        gap: 4px;
    }

    .home-cards-shell .home-cards-nav {
        width: 38px;
        height: 38px;
    }

    .home-cards-shell .home-cards-nav i {
        font-size: 1rem;
    }

    #home-cards.container.slide-left > .row {
        gap: 0.9rem;
    }

    #home-cards .home-feature-card {
        width: clamp(15.5rem, 68vw, 17.25rem);
        transform: scale(0.88);
        opacity: 0.76;
    }

    #home-cards .home-feature-card .card-img-top {
        height: 210px;
        max-height: 210px;
        object-fit: cover;
    }

    #home-cards .home-feature-card.home-carousel-left,
    #home-cards .home-feature-card.home-carousel-right {
        transform: scale(0.86);
        opacity: 0.72;
    }

    #home-cards .home-feature-card.home-carousel-center {
        transform: scale(1);
        opacity: 1;
    }
}

.container.slide-left .btn {
    background-color: #5c0505;
    border-color: #5c0505;
    color: #ffffff;
}

.container.slide-left .btn:hover,
.container.slide-left .btn:focus,
.container.slide-left .btn:active {
    background-color: #4a0404;
    border-color: #4a0404;
    color: #ffffff;
}

@keyframes slideIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade and slide top-to-bottom */
.slide-down {
    animation: slideInTop 0.3s ease-in-out forwards;
}
@keyframes slideInTop {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade-in */
.fade-in {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade-out */
.fade-out{
    animation: fadeOut 0.3s ease;
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Fade-out after 5s */
.fade-out-alert{
    animation: fadeOut 0.3s ease 5s forwards;
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.rotate-clockwise {
    animation: rotateClockwise 0.3s linear forwards;
}

@keyframes rotateClockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

.rotate-anticlockwise {
    animation: rotateAnticlockwise 0.3s linear forwards;
}

@keyframes rotateAnticlockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-180deg);
    }
}
.navbar-brand{
  color: #ffffff !important;
}
.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-color: #870808;
    box-shadow: 0 0 5px rgba(0, 0, 0, .3);
    width: 100%;
    max-width: 100%;    
    left: 0;
    right: 0;
    margin: 0 !important;
}

.navbar-admin{
    background-color: #5c0505;
}

.nav-bi{
    font-size: 1.40rem;
}
.nav-bi-admin{
    font-size: 1.40rem;
    color: #DCDEDF;
}

.nav-user-bi{
    font-size: 1.1rem;
}

.nav-main-active{
    color: #ffffff !important;
    box-shadow: inset 0 -3px 0 #ffffff !important;
    border-radius: 0 !important;
}
.nav-main-admin-active{
    color: #ffffff !important;
    box-shadow: inset 0 -3px 0 #ffffff !important;
    border-radius: 0 !important;
}

.fake-active{
    border-bottom: 4px solid #00000000 !important;
}

.nav-user{
    width: 46px;
    border-radius: 50%;
}

.nav-link{
    border-radius: 15px 15px 0px 0px !important;
}
.nav-link:hover:not(.active){
    background-color: #F2F2F2;
    transition: 0.075s ease;
}

.nav-admin-link{
    border-radius: 15px 15px 0px 0px !important;
}
.nav-admin-link:hover:not(.active){
    background-color: #4a0404;
    transition: 0.075s ease;
}

.btn-link:hover{
    background-color: #F2F2F2 !important;
}

.btn-hidden{
    border: none; 
    background-color: transparent;
}

.nav-user-actions {
    position: relative;
}

.nav-user-actions > .dropdown:first-child {
    position: static;
}

.nav-notif-btn {
    color: #ffffff !important;
}

.nav-notif-btn:hover,
.nav-notif-btn:focus,
.nav-notif-btn:active {
    color: #ffffff !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.nav-user{
    position: relative;
    filter: brightness(100%);
    transition: 0.3s ease;
}
.nav-user:hover{
    filter: brightness(90%);
    transition: 0.075s ease;
}

.admin-icon {
    position: absolute;
    bottom: -5px;
    right: -10px;
    width: 30px;
    height: auto;
    border-radius: 50%;
    z-index: 1;
  }
  

.circle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #E4E6EB;
}

.circle-container i {
    color: #000;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    transition: 0.3s ease;
    border-radius: 10px !important;
}

.dropdown-item:hover{
    background-color: #F2F2F2 !important;
    transition: 0.075s ease;
}

.dropdown-item:active {
    background-color: #E5E5E5 !important;
    color: #212529 !important;
}

.dropdown-menu-nav{
    box-shadow: 0 4px 6px rgba(0,0,0,.3), 0 0 6px rgba(0,0,0,.05);
    border-style: none !important;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
}

.notif-dropdown .notif-message {
    white-space: normal;
    word-break: break-word;
}

.notif-dropdown {
    top: calc(100% + 0.25rem) !important;
    right: 0 !important;
    left: auto !important;
}

.notif-text {
    font-weight: 400;
}

.notif-unread .notif-text {
    font-weight: 700;
}

.nav-notif-mark-all {
    font-size: 0.875rem;
    color: #6c757d !important;
}

.nav-notif-mark-all:hover {
    color: #495057 !important;
}

.dropdown-menu-normal{
    box-shadow: 0 2px 3px rgba(0,0,0,.15), 0 0 3px rgba(0,0,0,.025);
    border-style: none !important;
}

.breadcrumb-link:hover{
    color: #0d6efd !important;
}

.breadcrumb-active{
    color: rgba(108,117,125);
}

.middle-dot::before {
    content: "\00B7";
    color: rgba(108,117,125);
    font-weight: 500;
}

.login-bi{
    font-size: 1.5em;
}

.form-control{
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.password-input-wrapper {
    position: relative;
}

.form-floating.password-input-wrapper > .password-toggle-input {
    padding-right: 3.25rem;
}

.form-floating.password-input-wrapper > .password-toggle-input.is-invalid {
    padding-right: 5.1rem;
    background-position: right 3.1rem center;
}

.form-floating.password-input-wrapper > label {
    padding-right: 3.25rem;
}

.password-toggle-btn {
    position: absolute;
    top: 0;
    right: .45rem;
    z-index: 5;
    width: 2.65rem;
    height: calc(3.5rem + 2px);
    border: 0;
    border-radius: .375rem;
    color: #6c757d;
    background: transparent;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.password-toggle-btn:hover {
    color: #5c0505;
    background-color: rgba(92, 5, 5, .08);
}

.password-toggle-btn:focus-visible {
    outline: 0;
    color: #5c0505;
    box-shadow: 0 0 0 .2rem rgba(92, 5, 5, .18);
}

.password-toggle-btn .bi {
    font-size: 1.1rem;
    line-height: 1;
}

.btn-gray{
    background-color: #eaebec !important;
    border-color: #a55f5f !important;
    color: #5c0505 !important;
}
.btn-gray:hover{
    background-color: #dcddde !important;
    border-color: #8d4545 !important;
    color: #4a0404 !important;
}
.btn-gray:active{
    background-color: #cdced0 !important;
    border-color: #763535 !important;
    color: #3f0303 !important;
}

.image-container-nav{
    width: 46px;
    height: 46px;
    overflow: hidden;
}
.image-container-nav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-container{
    width: 250px;
    height: 250px;
    overflow: hidden;
}
.image-container img {
    width: 95%;
    height: 95%;
    object-fit: cover;
}

.image-container-alumni {
    width: 100px;
    height: 100px;
    overflow: hidden;
}
.image-container-alumni img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-container-events {
    width: 275px;
    height: 275px;
    overflow: hidden;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.image-container-events img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive filter/search alignment for listing pages */
#eventsFilterForm {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#eventsFilterForm .filter-group {
    flex: 0 0 auto;
}

#eventsFilterForm .search-group {
    margin-left: auto;
}

#eventsFilterForm .search-group .input-group {
    width: 320px;
    max-width: 100%;
}

#eventsFilterForm .filter-group .input-group {
    width: 220px;
    max-width: 100%;
}

/* Event/ad card image: keep image centered and fully visible */
.feed-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f7;
}

.feed-image-container img.feed-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.request-delete-match {
    width: 140px;
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    font-size: 0.9rem;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    #eventsFilterForm {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    #eventsFilterForm .form-check-inline {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #eventsFilterForm .filter-group,
    #eventsFilterForm .search-group {
        margin-left: 0;
    }

    #eventsFilterForm .input-group,
    #eventsFilterForm .search-group .input-group {
        width: 100%;
    }

    #eventsFilterForm .filter-group .input-group {
        width: 100%;
    }

    .image-container-events.feed-image-container {
        width: 100%;
        max-width: 100%;
        height: 240px;
        border-top-right-radius: 5px;
        border-bottom-left-radius: 0;
    }

    .feed-image-container img.feed-image {
        object-fit: cover;
    }
}

/* Keep card action buttons aligned with card text content */
.feed-card-actions {
    padding-left: 0.5rem;
    padding-right: 1.5rem;
}

.feed-tags {
    display: inline-flex;
    gap: 0.35rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .feed-card-actions {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .feed-tags {
        justify-content: flex-end;
    }
}

.modal {
    --bs-modal-border-color: rgb(0 0 0 / 0%) !important;
    --bs-modal-bg: #ffffff;
    z-index: 1060;
    isolation: isolate;
}

.modal.show {
    opacity: 1;
}

body.modal-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    pointer-events: none;
}

.modal-backdrop {
    opacity: 0 !important;
    background: transparent !important;
    pointer-events: none;
}

.modal-backdrop.show {
    opacity: 0 !important;
}

.modal-content {
    background-color: #ffffff;
    --bs-modal-bg: #ffffff;
    filter: none;
    opacity: 1;
    color: inherit;
    box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.28);
}

.modal-dialog {
    position: relative;
    z-index: 1060;
}

.modal-header,
.modal-body,
.modal-footer,
.modal-title,
.modal .btn,
.modal .btn-close,
.modal img {
    opacity: 1;
    filter: none;
}

.table-container {
    background-color: white;
    border-radius: 0.5em;
    box-shadow: 0 10px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
    min-height: 350px;
}

div.slider {
    display: none;
}

table.dataTable tbody td.no-padding {
    padding: 0;
}

table.dataTable thead>tr>th.sorting:before {
    bottom: 52.5% !important;
}

table.dataTable thead>tr>th.sorting:after {
    top: 52.5% !important;
}

.image-table-container {
    width: 125px;
    height: 125px;
    overflow: hidden;
}

.image-table-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-badge {
    --bs-badge-font-size: 0.5em !important;
    transform: translate(-30%,-15%) !important;
    --bs-badge-padding-x: 0.50em !important;
    --bs-badge-padding-y: 0.25em !important;
}

.edit-button-text {
    cursor: text !important;
}
.edit-button-text::placeholder {
    font-style: italic;
    color: #0d6efd;
    font-weight: lighter;
}
.edit-button-text:focus,
.edit-button-text:hover {
    color: white !important;
}
.edit-button-text:focus::placeholder,
.edit-button-text:hover::placeholder {
    color: white !important;
}

.auto-resize-input {
    min-width: 200px;
    max-width: 100%;
    width: auto;
}
.home-feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-feature-card .card-body {
    flex-grow: 1;
}
.home-feature-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}
.card-img-top{
    max-height: 280.65px;
    object-fit: cover;
}

:root{
    --bs-primary: #5c0505;
    --bs-primary-rgb: 92, 5, 5;
}

.btn-primary{
    --bs-btn-bg: #5c0505;
    --bs-btn-border-color: #5c0505;
    --bs-btn-hover-bg: #4a0404;
    --bs-btn-hover-border-color: #4a0404;
    --bs-btn-active-bg: #5c0505;
    --bs-btn-active-border-color: #5c0505;
}

.btn-outline-primary{
    --bs-btn-color: #5c0505;
    --bs-btn-border-color: #5c0505;
    --bs-btn-hover-bg: #5c0505;
    --bs-btn-hover-border-color: #5c0505;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #5c0505;
    --bs-btn-active-border-color: #5c0505;
    --bs-btn-active-color: #ffffff;
}

/* Fallback if Bootstrap is loaded after this file on some pages */
.btn.btn-primary {
    background-color: #5c0505 !important;
    border-color: #5c0505 !important;
    color: #ffffff !important;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
    background-color: #4a0404 !important;
    border-color: #4a0404 !important;
    color: #ffffff !important;
}

.btn.btn-outline-primary {
    color: #5c0505 !important;
    border-color: #5c0505 !important;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:focus,
.btn.btn-outline-primary:active {
    background-color: #5c0505 !important;
    border-color: #5c0505 !important;
    color: #ffffff !important;
}
.hero-text{
  font-size: 1.10rem;
  line-height: 1.6;
}
.login-side-img{
    max-width: 220px;
}

@media (max-width: 768px) {
    .home-feature-col {
        width: 70vw;
        margin-left: 4px;
        margin-right: 4px;
    }

    .card {
        width: 100%;
    }

    #home-cards .row {
        gap: 8px;
    }
    .home-feature-card img {
        height: 140px;
    }
}

.login-view{
    position: relative;
}

.login-hero-img{
    width: 100%;
    max-width: 950px;
    height: auto;
}

.login-flash-wrap{
    position: fixed;
    top: 0.75rem;
    left: 0;
    right: 0;
    z-index: 1080;
    pointer-events: none;
}

.login-flash-alert{
    pointer-events: auto;
}

@media (max-width: 991.98px){
    .login-view{
        border-radius: 16px;
    }

    .login-hero-img{
        max-width: 100%;
    }
}

@media (max-width: 767.98px){
    .login-view{
        margin-top: 1rem !important;
        border-radius: 12px;
    }

    .login-bi{
        font-size: 1.2em;
    }
}

.bg-maroon {
    background-color: #800000;
}

.app-navbar {
    width: 100%;
    max-width: none;
    margin-bottom: 0 !important;
}

.app-nav-shell {
    width: 100%;
    max-width: none;
    position: relative;
    display: flex;
    align-items: center;
}

.app-nav-collapse {
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 2;
}

.app-nav-list {
    align-items: center;
}

.app-nav-shell .navbar-brand {
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-nav-list .nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.app-nav-list .nav-link {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.app-navbar .nav-link {
    border-radius: 0 !important;
}

.app-navbar .nav-link i {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

/* Active Yearbook icon: add maroon outline around the white fill */
.app-navbar .nav-link.active .bi-book-fill,
.app-navbar .nav-link.nav-main-active .bi-book-fill,
.app-navbar .nav-link.nav-main-admin-active .bi-book-fill {
    color: #ffffff !important;
    -webkit-text-stroke: 0.6px #861818;
    text-shadow:
        0.4px 0 #861818,
        -0.4px 0 #861818,
        0 0.4px #861818,
        0 -0.4px #861818;
}

.app-nav-list .nav-label {
    display: none;
}

.app-nav-collapse .nav-link::after {
    display: none;
    content: "";
}

.app-navbar .nav-link:hover i {
    transform: scale(1.1);
}

.app-navbar .nav-link:hover:not(.active) {
    background-color: transparent !important;
}

.app-navbar-user {
    min-width: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.app-navbar-right {
    flex: 0 0 auto;
    min-width: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    position: relative;
    z-index: 3;
}

.app-navbar-toggler {
    display: none;
}

@media (max-width: 991.98px) {
    .app-nav-shell {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .app-nav-shell {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .app-nav-collapse {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        transform: none;
        width: auto;
        z-index: 1100;
        background-color: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.12);
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
        padding: 0.25rem 0.35rem;
    }

    .app-nav-shell .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 168px);
        font-size: clamp(1.1rem, 4.8vw, 1.8rem);
        line-height: 1.1;
    }

    .app-navbar .navbar-collapse {
        margin-top: 0;
    }

    .app-nav-list {
        flex-direction: row;
    }

    .app-nav-list .nav-item {
        margin: 0;
    }

    .app-nav-list .nav-link {
        border-radius: 10px !important;
        color: #1f2937 !important;
        font-weight: 600;
        text-align: center;
        padding-left: 0.95rem !important;
        padding-right: 0.95rem !important;
    }

    .app-nav-list .nav-icon,
    .app-nav-collapse .nav-link i {
        display: none;
    }

    .app-nav-list .nav-label {
        display: none;
    }

    .app-nav-collapse .nav-link::after {
        display: inline;
        content: attr(title);
    }

    .app-nav-list .nav-link.active {
        color: #0d6efd !important;
    }

    .app-navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        border-color: rgba(255, 255, 255, 0.45);
        padding: 0.35rem 0.5rem;
    }

    .app-nav-shell > .app-navbar-toggler {
        margin-left: 0;
        flex: 0 0 auto;
    }

    .app-nav-shell > .app-navbar-user {
        margin-left: 0;
        flex: 0 0 auto;
    }

    .app-navbar-user {
        min-width: 0;
        flex: 0 0 auto;
    }

    .app-navbar-user .nav-user-actions {
        display: flex;
        align-items: center;
        gap: 0.4rem !important;
        flex-wrap: nowrap;
    }

    .app-navbar-user .btn.btn-hidden {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .app-navbar-user .nav-user,
    .app-navbar-user .image-container-nav {
        width: 42px;
        height: 42px;
    }

    .app-navbar-user .admin-icon {
        width: 26px;
        right: -8px;
        bottom: -4px;
    }

    .app-navbar-right {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .app-nav-shell {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
        gap: 0.35rem;
    }

    .app-nav-shell .navbar-brand {
        max-width: calc(100% - 150px);
        font-size: clamp(0.95rem, 4.1vw, 1.3rem);
    }

    .app-navbar-toggler {
        padding: 0.3rem 0.45rem;
    }

    .app-navbar-user .nav-user-actions {
        gap: 0.2rem !important;
    }

    .app-navbar-user .btn.btn-hidden {
        padding-left: 0.22rem;
        padding-right: 0.22rem;
    }

    .app-navbar-user .nav-user,
    .app-navbar-user .image-container-nav {
        width: 38px;
        height: 38px;
    }

    .app-navbar-user .admin-icon {
        width: 22px;
        right: -7px;
        bottom: -4px;
    }
}

.yearbook-page {
    background-color: #e6eaef !important;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
}

.yearbook-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 28px;
}

.yearbook-welcome-title {
    color: #273142;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 700;
    margin: 0;
}

.yearbook-date {
    color: #8b94a5;
    font-size: 0.9rem;
}

.yearbook-card {
    background-color: #f8f9fb;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    box-shadow: none;
}

.yearbook-card .card-header {
    background: transparent;
    border-bottom: 1px solid #e2e6eb;
    color: #354052;
    font-weight: 700;
    font-size: 0.95rem;
}

.yearbook-overview-body {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 18px;
}

.yearbook-title {
    color: #861818;
    font-size: clamp(2rem, 4vw, 3.55rem);
    letter-spacing: 0.03em;
    font-weight: 800;
    margin: 0;
}

.yearbook-filter-form {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.yearbook-filter-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a5555;
}

.yearbook-select {
    width: min(360px, 94%) !important;
    min-width: 220px;
    min-height: 58px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.03em;
    padding: 0.85rem 3.5rem 0.85rem 1.15rem;
    border: 1px solid #c69393;
    border-radius: 16px;
    background-color: #fffdfb;
    background-position: right 1rem center;
    color: #861818;
    box-shadow: 0 10px 24px rgba(93, 22, 22, 0.10);
    cursor: pointer;
}

.yearbook-department-select {
    margin: 0 auto;
}

.yearbook-select:focus {
    border-color: #861818;
    box-shadow: 0 0 0 0.2rem rgba(134, 24, 24, 0.18);
}

.yearbook-caption {
    color: #000000;
    font-style: italic;
}

.yearbook-panel {
    background-color: #f8f9fb;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    padding: 16px;
}

.yearbook-panel h4 {
    color: #2f394b;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.yearbook-sidebar-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.yearbook-year {
    color: #861818;
    font-size: clamp(2.25rem, 4.2vw, 3.2rem);
    line-height: 1;
    font-weight: 800;
}

.yearbook-year-note {
    color: #9aa3af;
    font-size: 0.88rem;
}

.yearbook-sidebar-divider {
    height: 1px;
    background-color: #e2e6eb;
    margin: 16px -16px;
}

.yearbook-highlight-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.yearbook-highlight-panel h4 {
    margin-bottom: 12px;
}

.yearbook-highlight-item {
    background-color: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.yearbook-highlight-single {
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.yearbook-highlight-single.is-changing {
    opacity: 0.35;
    transform: scale(0.985);
}

.yearbook-highlight-photo {
    display: block;
    width: 100%;
    height: min(250px, 32vh);
    object-fit: cover;
    object-position: center;
    background-color: #e8ebef;
}

.yearbook-highlight-meta {
    padding: 10px 12px 12px;
    flex: 1;
}

.yearbook-highlight-title {
    color: #2f394b;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

.yearbook-highlight-album {
    margin-top: 3px;
    color: #8a5555;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.yearbook-highlight-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    color: #7a8597;
    border: 1px dashed #c9d0d9;
    border-radius: 12px;
    background-color: #ffffff;
    font-size: 0.9rem;
}

.yearbook-alert {
    position: relative;
    border: 1px solid #e7a8a8;
    border-radius: 6px;
    background-color: #fff4f4;
    color: #b44d4d;
    padding: 12px 40px 12px 12px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.yearbook-alert-close {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0.65;
}

.yearbook-alert-toggle {
    color: #861818 !important;
    text-decoration: none !important;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}

.yearbook-alert-toggle:hover,
.yearbook-alert-toggle:focus {
    color: #6e1212 !important;
}

.yb-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.yb-album-tile {
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
}

.yb-album-media {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.yb-album-tile .yb-placeholder {
    min-height: 190px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.yb-album-cover {
    width: 100%;
    min-height: 190px;
    height: 190px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #e8ebef;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.yb-album-tile:hover .yb-placeholder,
.yb-album-tile:focus-visible .yb-placeholder,
.yb-album-tile:hover .yb-album-cover,
.yb-album-tile:focus-visible .yb-album-cover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}

.yb-album-name {
    margin-top: 8px;
    color: #2f394b;
    font-size: 0.86rem;
    font-weight: 700;
}

.yb-album-hover-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.65) 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.yb-album-tile:hover .yb-album-hover-label,
.yb-album-tile:focus-visible .yb-album-hover-label {
    opacity: 1;
    transform: translateY(0);
}

.yb-album-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1100;
}

.yb-album-overlay.open {
    opacity: 1;
    visibility: visible;
}

.yb-album-menu {
    position: fixed;
    top: 70px;
    right: 0;
    width: min(360px, 100vw);
    height: calc(100vh - 70px);
    background-color: #ffffff;
    border-left: 1px solid #dde3ea;
    box-shadow: -10px 0 24px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 1110;
    padding: 16px;
    overflow-y: auto;
}

.yb-album-menu.open {
    transform: translateX(0);
}

.yb-graduate-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
    border: 1px solid #e2d9cf;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(28, 24, 21, 0.22);
    transform: translate(-50%, calc(-50% + 24px)) scale(0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1110;
    padding: 22px;
    overflow-y: auto;
}

.yb-graduate-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.yb-graduate-modal-name {
    color: #861818;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
}

.yb-graduate-modal-body {
    display: grid;
    gap: 18px;
}

.yb-graduate-modal-photo {
    width: 100%;
    height: min(58vh, 420px);
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 18px;
    border: 1px solid #e3ddd4;
    background: #eceff3;
}

.yb-graduate-modal-degree-wrap {
    text-align: center;
    padding: 8px 10px 2px;
}

.yb-graduate-modal-label {
    color: #8b96a6;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.yb-graduate-modal-degree {
    color: #374151;
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    line-height: 1.45;
    font-weight: 500;
}

.yb-graduate-modal-quote-wrap {
    text-align: center;
    padding: 2px 10px 10px;
}

.yb-graduate-modal-quote {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.75;
    font-style: italic;
}

.yb-end-era-photo {
    width: 100%;
    min-height: 300px;
    height: 300px;
    border-radius: 6px;
    border: 1px solid #cc8a8a;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #f3f4f6;
}

.yb-end-era-message-card {
    min-height: 408px;
    padding: 16px 24px 16px 24px !important;
}

.yb-end-era-message-title {
    color: #861818;
    font-size: calc(0.98rem + 3px);
}

.yb-end-era-photo-wrap {
    width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
    margin-left: auto;
    margin-right: 12px;
}

.yb-end-era-signature {
    padding-top: 0;
    margin-top: 24px;
    text-align: right;
    margin-bottom: 0;
    align-self: flex-end;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.yb-end-era-message-card .row {
    min-height: 380px;
}

.yb-end-era-message-card .col-md-8 {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.yb-end-era-message-card .col-md-4 {
    display: flex;
}

.yb-end-era-profile-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 408px;
    height: 408px;
}

.yb-end-era-name {
    color: #2f394b;
}

.yb-end-era-program {
    color: #6f7b8e;
}

.yb-end-era-text-card {
    min-height: 408px;
    height: 408px;
    display: flex;
    flex-direction: column;
}

.yb-end-era-text-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0;
}

#endEraSpeechText {
    text-align: left;
    text-justify: auto;
    color: #1f2937 !important;
    font-style: normal;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.75;
}

#endEraSpeechText .end-era-paragraph {
    margin: 0 0 0.7rem 0;
    text-indent: 2em;
}

#endEraSpeechText .end-era-paragraph:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .yb-end-era-message-card {
        min-height: 0;
        height: auto;
    }

    .yb-end-era-photo-wrap {
        width: 100%;
        flex: 1 1 auto;
        max-width: 100%;
        margin-left: 0;
    }

    .yb-end-era-signature {
        text-align: left;
    }

    .yb-end-era-text-body {
        padding-right: 0;
    }

    .yb-end-era-profile-card,
    .yb-end-era-text-card {
        min-height: 0;
        height: auto;
    }
}

.yb-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.yb-graduates-section {
    margin-top: 32px;
}

.yb-placeholder {
    background-color: #e8ebef;
    border-radius: 12px;
    min-height: 300px;
}

.yb-placeholder.tall {
    min-height: 300px;
}

.yb-section {
    background-color: #f8f9fb;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.yb-hero-title {
    color: #861818;
    font-size: clamp(2.1rem, 4.2vw, 3.7rem);
    line-height: 1.02;
    font-weight: 800;
    text-align: center;
    margin: 22px 0 16px;
}

.yb-hero-subline {
    width: min(430px, 85%);
    height: 4px;
    background: linear-gradient(90deg, #861818 78%, #d7dbe1 78%);
    border-radius: 999px;
    margin: 0 auto;
}

.yearbook-viewing-label {
    margin-top: 10px;
    color: #6d788b;
    font-size: 0.9rem;
    font-weight: 500;
}

.yb-end-title {
    color: #861818;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.yb-album-page-title {
    color: #861818;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}

.yb-album-header-controls .form-select {
    width: 180px;
    min-height: 34px;
}

.yb-album-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.yb-album-photo-card {
    background-color: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    overflow: hidden;
}

.yb-album-photo-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #e8ebef;
}

.yb-album-photo-meta {
    padding: 10px 12px;
}

.yb-album-empty {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px dashed #c9d0d9;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.yb-graduate-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-height: 390px;
}

.yb-graduate-trigger {
    padding: 0;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.yb-graduate-card:hover,
.yb-graduate-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(54, 34, 34, 0.12);
    border-color: #bf8f8f;
}

.yb-graduate-photo {
    width: 100%;
    max-width: 100%;
    height: 250px;
    max-height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
    flex: 0 0 250px;
    background-color: #e8ebef;
}

.yb-graduate-meta {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 110px;
}

.yb-graduate-name {
    color: #861818;
    font-weight: 700;
    line-height: 1.2;
}

.yb-graduate-program {
    color: #485569;
    font-size: 0.95rem;
    margin-top: 0;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yb-graduate-campus {
    color: #7a8597;
    font-size: 0.88rem;
    margin-top: 2px;
}

.yb-graduate-pagination .page-link {
    color: #861818;
    border-color: #c9a2a2;
}

.yb-graduate-pagination .page-link:hover,
.yb-graduate-pagination .page-link:focus {
    color: #ffffff;
    background-color: #861818;
    border-color: #861818;
}

.yb-graduate-pagination .page-item.active .page-link {
    color: #ffffff;
    background-color: #861818;
    border-color: #861818;
    pointer-events: none;
}

.yb-graduate-pagination .page-item.disabled .page-link {
    color: #a98787;
    border-color: #dcc7c7;
    opacity: 0.5;
    pointer-events: none;
}

#endEraSpeechText {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
}

.yb-search-wrap {
    position: relative;
    width: min(220px, 100%);
}

.yb-search-wrap .bi-search {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #8a8f99;
    font-size: 0.9rem;
    pointer-events: none;
}

.yb-search-input {
    width: 100%;
    padding-left: 12px;
    padding-right: 40px;
    border-radius: 999px;
}

.yb-search-input::-webkit-search-decoration,
.yb-search-input::-webkit-search-cancel-button,
.yb-search-input::-webkit-search-results-button {
    display: none;
}

.yb-search-submit {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #861818;
    display: inline-block;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.yb-search-submit:hover,
.yb-search-submit:focus-visible {
    background: transparent;
    outline: none;
    box-shadow: none;
}

.yb-missing-data {
    color: #98a1b2;
    font-style: normal;
    font-weight: 400;
    background-color: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    min-height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


@media (max-width: 991.98px) {
    .yearbook-wrap {
        width: calc(100% - 20px);
    }

    .yearbook-highlight-panel {
        min-height: 320px;
    }

    .yearbook-highlight-photo {
        height: min(220px, 28vh);
    }

    .yb-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yb-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767.98px) {
    .yb-grid-4,
    .yb-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yearbook-overview-body {
        min-height: 360px;
    }

    .yb-graduate-modal {
        width: calc(100vw - 20px);
        padding: 16px;
        border-radius: 18px;
    }

    .yb-graduate-modal-photo {
        height: min(50vh, 340px);
    }

    .yearbook-highlight-panel {
        min-height: 320px;
    }

    .yb-end-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
        margin-bottom: 12px;
    }

    .yb-end-era-message-card {
        padding: 20px !important;
    }

    #endEraSpeechText {
        text-align: left;
        text-justify: auto;
        hyphens: auto;
    }

    .yb-end-era-photo {
        height: 300px;
        max-height: 300px;
        object-fit: cover;
        object-position: center;
    }

    #end-of-era,
    #class-of-graduates {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    #class-of-graduates > .d-flex {
        gap: 0.9rem !important;
        margin-bottom: 24px !important;
    }

    #class-of-graduates form {
        width: 100%;
    }

    .yb-search-wrap {
        width: 100%;
        max-width: 100%;
    }

    .yb-search-input {
        width: 100%;
        min-height: 44px;
    }

    .yb-missing-data {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .yb-grid-4,
    .yb-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}
.ui-box {
    width: 100%;
    min-height: 580px;
    border-radius: 18px;
    background: #ffffff;
    border-right: 4px solid #5c0505;
    border-bottom: 4px solid #5c0505;
    border-top: none;
    border-left: none;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16), 0 8px 20px rgba(92, 5, 5, 0.18);
    padding: 54px 40px 40px;
    max-width: 1280px;
    margin: 0 auto 42px;
    overflow: visible;
}
.ui-box::before {
    content: " ";
    display: block;
    height: 1px;
}

.ui-box-content {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-rows: minmax(220px, 1fr) minmax(220px, 1fr);
    grid-template-areas:
        "vision logo"
        "mission actions";
    align-items: stretch;
    column-gap: 34px;
    row-gap: 26px;
    min-height: 480px;
}

.ui-grid-vision {
    grid-area: vision;
}

.ui-grid-mission {
    grid-area: mission;
}

.ui-grid-logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.ui-grid-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-panel-title-wrap {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0 0 -18px 0;
    padding-left: 16px;
}

.ui-panel-title {
    margin: 0;
    padding: 6px 28px;
    background: #5c0505;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.1;
}

.ui-panel-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #5c0505;
    border-radius: 24px;
    padding: 34px 30px 32px;
    min-height: 100%;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.ui-panel-text {
    margin: 0;
    line-height: 1.75;
    text-align: justify;
    color: #000000;
    font-size: 1.03rem;
    max-width: 62ch;
    overflow-wrap: break-word;
}

.ui-right-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 480px;
    transform: translateY(90px);
}

.ui-right-headline {
    margin: 0;
    color: #5c0505;
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
}

.ui-box-text {
    min-width: 0;
    width: 100%;
    max-width: 680px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-content: start;
    align-self: stretch;
    height: 100%;
    padding-top: 10px;
}

.ui-box-mission {
    margin: 10px 0 0;
    line-height: 1.55;
    text-align: justify;
    color: #000000;
    font-size: 1.03rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

.ui-box-left-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #5c0505;
    border-radius: 24px;
    padding: 38px 20px 22px;
    min-height: 320px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.ui-box-left-title-box {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0 0 -18px 0;
    padding-left: 16px;
}

.ui-box-left-card-title {
    margin: 0;
    padding: 6px 28px;
    background: #5c0505;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.1;
}

.ui-box-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: none;
    justify-self: center;
    align-self: center;
    overflow: visible;
    padding-bottom: 0;
}

.ui-box-image {
    display: block;
    width: clamp(230px, 30vw, 350px);
    max-width: 100%;
    max-height: 300px;
    height: auto;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.ui-box-cta-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    padding-bottom: 0;
    color: #5c0505;
}

.ui-box-cta-actions {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.btn.ui-box-cta-btn {
    --bs-btn-bg: #5c0505;
    --bs-btn-border-color: #5c0505;
    --bs-btn-color: #ffffff;
    --bs-btn-hover-bg: #4a0404;
    --bs-btn-hover-border-color: #4a0404;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-active-bg: #3f0303;
    --bs-btn-active-border-color: #3f0303;
    --bs-btn-active-color: #ffffff;
    background-color: #5c0505;
    border-color: #5c0505;
    color: #ffffff;
    font-weight: 700;
    border-radius: 999px;
    width: 170px;
    min-height: 44px;
    padding: 0.5rem 1rem;
    text-align: center;
}

.btn.ui-box-cta-btn:hover,
.btn.ui-box-cta-btn:focus {
    background-color: #4a0404;
    border-color: #4a0404;
    color: #ffffff;
}

.btn.ui-box-cta-btn.ui-box-cta-btn-secondary {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #5c0505;
    --bs-btn-color: #5c0505;
    --bs-btn-hover-bg: #5c0505;
    --bs-btn-hover-border-color: #5c0505;
    --bs-btn-hover-color: #ffffff;
    background-color: transparent;
    border-color: #5c0505;
    color: #5c0505;
}

@media (max-width: 992px) {
    .ui-box {
        padding: 28px 24px 24px;
        min-height: 0;
    }

    .ui-box-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "logo"
            "vision"
            "mission"
            "actions";
        align-items: flex-start;
        row-gap: 24px;
        min-height: 0;
    }

    .ui-right-stack {
        transform: none;
        max-width: 100%;
    }

    .ui-grid-logo {
        margin-bottom: 4px;
    }

    .ui-right-headline {
        margin-top: 2px;
        margin-bottom: 4px;
    }

    .ui-box-image-wrap {
        width: 100%;
        justify-content: center;
        max-width: none;
        justify-self: center;
    }

    .ui-box-image {
        width: min(260px, 70vw);
        max-height: 240px;
        object-position: center;
        transform: none;
    }

    .ui-box-mission {
        font-size: 1rem;
    }

    .ui-panel-card {
        min-height: 0;
        padding: 28px 22px 24px;
    }

    .ui-panel-title {
        font-size: 1rem;
    }

    .ui-box-cta-wrap {
        justify-content: center;
        margin-top: 8px;
    }

    .ui-box-cta-actions {
        flex-wrap: wrap;
    }

    .home-cards-shell {
        min-height: calc(100svh - 70px);
        padding-top: clamp(20px, 4vh, 40px);
        padding-bottom: clamp(24px, 5vh, 44px);
    }

    #home-cards.container.slide-left {
        margin-top: 0;
        min-height: auto;
        display: block;
        padding-bottom: 18px;
    }

    .ui-box {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .home-cards-shell {
        min-height: calc(100svh - 70px);
        padding-top: clamp(18px, 4vh, 30px);
        padding-bottom: clamp(20px, 5vh, 34px);
    }

    #home-cards.container.slide-left {
        min-height: 0;
    }

    .ui-box {
        margin-top: 0;
        margin-bottom: 28px;
    }

    .ui-box-cta-wrap {
        margin-top: 10px;
    }
}




