/* App-specific tweaks on top of Bootstrap */
body {
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.navbar-brand {
    letter-spacing: 0.02em;
}

.edutime-navbar {
    --bs-navbar-padding-y: 0.65rem;
    min-height: 3.25rem;
    flex-shrink: 0;
    background: linear-gradient(110deg, #1a3a52 0%, #0d6efd 88%) !important;
    box-shadow: 0 4px 22px rgba(13, 110, 253, 0.2);
}

.edutime-navbar .navbar-brand {
    font-weight: 700;
}

body.edutime-profile-page {
    background: linear-gradient(180deg, var(--bs-gray-100) 0%, var(--bs-body-bg) 22rem);
}

.profile-shell {
    max-width: 1040px;
}

.profile-hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.profile-hero-student {
    background: linear-gradient(135deg, #1a3a52 0%, #0d6efd 52%, #4dabf7 100%);
    box-shadow: 0 14px 44px rgba(26, 58, 82, 0.28);
}

.profile-hero-motivation {
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: 0.95;
}

.profile-hero-parent {
    background: linear-gradient(145deg, var(--bs-primary-bg-subtle) 0%, var(--bs-body-bg) 65%);
    border: 1px solid var(--bs-border-color-translucent);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.profile-subnav .nav-link {
    border-radius: 2rem;
    padding: 0.45rem 1.1rem;
    color: var(--bs-secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-subnav .nav-link:hover {
    background: var(--bs-gray-200);
    color: var(--bs-emphasis-color);
}

.profile-subnav .nav-link.active {
    background: var(--bs-primary);
    color: #fff;
}

.btn-edutime-primary {
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-font-weight: 600;
    border-radius: 0.65rem;
}

.btn-edutime-soft {
    --bs-btn-bg: var(--bs-gray-200);
    --bs-btn-border-color: transparent;
    --bs-btn-color: var(--bs-emphasis-color);
    --bs-btn-hover-bg: var(--bs-gray-300);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: var(--bs-gray-400);
    --bs-btn-font-weight: 600;
    border-radius: 0.65rem;
}

.edutime-card {
    border-radius: 1rem !important;
}

.edutime-card-highlight {
    background: linear-gradient(180deg, var(--bs-primary-bg-subtle) 0%, var(--bs-body-bg) 100%);
    border: 1px solid var(--bs-border-color-translucent) !important;
}

.edutime-card-accent {
    border-left: 4px solid var(--bs-primary) !important;
}

.edutime-badge-soft {
    background: var(--bs-gray-200);
    color: var(--bs-emphasis-color);
    font-weight: 600;
}

.edutime-badge-warm {
    background: rgba(224, 122, 95, 0.2);
    color: #c45c42;
    font-weight: 600;
}

.edutime-badge-strong {
    background: rgba(25, 135, 84, 0.15);
    color: var(--bs-success-text-emphasis);
    font-weight: 600;
}

.letter-spacing-wide {
    letter-spacing: 0.08em;
}

main.container {
    max-width: 1080px;
}

.home-hero {
    background: linear-gradient(165deg, var(--bs-primary-bg-subtle) 0%, transparent 55%);
}

@media (min-width: 992px) {
    .py-lg-6 {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }
}

.home-brand {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero-panel {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
}

.home-feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .home-feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.08) !important;
    }
}

.edutime-math .katex-display {
    overflow-x: auto;
    max-width: 100%;
}
