html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
}

header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #ffffff;
}

.page-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
}

.sidebar {
    position: sticky;
    top: 1rem;
    background: #171717;
    border: 1px solid #2c2c2c;
    border-radius: 14px;
    padding: 1rem;
}

.sidebar-title {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1rem;
    font-weight: 700;
}

.sidebar a {
    display: block;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    color: #d0d0d0;
    text-decoration: none;
    background: transparent;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 3rem;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: #a0a0a0;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.quick-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.quick-nav-item {
    background-color: transparent;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.quick-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #777;
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-icon {
    stroke: currentColor;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.quick-nav-item:hover .nav-icon {
    opacity: 1;
}

section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #2a2a2a;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s, transform 0.2s;
}

.content-card:hover {
    border-color: #555;
    transform: translateY(-3px);
}

.thumbnail-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #1a1a1a;
    border-radius: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px dashed #3a3a3a;
    color: #a0a0a0;
    font-size: 0.9rem;
    text-align: center;
}

.card-icon {
    stroke: #888;
    opacity: 0.8;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.card-text {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin: 0;
}

.action-btn {
    display: inline-block;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 0.6rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    margin-top: auto;
}

.action-btn:hover {
    background-color: #4a4a4a;
}

.coming-soon {
    opacity: 0.7;
}

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

    .sidebar {
        position: static;
    }
}

/* --- Index Landing Page Styles --- */
.landing-body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.landing-container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.landing-container h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 3rem;
}

.button-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Reusable Large Round Button / Portal Link */
.image-button {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: none;
    background-color: #1e1e1e;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(39, 148, 230, 0.8);
}

.image-button:hover {
    transform: scale(1.10);
    border: 4px solid #ffffff;
    box-shadow: 0 0px 30px rgba(255, 255, 255, 0.7);
}

.button-label {
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    padding: 0.6rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}