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-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;
}

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.container.slide-left {
    margin-top: 120px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding-bottom: 48px;
}

#home-cards.container.slide-left > .row {
    width: 100%;
}

@media all {
    #home-cards.container.slide-left {
        overflow-x: hidden;
        overflow-y: visible;
        cursor: grab;
        touch-action: pan-y;
    }

    #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;
        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;
    }
}

.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: #002c59;
}

.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 -4px 0 #ffffff !important;
}
.nav-main-admin-active{
    color: #ffffff !important;
    box-shadow: inset 0 -4px 0 #ffffff !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: #002346;
    transition: 0.075s ease;
}

.btn-link:hover{
    background-color: #F2F2F2 !important;
}

.btn-hidden{
    border: none; 
    background-color: transparent;
}

.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;
}

.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);
}

.btn-gray{
    background-color: #eaebec !important;
}
.btn-gray:hover{
    background-color: #dcddde !important;
}
.btn-gray:active{
    background-color: #cdced0 !important;
    border-color: #c6c6c7 !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;
}

.modal {
    --bs-modal-border-color: rgb(0 0 0 / 0%) !important;
    backdrop-filter: blur(3px);
}

.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;
}

.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 (min-width: 768px){
    .login-side-img{
        max-width: 260px;
    }
}

.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;
}

.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 {
        display: flex;
        align-items: center;
    }

    .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 {
        max-width: 55%;
    }

    .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: auto;
    }

    .app-nav-shell > .app-navbar-user {
        margin-left: 0.5rem;
    }

    .app-navbar-user {
        min-width: 0;
        flex: 0 0 auto;
    }

    .app-navbar-right {
        flex: 1 1 0;
        min-width: 0;
    }
}
.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: 50px auto 0;
    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: 48px;
    padding-bottom: 0;
    color: #5c0505;
}

.ui-box-cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: center;
}

.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.container.slide-left {
        margin-top: 48px;
        min-height: auto;
        display: block;
        padding-bottom: 24px;
    }
}
