@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&display=swap');

/* Биология атмосферасы — табиғи түстер, жапырақ жасыл */
* {
    box-sizing: border-box;
}

:root{
    --accent: #256C40;
    --accent-soft: #9BBF91;
    --text: #143224;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 16px;
    padding-bottom: 100px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(155, 191, 145, 0.16) 0%, transparent 55%),
                      radial-gradient(circle at 80% 20%, rgba(37, 108, 64, 0.10) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* Негізгі контент — фонның үстінде */
body > * {
    position: relative;
    z-index: 1;
}

/* Профиль аймағы */
.nav {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 340px;
    max-width: 600px;
    margin: 0 auto 16px;
}

.image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(37, 108, 64, 0.22);
}

.name {
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-left: 0;
}

.score {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 32px;
    padding: 0 14px;
    background: var(--accent);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(37, 108, 64, 0.22);
    display: flex;
    align-items: center;
    gap: 4px;
}

.score .fa-fire-alt{
    font-size: 14px;
    color: #ff6b35;
}

.content {
    padding: 20px;
    text-align: center;
}

/* Bottom Navigation */

.bottom-nav {
    position: fixed;
    bottom: 12px;
    width: 88%;
    height: 64px;
    max-width: 420px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(20, 50, 36, 0.12);
    border-radius: 20px;
    border: 1px solid rgba(37, 108, 64, 0.08);
}

.bottom-nav a {
    text-decoration: none;
    color: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.bottom-nav a:hover {
    color: var(--accent);
}

.bottom-nav a.active {
    color: var(--accent);
    font-weight: 600;
}


#lessons-container {
    position: relative;
    z-index: 1;
}

.banner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    height: 200px;
    overflow: hidden;
    border-radius: 18px;
    margin: auto;
    margin-top: 10px;
    box-shadow: 0 8px 24px rgba(20, 50, 36, 0.14);
}

.imageBanner {
    width: 100%;
    max-width: 700px;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 108, 64, 0.62) 0%, rgba(37, 108, 64, 0.46) 50%, rgba(155, 191, 145, 0.30) 100%);
    z-index: 1;
}

.title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 42px;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}


.lesson {
    margin: 20px auto 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 340px;
    max-width: 600px;
}

.right {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 4px;
    margin-right: 15px;
}

.img {
    margin-top: 3px;
}

.h3 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: var(--text);
    font-size: 18px;
}

.p {
    font-family: "Inter", sans-serif;
    font-size: 12px;
}

.right a {
    text-decoration: none;
    color: var(--accent);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin-right: -15px;
}

#lessons-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Сабақ карточкасы: сурет үстте, тақырып астында (ұзын тақырып қысқартылады) */
.lesson-card {
    margin: 0 auto 14px;
    max-width: 600px;
}

.lesson-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(37, 108, 64, 0.1);
    box-shadow: 0 4px 18px rgba(20, 50, 36, 0.08);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.lesson-card-link:hover {
    box-shadow: 0 10px 28px rgba(20, 50, 36, 0.12);
    transform: translateY(-2px);
}

.lesson-card-link:focus-visible {
    outline: 3px solid rgba(37, 108, 64, 0.45);
    outline-offset: 2px;
}

.lesson-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 140px;
    max-height: 200px;
    background: linear-gradient(135deg, rgba(155, 191, 145, 0.35), rgba(37, 108, 64, 0.25));
}

.lesson-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lesson-card-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 108, 64, 0.35);
    pointer-events: none;
}

.lesson-card-arrow svg {
    width: 18px;
    height: 18px;
}

.lesson-card-body {
    padding: 14px 16px 16px;
    text-align: left;
}

.lesson-card-title {
    margin: 0 0 8px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
}

.lesson-card-meta {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    opacity: 0.92;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.lesson-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lesson-card-meta-item i {
    font-size: 12px;
    opacity: 0.9;
}

.lesson-card-meta-dot {
    opacity: 0.5;
    user-select: none;
}

#lessons-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

#lessons-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.lesson {
    margin-top: 20px;
}

#lessons-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#lessons-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}