* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    font-family: Arial, "Noto Sans Arabic", sans-serif;
    color: #172033;
    background: #eef3f8;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --blue: #155e9b;
    --blue-dark: #104775;
    --muted: #64748b;
    --line: #d8e2ec;
    --card: #fff;
}

body {
    min-height: 100vh;
    padding-top: 88px;
    background: linear-gradient(135deg, rgba(9, 22, 43, .80), rgba(20, 45, 73, .72)), url("background.jpeg") center / cover fixed;
}

header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    min-height: 72px;
    padding: 12px clamp(18px, 5vw, 72px);
    background: rgba(12, 30, 53, .94);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

header > img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
}

.logo {
    color: #fff;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    white-space: nowrap;
}

.logo span {
    color: #77d5ee;
}

header ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

header ul a {
    color: #e8f2fb;
    font-size: 15px;
    font-weight: 600;
    transition: color .2s ease;
}

header ul a:hover,
header ul a:focus-visible {
    color: #77d5ee;
}

#welcome {
    width: min(1100px, 92%);
    margin: 26px auto 30px;
    color: #fff;
    text-align: center;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.2;
    text-wrap: balance;
}

.all.lessons {
    width: min(980px, 92%);
    margin: 0 auto 48px;
    display: grid;
    gap: 18px;
}

.all.lessons > section {
    min-width: 0;
}

.box {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    min-width: 0;
    padding: clamp(20px, 3vw, 30px);
    color: #172033;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}

.box > div:first-child img {
    display: block;
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.box h1 {
    margin: 0 0 8px;
    font-size: clamp(19px, 2.4vw, 25px);
    line-height: 1.35;
}

.box p {
    color: #526176;
    font-size: 16px;
    line-height: 1.75;
}

.start-btn {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 11px 20px;
    color: #fff;
    background: var(--blue);
    border-radius: 9px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

.start-btn:hover,
.start-btn:focus-visible {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding: 20px clamp(18px, 5vw, 72px);
    color: #d6e1ed;
    background: #0c1e35;
    font-size: 14px;
}

.copyright span {
    color: #77d5ee;
    font-weight: 700;
}

.copyright p {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
}

.copyright img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 50%;
}

@media (max-width: 650px) {
    body {
        padding-top: 82px;
        background-attachment: scroll;
    }

    header {
        min-height: 66px;
        gap: 12px;
    }

    header > img {
        width: 42px;
        height: 42px;
    }

    .box {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .box > div:first-child img {
        width: 60px;
        height: 60px;
    }

    .box > div:nth-child(2) {
        flex: 1 1 180px;
    }

    .start-btn {
        margin-left: 76px;
    }

    .copyright {
        align-items: flex-start;
        flex-direction: column;
    }
}
