body {
    margin: 0;
    padding: 0;
    background-color: #2a2a2a;
    font-family: sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #ffffff;
}

.cover-photo {
    width: 100%;
    height: 280px; 
    background-image: url("assets/space.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


a {
    color: #ff9f1c;          /* orange link */
    text-decoration: none;
}

a:visited {
    color: #ff9f1c;
}

a:hover {
    color: #ffd08a;
    text-decoration: underline;
}

a:active {
    color: #ff7a00;
}


/* 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);
}

/* Design */
#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;
}
h2 {
    font-weight: normal;
    font-style: italic;
    color: #999;
    font-size: 18px;
    padding: 0;
    margin: 5px 0 10px 0;
}
@media (min-width: 992px) {
    h2 {
        max-width: 300px;
    }
}
#dpic img {
    width: 240px;
    height: 240px;
    border-radius: 120px;
}
.iico {
    width: 40px;
    height: 40px;
}
#demail {
    margin-top: 10px;
    color: #555;
    opacity: 0;
    transition: opacity 0.7s;
}
hr {
    height: 1px;
    background-color: #333;
    padding: 0;
    margin: 20px 0px 20px 0px;
    border: 0;
}
.ico {
    grid-column: span 1;
    vertical-align: top;
    border-left: 2px solid #555;
    position: relative;
}
.ico img {
    border-radius: 5px;
    width: 100%;
    max-width: 80px;
    margin-left: 10px;
}
.desc {
    grid-column: span 10;
    vertical-align: top;
    font-size: 17px;
    padding-left: 20px;
    padding-bottom: 20px;
}
.entry-dot {
    position: absolute;
    top: 0px;
    left: -8px;
    width: 10px;
    height: 10px;
    border-radius: 7px;
    background-color: #888;
    border: 2px solid #121212;
}
.timespan {
    grid-column: span 1;
    font-size: 14px;
    text-align: right;
    padding-right: 5px;
    color: #bbb;
}
.hassets {
    position: relative;
}
@media (max-width: 991px) {
    .hassets {
        display: none;
    }
}
.hasset {
    position: absolute;
    margin: 0;
    padding: 0;
}
.ctitle {
    font-size: 36px;
    margin-bottom: 20px;
    margin-top: 40px;
}
#featured-talks .row {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    padding-bottom: 30px;
}
.card {
    grid-column: span 3;
    vertical-align: top;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 5px;
    padding-bottom: 10px;
    color: #ffffff;
}

@media (max-width: 991px) {
    .card {
        grid-column: span 6;
    }
    #featured-talks .row {
        grid-column-gap: 5px;
        grid-row-gap: 5px;
    }
}
.card img {
    border-radius: 5px;
    width: 100%;
}
.cdesc {
    height: 30px;
    vertical-align: top;
    margin-bottom: 10px;
    font-size: 15px;
}
@media (max-width: 768px) {
    .cdesc {
        font-size: 14px;
        padding-bottom: 10px;
    }
}
#pet-projects .row {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}
.project {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}
.pico {
    float: left;
    margin-right: 10px;
}
.pend {
    clear: both;
}
.pico img {
    height: 80px;
    border-radius: 5px;
    border: 1px solid #999;
}
.pub {
    font-size: 14px;
    border-left: 4px solid #555;
    padding: 2px 0px 2px 10px;
    margin-bottom: 10px;
}
.pub-title {
    display: inline;
    color: #ddd;
}
.pub-venue {
    display: inline;
    color: #6fcf97;
}
.pub-authors {
    display: block;
    color: #f29999;
}
.tul {
    text-align: center;
    padding: 0;
}
.til {
    display: inline-block;
    padding: 3px 15px 3px 15px;
    margin-bottom: 5px;
}
.tilb {
    border-right: 1px solid #444;
}
.nodot {
    list-style-type: none;
    padding-left: 0;

}


/* =========================
   Top Navigation (Tabbed)
   ========================= */

.top-nav {
    background: linear-gradient(#2f2f2f, #1f1f1f);
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    padding: 0;
    margin-top: 20px;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.top-nav li {
    border-right: 1px solid #3a3a3a;
}

.top-nav li:last-child {
    border-right: none;
}

.top-nav a {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #cfcfcf;
    text-decoration: none;
    background: transparent;
}

.top-nav a:hover {
    background-color: #2a2a2a;
    color: #ffffff;
    text-decoration: none; /* override global hover underline */
}

.top-nav a.active {
    background: linear-gradient(#3a3a3a, #2a2a2a);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}


.site-footer {
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
    color: #bbbbbb;
}

.footer-divider {
    margin: 40px 0 20px;
    border-bottom: 1px solid #444;
}

.site-footer p {
    margin: 6px 0;
}

.site-footer .powered {
    font-size: 13px;
    color: #999999;
}



/* --About section only*/
.about-simple {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px 0;
}

.about-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.about-copy h1 {
    margin: 0;
    font-size: 28px;
}

.about-line {
    margin: 6px 0 14px;
    color: #aab4bc;
    font-size: 16px;
}

.about-icons a {
    margin-right: 12px;
    font-size: 14px;
    color: #c6a785;
    text-decoration: none;
}

.about-icons a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 700px) {
    .about-simple {
        flex-direction: column;
        text-align: center;
    }
}


/* GIF SIDE-BY-SIDE LAYOUT */

.gif-row {
    display: flex;
    gap: 15px;              /* space between gifs */
    margin: 15px 0;
}

.gif-row img {
    width: 55%;             /* each takes half */
    border-radius: 15px;
    display: block;
}


@media (max-width: 700px) {
    .gif-row {
        flex-direction: column;
    }

    .gif-row img {
        width: 100%;
    }
}

/* Home history media sizing */
#history .home-pdf-viewer {
    display: block;
    width: 100%;
    max-width: 860px;
    height: 430px;
    margin: 14px 0;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background: #1e1e1e;
}

#history .home-gif-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
    margin: 10px 0 12px;
}

#history .home-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
    margin-top: 8px;
}

#history .home-gif-grid img,
#history .home-photo-grid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    background: #1e1e1e;
}

@media (max-width: 900px) {
    #history .home-pdf-viewer {
        height: 360px;
    }
}

@media (max-width: 700px) {
    #history .home-gif-grid,
    #history .home-photo-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    #history .home-gif-grid img,
    #history .home-photo-grid img {
        height: auto;
    }

    #history .home-pdf-viewer {
        height: 300px;
    }
}

/* Teaching page */
#teaching-section .teaching-intro {
    margin-bottom: 18px;
}

#teaching-section .teaching-copy {
    margin: 0 0 14px 0;
}

#teaching-section .teaching-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#teaching-section .teaching-gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    background: #1f1f1f;
}

#teaching-section .teaching-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    margin-top: 18px;
}

#teaching-section .teaching-media-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
}

#teaching-section .teaching-media-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #f0f0f0;
}

#teaching-section .teaching-media-card .fb-video {
    margin: 0 auto;
}

#teaching-section .teaching-youtube-wrap {
    width: 100%;
}

#teaching-section .teaching-youtube-wrap iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 10px;
}

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

@media (max-width: 700px) {
    #teaching-section .teaching-gallery {
        grid-template-columns: 1fr;
    }

    #teaching-section .teaching-gallery img {
        height: auto;
    }
}




