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

:root {
    --primary: #00145B;
    --secondary: #F7C82C;
    --text: #172033;
    --muted: #64748b;
    --background: #f8fafc;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.9;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: #334155;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.hero {
    padding: 90px 0;
    background:
        linear-gradient(
            135deg,
            #eef2ff 0%,
            #ffffff 55%,
            #fffbeb 100%
        );
}

.hero h1 {
    max-width: 850px;
    margin: 0 0 20px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.35;
    color: var(--primary);
}

.hero p {
    max-width: 800px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.section {
    padding: 70px 0;
}

.section-title {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 2rem;
}

.section-description {
    margin: 0 0 35px;
    color: var(--muted);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(
        4,
        minmax(0, 1fr)
    );
    gap: 20px;
}

.course-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 15px 35px
        rgba(15, 23, 42, 0.08);
}

.course-card h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.15rem;
}

.course-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

.course-meta {
    display: block;
    margin-top: 15px;
    color: #475569;
    font-size: 0.85rem;
}

.site-footer {
    padding: 45px 0;
    background: var(--primary);
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    color: #cbd5e1;
}

@media (max-width: 1000px) {

    .courses-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .main-nav {
        display: none;
    }
}

@media (max-width: 600px) {

    .container {
        width: min(
            100% - 24px,
            1180px
        );
    }

    .hero {
        padding: 60px 0;
    }

    .section {
        padding: 50px 0;
    }

    .courses-grid {
        grid-template-columns:
            1fr;
    }
}