/* Shared navigation and footer shell for 777abc login. */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.55rem 0;
    background:
        linear-gradient(110deg, rgba(1, 77, 58, 0.97), rgba(2, 44, 34, 0.96)) !important;
    border-bottom: 1px solid rgba(134, 239, 172, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24), 0 1px 0 rgba(34, 197, 94, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.navbar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.75), transparent);
    pointer-events: none;
}

.navbar > .container {
    min-height: 58px;
    gap: 18px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 4px 0;
    margin-right: 1.25rem;
}

.navbar-brand img {
    display: block;
    width: auto;
    height: clamp(38px, 3vw, 45px);
    max-width: min(255px, 66vw);
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.2));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.navbar-brand:hover img,
.navbar-brand:focus-visible img {
    transform: translateY(-1px);
    filter: drop-shadow(0 7px 15px rgba(0, 0, 0, 0.26));
}

.navbar-nav {
    align-items: center;
    gap: 3px;
}

.navbar .nav-link {
    position: relative;
    padding: 0.62rem 0.76rem !important;
    color: #d1fae5 !important;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    transition: color 0.22s ease, background-color 0.22s ease,
        border-color 0.22s ease, transform 0.22s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(134, 239, 172, 0.24);
    transform: translateY(-1px);
}

.navbar .nav-link.active {
    color: #86efac !important;
    background: rgba(34, 197, 94, 0.19);
}

.navbar-toggler {
    width: 44px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(134, 239, 172, 0.28);
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.1);
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.navbar-toggler:hover {
    border-color: rgba(134, 239, 172, 0.5);
    background: rgba(34, 197, 94, 0.18);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.22rem rgba(34, 197, 94, 0.18);
}

.footer {
    position: relative;
    overflow: hidden;
    margin-top: clamp(44px, 6vw, 72px);
    padding: clamp(48px, 6vw, 72px) 0 24px;
    color: #d1fae5;
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 197, 94, 0.13), transparent 34%),
        linear-gradient(145deg, #014d3a 0%, #022c22 58%, #011f19 100%);
    border-top: 1px solid rgba(134, 239, 172, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, #86efac, transparent);
    opacity: 0.85;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1.3fr) repeat(3, minmax(130px, 0.72fr)) minmax(190px, 0.9fr);
    gap: 32px 34px;
    align-items: start;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-logo,
.footer-brand img {
    display: block;
    width: auto;
    height: 42px;
    max-width: 238px;
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.2));
}

.footer-desc {
    max-width: 360px;
    margin: 0 0 18px;
    color: #a7d9c5;
    font-size: 0.94rem;
    line-height: 1.75;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(134, 239, 172, 0.18);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-link-group,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-title {
    position: relative;
    margin: 0 0 7px;
    padding-bottom: 10px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #86efac);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer .footer-links a,
.footer-contact a {
    width: fit-content;
    color: #b7dacb;
    font-size: 0.91rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer .footer-links a:hover,
.footer .footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: #86efac;
    transform: translateX(3px);
}

.footer-contact p {
    margin: 0;
    color: #8fbfac;
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 34px;
    padding-top: 20px;
    color: #86b7a4;
    border-top: 1px solid rgba(134, 239, 172, 0.14);
    font-size: 0.86rem;
}

.footer-bottom a {
    color: #a7d9c5;
}

/* Standalone content image inserted between separate body sections. */
.content-image-break {
    width: min(100%, 920px);
    margin: clamp(34px, 5vw, 64px) auto;
}

.content-image-break img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: 0;
    border: 1px solid rgba(134, 239, 172, 0.18);
    border-radius: 16px;
    background: #022c22;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

@media (max-width: 1199.98px) {
    .navbar > .container {
        gap: 10px;
    }

    .navbar-brand {
        margin-right: 0.5rem;
    }

    .navbar .nav-link {
        padding-right: 0.55rem !important;
        padding-left: 0.55rem !important;
        font-size: 0.88rem;
    }

    .footer-grid {
        grid-template-columns: minmax(250px, 1.3fr) repeat(2, minmax(150px, 0.8fr));
    }
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.42rem 0;
    }

    .navbar > .container {
        min-height: 54px;
    }

    .navbar-brand img {
        height: 38px;
        max-width: min(215px, 64vw);
    }

    .navbar-collapse {
        margin-top: 0.65rem;
        padding: 0.7rem;
        background: rgba(1, 49, 38, 0.97);
        border: 1px solid rgba(134, 239, 172, 0.16);
        border-radius: 16px;
        box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
    }

    .navbar-nav {
        align-items: stretch;
        gap: 4px;
    }

    .navbar .nav-link {
        padding: 0.72rem 0.85rem !important;
        border-radius: 10px;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding-top: 46px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .footer-desc {
        max-width: 520px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 28px;
    }

    .content-image-break {
        margin-top: 34px;
        margin-bottom: 34px;
    }

    .content-image-break img {
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-brand img,
    .navbar .nav-link,
    .footer .footer-links a,
    .footer-contact a {
        transition: none;
    }
}
