/* GLOBAL ---------------------------------------------------------- */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f4f5f7;
    color: #222;
}

/* MAIN LAYOUT ------------------------------------------------------ */
.container {
    display: flex;
    min-height: 100vh;      /* Ensures sidebar always same height */
}

/* SIDEBAR ---------------------------------------------------------- */
.sidebar {
    width: 360px;
    padding: 24px 20px;
    background-color: #fff;
    border-right: 1px solid #e5e5e5;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-sizing: border-box;
}

/* PHOTO CARD */
.photo-card {
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.sidebar-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
}

/* NAME + TITLE */
.sidebar-name {
    text-align: center;
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 6px;
}

.sidebar-title {
    text-align: center;
    font-size: 14px;
    margin-bottom: 24px;
    color: #555;
}

/* SIDEBAR CONTENT */
.sidebar-content {
    width: 100%;
    margin-top: 10px;
}

.sidebar-content h3 {
    font-size: 17px;
    margin: 16px 0 6px;
    color: #111;
}

.sidebar-content p {
    line-height: 1.6;
    margin: 6px 0;
}

/* LINKS + NAV */
.nav-link {
    font-size: 15px;
    color: #0056d6;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 3px 0;
}

.nav-link:hover {
    color: #003ea6;
    padding-left: 3px;
}

.sidebar-divider {
    border-bottom: 1px solid #d3d5da;
    margin: 18px 0;
}

/* MAIN CONTENT ------------------------------------------------------ */
.content {
    margin-left: 260px;   /* same as sidebar width */
    padding: 40px 40px;   /* reduced padding */
    max-width: 1100px;    /* wider content area */
    width: calc(100% - 260px);
    box-sizing: border-box;
}

.content h1 {
    font-size: 32px;
    margin-bottom: 4px;
}

.intro-text {
    color: #555;
    margin-bottom: 28px;
}

.feed-item {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e6ea;
}

/* =======================================
      MOBILE RESPONSIVE LAYOUT
   ======================================= */
@media (max-width: 768px) {

    .container {
        display: block;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 28px 20px;
    }

    .content {
        margin: 0;
        padding: 28px 20px;
    }

    .photo-card {
        justify-content: center;
    }

    .sidebar-photo {
        width: 160px;
        height: 160px;
    }

    .sidebar-name,
    .sidebar-title,
    .sidebar-content {
        text-align: center;
    }
}
/* RIGHT COLUMN (TOC) ------------------------------------------------ */

.right-column {
    width: 220px;
    padding: 30px 20px;
    margin-left: 20px;
    font-size: 15px;
    position: sticky;
    top: 40px; /* stays visible as user scrolls */
    height: fit-content;
}

.right-column h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.right-column a {
    display: block;
    margin: 6px 0;
    color: #0056d6;
    text-decoration: none;
    line-height: 1.5;
}

.right-column a:hover {
    text-decoration: underline;
}

/* Hide TOC on small screens (mobile/tablets) */
@media (max-width: 1024px) {
    .right-column {
        display: none;
    }
}