*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #f3f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4fa;
    --surface-tint: #f7fafc;
    --text: #17263c;
    --muted: #5d6f85;
    --border: #d7e3ef;
    --primary: #2c5b8f;
    --primary-dark: #1d3f66;
    --accent: #6eaee0;
    --shadow: 0 18px 40px rgba(23, 38, 60, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1240px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f7fafe 0%, #edf3f8 100%);
    color: var(--text);
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(215, 227, 239, 0.9);
}

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

.site-brand {
    display: inline-flex;
    align-items: center;
}

.site-logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a,
.mobile-menu a {
    padding: 0.85rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active,
.mobile-menu a:hover {
    background: var(--surface-soft);
    color: var(--primary-dark);
}

.mobile-nav-toggle {
    display: none;
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 0.8rem 1rem;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--border);
    background: #fff;
}

.mobile-menu.is-open {
    display: grid;
    gap: 0.5rem;
}


.portal-page {
    padding-bottom: 4rem;
}

.portal-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 0;
}

.hero-shell {
    position: relative;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: stretch;
}

.hero-copy {
    position: relative;
    z-index: 3;
    padding: 4.25rem 2rem 8rem 0;
    max-width: 690px;
}
.hero-copy-tasks {
    position: relative;
    z-index: 3;
    padding: 0.25rem 2rem 8rem 0;
    max-width: 690px;
}
.hero-image-wrap {
    position: relative;
    min-height: 660px;
    overflow: hidden;
}

.hero-image-wrap-tasks {
    top: -173px;
    position: relative;
    min-height: 660px;
    overflow: hidden;
}
.hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            90deg,
            rgba(247, 250, 254, 1) 0%,
            rgba(247, 250, 254, 0.94) 4%,
            rgba(247, 250, 254, 0.82) 10%,
            rgba(247, 250, 254, 0.58) 16%,
            rgba(247, 250, 254, 0.28) 22%,
            rgba(247, 250, 254, 0.08) 28%,
            rgba(247, 250, 254, 0) 34%
        );
}
.hero-image-tasks{
    width: 721px;
    height: 492px;
    margin-top: 140px;
    left: -12px;
    object-fit: cover;
    object-position: left center;
    position: absolute;
    
    
}
.hero-image {
    width: 100%;
    height: 100%;
    min-height: 660px;
    object-fit: cover;
    object-position: left center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.95rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #e8eff8;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    line-height: 1.12;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.8rem);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.9rem, 3vw, 3rem);
    margin-bottom: 0.9rem;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.hero-text,
.section-heading p,
.topic-card p,
.game-card p,
.start-here-panel p,
.site-footer p,
.quick-link-text small {
    color: var(--muted);
}

.hero-text {
    max-width: 640px;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.7rem 0 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.95rem 1.25rem;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, #4e93c8, #3b78af);
    color: #fff;
}

.button-primary:hover {
    background: linear-gradient(135deg, #447fae, #356b98);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-dark);
    border: 1px solid var(--border);
}

.hero-points {
    display: grid;
    gap: 0.55rem;
    padding: 0;
    margin: 1.35rem 0 0;
    list-style: none;
}

.hero-points li {
    position: relative;
    padding-left: 1.45rem;
    color: var(--primary-dark);
    font-size: 0.98rem;
    font-weight: 600;
}

.hero-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #4b94cc;
    font-weight: 800;
}

.hero-overlap {
    position: relative;
    margin-top: -76px;
    z-index: 10;
}

.hero-overlap-card {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(215, 227, 239, 0.95);
    box-shadow: var(--shadow);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.topics-area {
    padding: 2.2rem;
}

.start-here-panel {
    padding: 2.2rem;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
    border-left: 1px solid var(--border);
}

.section {
    padding: 2.5rem 0 0;
}

.section-light {
    padding-top: 3rem;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 1.5rem;
}

.section-heading.compact {
    margin-bottom: 1.5rem;
}

.topic-grid,
.concern-grid,
.game-grid {
    display: grid;
    gap: 1rem;
}

.topic-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.topic-card,
.game-card,
.concern-card,
.tips-card,
.beginner-card,
.quick-link-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(215, 227, 239, 0.95);
    box-shadow: 0 10px 24px rgba(23, 38, 60, 0.05);
    border-radius: 18px;
}

.topic-card,
.game-card {
    padding: 1.35rem;
}

.topic-card-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.7rem;
}

.topic-list,
.tips-list,
.site-footer ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
}

.topic-list li,
.tips-list li,
.site-footer li {
    margin-bottom: 0.45rem;
}

.text-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 800;
    color: var(--primary);
}

.quick-links {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.quick-link-card {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.quick-link-card:hover,
.concern-card:hover,
.topic-card:hover,
.game-card:hover {
    transform: translateY(-2px);
    border-color: #c4d7e8;
}

.quick-link-icon,
.topic-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f8fbff;
    font-size: 1.3rem;
    box-shadow: inset 0 0 0 1px var(--border);
}

.quick-link-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.quick-link-text small {
    display: block;
    line-height: 1.45;
}

.concern-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    min-height: 84px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.concern-title {
    font-weight: 800;
}

.concern-arrow {
    color: var(--primary);
    font-size: 1.2rem;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.tips-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.2rem;
}

.tips-card,
.beginner-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(215, 227, 239, 0.95);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.beginner-links {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.beginner-links a {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: var(--surface-soft);
    font-weight: 800;
    color: var(--primary-dark);
}

.site-footer {
    margin-top: 4rem;
    padding: 2.2rem 0 3rem;
    background: #162334;
    color: #e8f0f8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 1.5rem;
}

.site-footer h3,
.site-footer h4 {
    margin-bottom: 0.8rem;
}

.site-footer a {
    color: #d6e6f7;
}

.site-footer ul {
    padding-left: 1rem;
}

/* Minecraft characters page */

.character-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.character-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.35rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(215, 227, 239, 0.95);
    box-shadow: 0 10px 24px rgba(23, 38, 60, 0.05);
    border-radius: 18px;
}

.character-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 16px;
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px var(--border);
    min-height: 140px;
}

.character-image {
    width: 100%;
    max-width: 110px;
    height: auto;
    object-fit: contain;
}

.character-content h3 {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    color: var(--text);
}

.character-content p {
    margin: 0;
    color: var(--muted);
}

.character-label {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.guide-jump-links a.is-active {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 1180px) {
    .hero-shell,
    .hero-overlap-card,
    .concern-grid,
    .tips-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-copy {
        max-width: none;
        padding: 2rem 0 1.5rem;
    }

    .hero-image-wrap,
    .hero-image {
        min-height: 420px;
    }

    .hero-image-wrap::before {
        background: linear-gradient(
            180deg,
            rgba(247, 250, 254, 0.35) 0%,
            rgba(247, 250, 254, 0.08) 25%,
            rgba(247, 250, 254, 0) 45%
        );
    }

    .hero-overlap {
        margin-top: 1rem;
    }

    .start-here-panel {
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 900px) {
    .character-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .site-logo-image {
        height: 42px;
    }

    .portal-hero {
        padding-top: 1rem;
    }

    .hero-shell {
        min-height: auto;
    }

    .hero-copy,
    .topics-area,
    .start-here-panel,
    .tips-card,
    .beginner-card {
        padding: 1.4rem;
    }

    .topic-grid-home,
    .concern-grid,
    .game-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-wrap,
    .hero-image {
        min-height: 300px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .site-header-inner {
        min-height: 70px;
    }

    .container {
        width: min(var(--container), calc(100% - 1rem));
    }
}

@media (max-width: 640px) {
    .character-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .character-media {
        min-height: 120px;
    }

    .character-image {
        max-width: 96px;
    }

    .character-label {
        margin-left: auto;
        margin-right: auto;
    }
}
