/*
 * ETI GIDA — Navbar
 * Shared header component used by the Welcome/ApplyForTuition layout
 * and (logo sizing only) the Account login page.
 *
 * Visual language matches the Etiverse_Web design system: Poppins
 * typography, one brand-red accent, soft lavender-tinted depth instead
 * of hard gray shadows.
 */
:root {
    --eti-red: #b0000d;
    --eti-text: #333333;
    --eti-text-muted: #6b7280;
    --eti-duration: 0.2s ease;
}

.eti-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--eti-red);
    border: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 4px 4px 12px rgba(147, 147, 207, 0.3);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Full-bleed photo behind the header content, matching Etiverse_Web's
   header-bar__bg treatment: absolute, object-fit: cover, rounded to the
   same corners as .eti-nav, sitting behind .eti-nav__inner. */
.eti-nav__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 0;
}

.eti-nav__inner {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- Brand / Logo ---- */
.eti-nav__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--eti-duration);
}

.eti-nav__brand:hover {
    opacity: 0.8;
    text-decoration: none;
    color: inherit;
}

.eti-nav__logo {
    height: 39px;
    width: auto;
}

.eti-nav__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.eti-nav__brand-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.eti-nav__brand-subtitle {
    font-size: 0.68rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.15px;
}

/* Centers the brand in the header, regardless of whether .eti-nav__actions
   is present alongside it (e.g. the Back button on ApplyForTuition) - a
   3-column grid keeps the brand truly centered instead of just flexing it
   into whatever space is left after the actions. */
.eti-nav__inner--center {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.eti-nav__inner--center .eti-nav__brand {
    grid-column: 2;
    justify-self: center;
}

.eti-nav__inner--center .eti-nav__actions {
    grid-column: 3;
    justify-self: end;
}

/* Larger, more prominent brand lockup for pages with no nav actions to balance against */
.eti-nav__brand--lg {
    gap: 18px;
}

.eti-nav__brand--lg .eti-nav__logo {
    height: 52px;
}

.eti-nav__brand--lg .eti-nav__brand-title {
    font-size: 1.15rem;
}

.eti-nav__brand--lg .eti-nav__brand-subtitle {
    font-size: 0.78rem;
}

/* ---- Right side actions ---- */
.eti-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- Go-back Button ---- */
.eti-nav__go-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--eti-duration), color var(--eti-duration);
}

.eti-nav__go-back:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    text-decoration: none;
}

.eti-nav__go-back:active {
    background: rgba(255, 255, 255, 0.38);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .eti-nav__inner {
        height: 60px;
        padding: 0 16px;
    }

    .eti-nav__logo {
        height: 32px;
    }

    .eti-nav__brand--lg .eti-nav__logo {
        height: 38px;
    }

    .eti-nav__brand-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .eti-nav__go-back {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}
