/* Homepage Styling */

.homepage .homepage-intro-img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.homepage .homepage-intro-text {
    max-width: 80ch;
}

.homepage .homepage-unilife {
    position: relative;
}

.homepage .homepage-unilife-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.homepage .homepage-unilife-label {
    position: absolute;
    left: 16px;
    bottom: 11px;
    color: white
}

/* University Life Page */

.university-life-gallery-card {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.university-life-gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.university-life-gallery-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.university-life-gallery-description {
    line-height: 1.4;
    min-height: 4.2em;
    overflow: hidden;
}

.university-life-map-pill {
    padding: 0.18rem 0.40rem;
    font-size: 0.85rem;
}

/* FAQs page Styling */

.theme-tabs .nav-link {
    color: #434950;
    font-weight: 600;
}

.theme-tabs .nav-link:hover {
    color: #de2f41;
}

.theme-tabs .nav-link.active {
    color: #de2f41;
}

@media (max-width: 991.98px) {
    .theme-tabs .nav-item {
        width: 100%;
        margin-bottom: 0.4rem;
    }

    .theme-tabs .nav-link {
        width: 100%;
        text-align: center;
        border: 1px solid #dee2e6 !important;
        border-radius: 6px;
    }
}

/* Navbar Styling */

.custom-navbar {
    background: linear-gradient(90deg, #E2231A 0%, #b30000 55%, #a10101 100%);
}

.navbar-logo {
    height: 36px;
    transform: scale(1.5);
}

.nav-buttons {
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
    color: #ffffff ;
    background-color: #bb2d3b;
}

.custom-navbar .navbar-nav {
    gap: 0.5rem;
}

.navbar-avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.navbar-avatar-default {
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.notification-badge {
    font-size: 0.6rem;
    top: 2px;
    right: -2px;
    transform: translate(45%, -35%);
}

.notification-link-mobile {
    color: #d78c8c
}

.notification-link-mobile:hover,
.notification-link-mobile:focus {
    color: #ddbfbf
}

@media (max-width: 991.98px) {
    .mobile-nav-center {
        gap: 0.4rem;
    }

    .nav-buttons {
        width: auto;
    }
}

/* Pagination Styling */

.pagination .page-link {
    color: #6c757d;
    background-color: transparent;
    border: 1px solid #ced4da;
}

.pagination .page-link:hover {
    color: #495057;
    background-color: #fdf2f4;
    border-color: #e7a2aa;
}

.pagination .page-item.active .page-link {
    color: #ffffff;
    background-color: #d97b86;
    border-color: #d97b86;
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: transparent;
    border-color: #e9ecef;
}

/* Links and Buttons Styling */
.theme-link,
.theme-link:visited {
    color: #bb2d3b;
    text-decoration: underline;
}

.theme-link:hover,
.theme-link:focus {
    color: #a52834;
    text-decoration: underline;
}

.action-btn-red {
    color: #bb2d3b !important;
    border-color: #bb2d3b !important;
    background-color: transparent;
}

.action-btn-red:hover,
.action-btn-red:focus {
    color: #ffffff !important;
    background-color: #bb2d3b !important;
    border-color: #bb2d3b !important;
}

/* Profile Styling */
.profile-form .form-text a,
.profile-form .mb-3 a,
.profile-form a[href*="profile_pictures/"] {
    color: #bb2d3b !important;
    text-decoration: underline;
}

.profile-form .form-text a:hover,
.profile-form .mb-3 a:hover,
.profile-form a[href*="profile_pictures/"]:hover {
    color: #a52834 !important;
}

/* Error Page Styling */
.error-page-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.error-page {
    text-align: center;
}

.error-page-code {
    margin-bottom: 0.5rem;
}

.error-page-title {
    margin-bottom: 1rem;
}

.error-page-text {
    margin-bottom: 1.5rem;
}

/* Staff ticket conversation reply layout */
.reply-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.reply-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.reply-avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
    flex-shrink: 0;
}

.reply-user-meta {
    min-width: 0;
    flex: 1;
}

.reply-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reply-role-badge {
    position: relative;
    top: 1px;
}

.reply-date-desktop {
    white-space: nowrap;
    flex-shrink: 0;
}

.reply-date-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .reply-item {
        display: block;
    }

    .reply-date-desktop {
        display: none;
    }

    .reply-date-mobile {
        display: block;
        margin-top: 4px;
    }
}