@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

.home-shell, .home-shell * {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.home-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--lms-page-bg, #f5f6fa);
}

.home-topbar {
    display: flex;
    justify-content: flex-end;
    padding: 20px 28px 0;
}

.home-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 24px 80px;
    text-align: center;
}

.home-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--lms-brand, #2f5bea), var(--lms-brand-light, #4f7dfb));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    box-shadow: 0 14px 30px -10px var(--lms-shadow-brand-active, rgba(47, 91, 234, .35));
}

.home-logo svg {
    width: 36px;
    height: 36px;
}

.home-hero h1 {
    font-size: 34px;
    font-weight: 800;
    color: var(--lms-text-primary, #111827);
    margin: 0 0 14px;
}

.home-subtitle {
    font-size: 15px;
    color: var(--lms-text-muted, #6b7280);
    max-width: 480px;
    margin: 0 auto 48px;
    line-height: 1.9;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 940px;
}

.home-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    text-align: right;
    background: var(--lms-surface, #fff);
    border: 1.5px solid var(--lms-border, #e5e7eb);
    border-radius: 18px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    animation: homeCardIn .45s ease both;
}

.home-card:nth-child(2) {
    animation-delay: .06s;
}

.home-card:nth-child(3) {
    animation-delay: .12s;
}

@keyframes homeCardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-card {
        animation: none;
    }
}

.home-card:hover, .home-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--lms-hover-border, #c7d2fe);
    box-shadow: 0 22px 42px -18px var(--lms-shadow-drawer, rgba(15, 23, 42, .2));
}

.home-card:focus-visible {
    outline: none;
    box-shadow: 0 22px 42px -18px var(--lms-shadow-drawer, rgba(15, 23, 42, .2)), 0 0 0 4px var(--lms-shadow-brand-focus, rgba(47, 91, 234, 0.12));
}

.home-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--lms-brand, #2f5bea), var(--lms-brand-light, #4f7dfb));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px -8px var(--lms-shadow-brand-active, rgba(47, 91, 234, .35));
}

.home-card-icon svg {
    width: 24px;
    height: 24px;
}

.home-card h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--lms-text-primary, #111827);
}

.home-card p {
    font-size: 13px;
    color: var(--lms-text-muted, #6b7280);
    margin: 0;
    line-height: 1.75;
}

.home-card-arrow {
    margin-top: auto;
    padding-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lms-brand, #2f5bea);
}

.home-card-arrow svg {
    width: 15px;
    height: 15px;
    transition: transform .15s ease;
}

.home-card:hover .home-card-arrow svg {
    transform: translateX(-4px);
}

.home-footnote {
    text-align: center;
    font-size: 12px;
    color: var(--lms-text-faint, #9ca3af);
    padding: 0 24px 28px;
}

@media (max-width: 760px) {
    .home-cards {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .home-hero {
        padding: 12px 20px 60px;
    }

    .home-hero h1 {
        font-size: 27px;
    }
}
