/* Layout, navbar, footer, hero */

/* Navbar fixed */
.navbar.fixed-top {
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Main offset for fixed navbar */
main {
    padding-top: 80px;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--color-blue-soft) 0%, #ffffff 70%);
    margin-top: -80px;
    padding-top: 80px;
}

/* Logo */
.navbar-brand {
    font-weight: 600;
    color: var(--color-red) !important;
}

.navbar-brand:hover {
    color: var(--color-red-dark) !important;
}

/* Navbar links */
.navbar-nav .nav-link.active {
    color: var(--color-red) !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--color-red) !important;
}

.navbar-nav .nav-link {
    transition: color 0.2s ease-in-out;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link i {
    transition: transform 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.1);
}

/* Dropdown */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 250px;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--color-red-soft);
    color: var(--color-red);
    transform: translateX(5px);
}

.navbar-nav .dropdown-item i {
    width: 20px;
    text-align: center;
}

.navbar-nav .dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-soft);
    padding: 0.5rem 1rem 0.25rem;
    margin-bottom: 0;
}

.navbar-nav .dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Hover colors for colored items */
.navbar-nav .dropdown-item:hover .text-danger {
    color: #dc3545 !important;
}

.navbar-nav .dropdown-item:hover .text-success {
    color: #198754 !important;
}

.navbar-nav .dropdown-item:hover .text-info {
    color: #0dcaf0 !important;
}

.navbar-nav .dropdown-item:hover .text-warning {
    color: #ffc107 !important;
}

/* Responsive navbar */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    .navbar-nav .dropdown-menu {
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 0;
        margin-left: 1rem;
    }

    .navbar-nav .dropdown-item:hover {
        transform: none;
    }
}

/* Footer */
.footer-custom {
    background-color: var(--bs-danger);
    color: white;
}

.footer-custom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

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

/* Skip link */
.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: var(--color-red);
    color: white;
    text-decoration: none;
    z-index: 9999;
}

/* Section highlight */
.subsection-highlight {
    background: linear-gradient(135deg, var(--color-red-soft) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-red);
    animation: highlightPulse 3s ease-in-out;
    box-shadow: 0 4px 12px rgba(217, 32, 40, 0.15);
    transform: translateX(10px);
    transition: all 0.3s ease-in-out;
}

@keyframes highlightPulse {
    0% {
        background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-soft) 100%);
        transform: translateX(15px) scale(1.02);
    }

    50% {
        background: linear-gradient(135deg, var(--color-red-soft) 0%, rgba(255, 255, 255, 0.9) 100%);
        transform: translateX(10px) scale(1.01);
    }

    100% {
        background: linear-gradient(135deg, var(--color-red-soft) 0%, rgba(255, 255, 255, 0.8) 100%);
        transform: translateX(10px) scale(1);
    }
}

/* Responsive misc */
@media (max-width: 576px) {
    .card-body {
        padding: 2rem 1.5rem !important;
    }
}