body {
    background-color: #f8f9fa;
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

img.nuis-logo {
    height: 50px;
    padding-left: 40px;
}

.hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(rgba(55, 63, 148, 0.6),
            rgba(55, 63, 148, 0.9));
    color: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Carousel indicators (circle, bottom-left) */
.bottom-left-indicators {
    position: absolute;
    bottom: 0;
    left: 15px;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    display: flex;
    gap: 8px;       /* space between indicator dots */
    z-index: 2;     /* above overlay */
}

.bottom-left-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.6);
    transition: background-color 0.3s, transform 0.3s;
}

.bottom-left-indicators button.active {
    background-color: #ffc107; /* active slide */
    transform: scale(1.2);
}

.bottom-left-indicators button:hover {
    background-color: #fff;
}

.app-icons-wrapper {
    gap: 2rem;
    flex-wrap: nowrap;
}

.app-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.divider-vertical {
    width: 1px;
    background-color: #ced4da8a;
    height: 80px;
    align-self: center;
}

.app-icon {
    text-align: center;
    padding: 1rem;
    transition: transform 0.2s ease;
}

.app-icon:hover {
    transform: translateY(-4px);
}

.app-icon img {
    height: 50px;
    width: auto;
}

.footer {
    background-color: #35408e;
    color: #ffffff;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .logo {
    max-width: 80%;
}

.footer .divider {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 1rem 0 0.5rem;
}

.footer-icon {
    margin-right: 0.5rem;
}

.card-body {
    position: relative;
}

.card-logo-inline {
    height: 40px;
    width: auto;
    padding: 5px;
}

.card:hover {
    background-color: #e2f0ff;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Mega dropdown spacing */
.campus-mega {
    margin-top: 10px;
}

/* Tile container */
.campus-tile {
    position: relative;
    display: block;
    height: 170px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s ease;
}

.campus-tile:hover {
    transform: scale(1.04);
}

/* Image fills the tile */
.campus-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Blue overlay (covering the whole image) */
.campus-overlay {
    position: absolute;
    inset: 0;
    background: rgba(53, 64, 142, 0.6); /* bluish tint */
    pointer-events: none; /* allows click through */
}

/* Campus name overlay */
.campus-name {
    position: absolute;
    bottom: 12px;
    left: 12px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding-left: 6px;
    padding-right: 10px;
    
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;

    border-left: 4px solid #ffc107; /* yellow border */
}

.campus-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1051; /* above dropdown content */
}

@media (max-width: 576px) {
    img.nuis-logo {
        padding-left: 10px;
        height: 40px;
    }

    .navbar-text {
        text-align: center;
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }

    .footer .text-end {
        text-align: left !important;
        margin-top: 1rem;
    }

    .divider-vertical {
        display: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        width: 100%;
        padding: 2rem;
        text-align: center;
        justify-content: flex-end;
        background: linear-gradient(rgba(55, 63, 148, 0.7),rgba(55, 63, 148, 0.7));
    }

    .footer .row {
        flex-direction: column;
        text-align: center;
    }

    .footer .mb-3 {
        margin-bottom: 1rem !important;
    }
}