:root {
    --khr-bg: #0f172a;
    --khr-bg-soft: #111827;
    --khr-card: #1e293b;
    --khr-text: #f8fafc;
    --khr-muted: #cbd5e1;
    --khr-accent: #38bdf8;
    --khr-accent-dark: #0284c7;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f8fafc;
    color: #0f172a;
}

.khr-main {
    flex: 1 0 auto;
}

.khr-footer {
    flex-shrink: 0;
}

.khr-navbar {
    background: #0f172a;
}

.khr-navbar .navbar-brand,
.khr-navbar .nav-link {
    color: #f8fafc;
}

.khr-navbar .nav-link:hover {
    color: var(--khr-accent);
}

.khr-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.28), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #111827 50%, #020617 100%);
    color: var(--khr-text);
    padding: 110px 0;
}

.khr-hero-art {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.98) 0%,
            rgba(15, 23, 42, 0.82) 28%,
            rgba(15, 23, 42, 0.35) 48%,
            rgba(15, 23, 42, 0.05) 100%
        ),
        var(--hero-logo);

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;

    opacity: 1;
    pointer-events: none;
}

.khr-hero .container {
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}

.khr-eyebrow {
    color: var(--khr-accent);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.khr-hero-subtitle {
    color: var(--khr-muted);
    font-size: 1.35rem;
}

.khr-hero-text {
    max-width: 760px;
    color: var(--khr-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.khr-section {
    padding: 80px 0;
}

.khr-card {
    height: 100%;
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.khr-card h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.khr-card p {
    color: #475569;
    line-height: 1.7;
}

.khr-page {
    padding: 80px 0;
    min-height: 70vh;
}

.khr-footer {
    padding: 32px 0;
    background: #020617;
    color: #f8fafc;
}

.khr-page h1 {
    color: #0f172a;
}

.khr-page .lead {
    color: #64748b;
    max-width: 850px;
    margin: 0 auto;
}

.khr-list {
    padding-left: 1.2rem;
    color: #475569;
    line-height: 1.7;
}

.khr-list li + li {
    margin-top: 0.5rem;
}

.khr-mascot {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.28));
}

.khr-error-page {
    min-height: 78vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 32%),
        linear-gradient(135deg, #0f172a 0%, #111827 50%, #020617 100%);
    color: var(--khr-text);
    padding: 90px 0;
}

.khr-error-text {
    max-width: 720px;
    color: var(--khr-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.khr-error-mascot {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 32px;
    opacity: 0.96;
    mix-blend-mode: lighten;
    filter: drop-shadow(0 0 45px rgba(56, 189, 248, 0.35));
}

.khr-error-mascot-wrap {
    display: inline-block;
    padding: 18px;
    border-radius: 36px;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.16), transparent 68%);
}

.khr-author {
    padding: 80px 0;
    background: #f8fafc;
}

.khr-author-card {
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 410px;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

.khr-author-image {
    position: relative;
    overflow: hidden;
}

.khr-author-image img {
    width: 118%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.khr-author-content {
    position: relative;
    z-index: 2;
    margin-left: -70px;
    padding: 58px 64px 42px 92px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(255, 255, 255, 0.94) 18%,
        #ffffff 42%
    );
}

.khr-author-eyebrow {
    margin-bottom: 10px;
    color: var(--khr-accent-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.khr-author-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 2.45rem;
    font-weight: 800;
    line-height: 1.1;
}

.khr-author-degree {
    margin-bottom: 24px;
    color: var(--khr-accent-dark);
    font-size: 1.15rem;
    font-weight: 600;
}

.khr-author-text {
    max-width: 660px;
    margin-bottom: 34px;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.75;
}

.khr-author-stats {
    display: flex;
    justify-content: space-between;
}

.khr-author-stat {
    flex: 1;
    min-width: 120px;
}

.khr-author-stat:last-child {
    border-right: none;
}

.khr-author-stat strong {
    display: block;
    color: #0f172a;
    font-size: 1.24rem;
    font-weight: 800;
    line-height: 1.15;
}

.khr-author-stat span {
    display: block;
    margin-top: 5px;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .khr-author {
        padding: 48px 0;
    }

    .khr-author-card {
        display: block;
        min-height: auto;
        border-radius: 22px;
    }

    .khr-author-image {
        height: auto;
        max-height: none;
        overflow: hidden;
    }

    .khr-author-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .khr-author-content {
        margin-left: 0;
        padding: 32px 24px 28px;
        background: #ffffff;
    }

    .khr-author-title {
        font-size: 2rem;
    }

    .khr-author-text {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 28px;
    }

    .khr-author-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px;
        padding-top: 22px;
    }

    .khr-author-stat {
        min-width: 0;
        padding: 0 8px;
        border-right: none;
    }
}

@media (max-width: 420px) {
    .khr-author-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.khr-wip-card {
    padding: 48px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.khr-wip-mascot {
    display: block;
    max-width: 420px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 24px;
}

@media (max-width: 992px) {
    .khr-wip-card {
        padding: 32px 24px;
    }

    .khr-wip-mascot {
        max-width: 320px;
    }
}

.khr-wip-mascot-wrap {
    position: relative;
    display: inline-block;
    border-radius: 24px;
    overflow: hidden;
}

.khr-wip-mascot-wrap::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            ellipse at center,
            rgba(255,255,255,0) 68%,
            rgba(255,255,255,0.65) 88%,
            rgba(255,255,255,1) 100%
        );

    pointer-events: none;
}

.khr-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.khr-card-link:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13);
}

.khr-card-link:hover h2 {
    color: var(--khr-accent-dark);
}

.khr-news-title-link {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.khr-news-title-link:hover {
    color: var(--khr-accent-dark);
}