body {
    margin: 0;
    padding: 0;
    background-color: white;
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

/* Layout */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
@media (min-width: 992px) {
    .container { width: 970px; }
}
.row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

/* Header */
#dhead { margin-top: 20px; }
#dpic {
    grid-column: span 6;
    text-align: right;
}
#ddesc {
    padding-top: 40px;
    padding-left: 20px;
    grid-column: span 6;
}
@media (max-width: 991px) {
    #dpic { grid-column: span 12; text-align: center; }
    #ddesc { grid-column: span 12; padding-top: 20px; text-align: center; }
}
h1 {
    font-size: 34px;
    font-weight: normal;
    padding: 0;
    margin: 0;
}
h1 .phd {
    color: #0a66c2;
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 0.5px;
}
h2 {
    font-weight: normal;
    font-style: italic;
    color: #999;
    font-size: 18px;
    padding: 0;
    margin: 5px 0 12px 0;
}
@media (min-width: 992px) {
    h2 { max-width: 340px; }
}
#dpic img {
    width: 240px;
    height: 240px;
    border-radius: 120px;
    object-fit: cover;
}

/* Social icons */
#dico { display: inline-flex; gap: 14px; align-items: center; }
@media (max-width: 991px) {
    #dico { justify-content: center; }
}
.iico {
    width: 28px;
    height: 28px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.iico:hover { transform: translateY(-2px); opacity: 0.8; }
#demail {
    margin-top: 12px;
    color: #555;
    opacity: 0;
    transition: opacity 0.7s;
}

/* Divider */
hr {
    height: 1px;
    background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    padding: 0;
    margin: 20px 0;
    border: 0;
}

/* Timeline entries */
.ico {
    grid-column: span 1;
    vertical-align: top;
    border-left: 2px solid #cfcfcf;
    position: relative;
}
.ico img {
    display: block;
    width: 100%;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    border-radius: 5px;
    margin: 2px 0 0 12px;
}
@media (max-width: 991px) {
    .ico img { max-width: 34px; max-height: 34px; margin-left: 8px; }
}
.desc {
    grid-column: span 10;
    vertical-align: top;
    font-size: 17px;
    padding-left: 20px;
    padding-bottom: 22px;
}
.entry-dot {
    position: absolute;
    top: 2px;
    left: -8px;
    width: 10px;
    height: 10px;
    border-radius: 7px;
    background-color: #0a66c2;
    border: 2px solid white;
}
.timespan {
    grid-column: span 1;
    font-size: 14px;
    text-align: right;
    padding-right: 5px;
    color: #bbb;
}

/* Section titles */
.ctitle {
    font-size: 36px;
    margin-bottom: 20px;
    margin-top: 40px;
    font-weight: normal;
}

/* Publications */
.pub {
    font-size: 14px;
    border-left: 4px solid #0a66c2;
    padding: 4px 0 4px 10px;
    margin-bottom: 12px;
}
.pub-title { display: block; color: #333; font-weight: bold; }
.pub-title a { color: #0a66c2; text-decoration: none; }
.pub-title a:hover { text-decoration: underline; }
.pub-venue { display: inline; color: #090; }
.pub-authors { display: block; color: #555; }

/* Featured video / talk cards */
.cardrow {
    grid-column-gap: 12px;
    grid-row-gap: 12px;
    padding-bottom: 30px;
}
.card {
    grid-column: span 3;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 5px 10px 5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.ccimg img {
    border-radius: 4px;
    width: 100%;
    display: block;
}
.cdesc {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}
@media (max-width: 991px) {
    .card { grid-column: span 6; }
}
@media (max-width: 560px) {
    .card { grid-column: span 12; }
}

/* Substack posts */
.post {
    border-left: 4px solid #FF6719;
    padding: 4px 0 4px 12px;
    margin-bottom: 14px;
}
.post-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}
.post-title:hover { color: #FF6719; text-decoration: underline; }
.post-sub { color: #777; font-size: 14px; }

/* Section title inline icon */
.title-ico {
    width: 28px;
    height: 28px;
    vertical-align: -3px;
    margin-right: 8px;
}

/* Community CTA banner */
.cta {
    margin: 30px 0 10px 0;
    padding: 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0E64F5 0%, #6A3DF5 100%);
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cta-title { font-size: 22px; font-weight: bold; }
.cta-sub { font-size: 15px; opacity: 0.9; margin-top: 4px; max-width: 520px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-substack { background: #FF6719; color: white; }
.btn-skool { background: white; color: #111; }
.btn-ico {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

/* Links */
a { color: #0a66c2; }

/* Lists */
li { margin-bottom: 8px; }
