:root {
    --page-bg: #f8f9fb;
    --card-bg: #ffffff;
    --accent: #0d6efd;
}

body {
    background: radial-gradient(circle at top left, #f0f4ff 0, #f8f9fb 40%, #f8f9fb 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    color: #1f2933;
}

.page-wrap {
    padding: 2rem 1.25rem;
}

.brand-card {
    background-color: transparent;
    border: none;
}

.brand-card .card-body {
    padding-top: 0;
    padding-bottom: 0;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-pill-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #38bdf8);
}

.hero-title {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 0.98rem;
    max-width: 40rem;
    color: #4b5563;
}

.hero-highlight {
    color: var(--accent);
}

.cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }
}

.nav-card {
    border-radius: 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: var(--card-bg);
    box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    transition:
        transform 120ms ease,
        box-shadow 120ms ease,
        border-color 120ms ease,
        background 120ms ease;
}

.nav-card-main {
    border-left: 3px solid var(--accent);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(13, 110, 253, 0));
}

.nav-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 110, 253, 0.5);
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.9);
}

.nav-card-header {
    /* no pointer cursor needed now; just a layout wrapper */
}

.nav-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-card-description {
    font-size: 0.9rem;
    color: #4b5563;
}

.nav-pill-link-icon {
    font-size: 0.9rem;
    margin-left: 0.1rem;
}

.more-links-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #9ca3af;
}

.more-links-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.more-links-list li + li {
    margin-top: 0.25rem;
}

.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    font-size: 0.85rem;
    text-decoration: none;
    color: #374151;
    width: 100%;
}

.more-link:hover {
    border-color: rgba(148, 163, 184, 0.8);
    background: rgba(248, 249, 252, 0.8);
}

.more-link-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.more-link-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.more-link-arrow {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* compact group of links inside a single <li> */
.more-link-group a.more-link {
    padding-top: 0.2rem;
    padding-bottom: 0.0rem;
    margin-top: 0.0rem;
    margin-bottom: 0.0rem;
}

.more-link-group a.more-link:first-child {
    margin-top: 0;
}

.more-link-group a.more-link:last-child {
    margin-bottom: 0;
}

.hero-image img {
    width: 100%;
    border-radius: 1.1rem;
    display: block;
}

/* Smaller top-right logo used on inner pages */
.top-logo {
    width: 90px;             /* adjust to taste */
    height: auto;
    margin-top: -5px;        /* optical alignment tweak */
    opacity: 0.92;
}

/* Back link */
.back-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: #4b5563;
    margin-left: 0.25rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Smaller top-right logo used on inner pages */
.top-logo {
    width: 90px;             /* adjust to taste */
    height: auto;
    margin-top: -5px;        /* optical alignment tweak */
    opacity: 0.92;
}

/* Back link */
.back-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: #4b5563;
    margin-left: 0.25rem;
}

.back-link:hover {
    text-decoration: underline;
}
