main > .container {
    padding: 70px 15px 20px;
}

.navbar-brand .site-logo {
    height: 28px;
    width: auto;
    display: block;
}

.navbar-brand .site-logo-text {
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
}

.navbar-brand:hover .site-logo-text,
.navbar-brand:focus .site-logo-text {
    color: rgba(255, 255, 255, 1);
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert {
    animation: fadeIn 0.5s ease-in;
}

.invalid-feedback {
    animation: slideIn 0.3s ease-in;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .hero-slider-container {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Home page slider */
.hero-slider-container {
    margin-top: -20px;
    margin-left: -15px;
    margin-right: -15px;
}

.hero-slider-container .carousel,
.hero-slider-container .carousel-inner,
.hero-slider-container .carousel-item {
    height: 500px;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 576px) {
    .hero-slider-container .carousel,
    .hero-slider-container .carousel-inner,
    .hero-slider-container .carousel-item {
        height: 300px;
    }

    .hero-slide-img {
        height: 100%;
    }
}

/* 390×844 mobile (e.g. iPhone 14 Pro) */
@media (max-width: 390px) {
    .hero-slider-container .carousel,
    .hero-slider-container .carousel-inner,
    .hero-slider-container .carousel-item {
        height: 220px;
    }
    main .container { padding-left: 12px; padding-right: 12px; }
    .btn { min-width: 0; }
    .rentals-my-rentals .card { margin-bottom: 1rem; }
    #footer .row { flex-direction: column; gap: 0.5rem; }
    #footer .col-md-6 { text-align: center !important; }
}