
:root {
    --primary: #0755d9;
    --primary-hover: #0645b5;
    --navy: #09265f;
    --text: #17233d;
    --muted: #687791;
    --background: #f5f8fd;
    --border: #e4ebf5;
    --radius: 16px;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    letter-spacing: -.025em;
}

a {
    color: var(--primary);
}

.btn {
    border-radius: 9px;
    font-weight: 600;
    padding: 10px 18px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(22,48,89,.055);
    transition: box-shadow .2s, transform .2s;
}

.card:hover {
    box-shadow: 0 16px 36px rgba(22,48,89,.11);
    transform: translateY(-3px);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.card-img-top {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eaf0fa;
}

.progress {
    height: 9px;
    border-radius: 20px;
    background: #e8eef8;
}

.progress-bar.bg-info {
    background: linear-gradient(
        90deg, #2480ff, #0755d9
    ) !important;
}

.form-control {
    border-radius: 9px;
    border: 1px solid #dce5f3;
}

.page-link {
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

.category-wrapper {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

@media (max-width: 767px) {
    h1 { font-size: 29px; }
    h2 { font-size: 24px; }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .category-wrapper {
        padding: 15px;
    }
}

/* ===== Site layout ===== */

.site-layout {
    margin: 0;
    min-height: 100vh;
    background: #f5f8fd;
    color: #17233d;
}

.site-header {
    position: relative;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5ebf5;
    box-shadow: 0 3px 16px rgba(13, 42, 91, .035);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 76px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none !important;
}

.site-logo-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #0755d9, #3182fa);
    color: #fff;
    font-size: 23px;
    font-weight: 800;
}

.site-logo-text {
    color: #09265f;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    color: #35435f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover {
    color: #0755d9;
}

.site-main {
    min-height: 65vh;
}

.site-content {
    padding-top: 30px;
    padding-bottom: 55px;
}

/* ===== Mobile navigation ===== */

.site-mobile-nav {
    display: none;
    position: relative;
}

.site-mobile-nav summary {
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #e4ebf5;
    border-radius: 10px;
    list-style: none;
}

.site-mobile-nav summary::-webkit-details-marker {
    display: none;
}

.site-mobile-nav summary span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #09265f;
}

.site-mobile-nav nav {
    position: absolute;
    right: 0;
    top: 50px;
    min-width: 210px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(10, 38, 95, .12);
}

.site-mobile-nav nav a {
    display: block;
    padding: 10px 12px;
    color: #17233d;
    text-decoration: none;
    border-radius: 7px;
}

.site-mobile-nav nav a:hover {
    background: #f1f5fc;
}

/* ===== Footer ===== */

.site-footer {
    margin-top: 40px;
    padding: 65px 0 0;
    color: #c5d3ed;
    background: linear-gradient(
        135deg,
        #09265f 0%,
        #071638 100%
    );
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 55px;
    padding-bottom: 55px;
}

.site-footer-logo {
    font-size: 25px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.site-footer-about p {
    max-width: 370px;
    font-size: 14px;
    line-height: 1.8;
    color: #c5d3ed;
}

.site-footer h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 21px;
}

.site-footer-grid a {
    display: block;
    width: fit-content;
    color: #c5d3ed;
    text-decoration: none;
    margin-bottom: 13px;
    font-size: 14px;
}

.site-footer-grid a:hover {
    color: #fff;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 13px;
    color: #91a8d3;
}

/* ===== Responsive ===== */

@media (max-width: 767px) {
    .site-header-inner {
        min-height: 66px;
    }

    .site-nav {
        display: none;
    }

    .site-mobile-nav {
        display: block;
    }

    .site-content {
        padding-top: 20px;
        padding-bottom: 35px;
    }

    .site-footer {
        padding-top: 40px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 35px;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 17px 0;
    }
}
