/* Public layout styles (navbar, footer, base body) — moved out of
   layouts/public.blade.php's inline <style> block. Shared by every
   public-facing page (home, login, register, journals, etc.). */

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
}

/* ── Navbar ── */
.pub-navbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.pub-navbar .navbar {
    padding: 0.6rem 0;
}
.pub-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #14213d;
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.pub-navbar .navbar-brand img {
    height: 46px;
    width: auto;
}
.pub-navbar .navbar-toggler {
    border: 1px solid #ddd;
    color: #14213d;
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
}
.pub-navbar .navbar-toggler:focus {
    box-shadow: none;
}
.pub-navbar .navbar-nav .nav-link {
    color: #555 !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem !important;
    transition: color 0.2s;
}
.pub-navbar .navbar-nav .nav-link:hover,
.pub-navbar .navbar-nav .nav-link.active {
    color: #14213d !important;
}
.pub-navbar .dropdown-menu {
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-radius: 0.5rem;
    min-width: 200px;
    padding: 0.35rem 0;
}
.pub-navbar .dropdown-item {
    font-size: 0.83rem;
    padding: 0.45rem 1rem;
    color: #555;
}
.pub-navbar .dropdown-item:hover {
    background: #f5f7ff;
    color: #14213d;
}
.btn-nav-signin {
    border: 1px solid #d0d5dd;
    color: #344054;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 0.4rem;
    background: #fff;
    transition: all 0.2s;
}
.btn-nav-signin:hover {
    background: #f5f5f5;
    color: #14213d;
}
.btn-nav-start {
    background: #14213d;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 0.4rem;
    border: none;
    transition: all 0.2s;
}
.btn-nav-start:hover {
    background: #1d2d55;
    color: #fff;
}

/* ── Main ── */
.public-main {
    flex: 1;
}

/* ── Footer ── */
.pub-footer {
    background: #14213d;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}
.pub-footer .footer-main {
    padding: 3rem 0 2rem;
}
.pub-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.pub-footer .footer-brand img {
    /* background: white;
    border-radius: .4rem; */
    height: 60px;
}
.pub-footer .footer-brand span {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.pub-footer .footer-desc {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    line-height: 1.6;
    max-width: 280px;
}
.pub-footer h6 {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}
.pub-footer .footer-links a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.8rem;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.pub-footer .footer-links a:hover {
    color: #fff;
}
.pub-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 0;
    color: rgba(255,255,255,0.35);
}

@media (max-width: 991.98px) {
    .pub-navbar .nav-actions {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #eee;
    }
}
