/* Make navbar transparent on authors pages to overlay hero */
.navbar.is-dark {
    background-color: transparent !important;
    box-shadow: none !important;
}

.navbar.is-dark .navbar-brand,
.navbar.is-dark .navbar-menu {
    background-color: transparent !important;
}

/* When scrolled, add semi-transparent background */
.navbar.is-dark.navbar-scrolled {
    background-color: rgba(34, 34, 34, 0.65) !important;
}

/* Remove any top spacing above hero on authors pages */
body:has(.intro-header) {
    padding-top: 0 !important;
}

.intro-header {
    margin-top: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
    color: white;
    background-repeat: no-repeat;
    background-image: url(https://images.talkpython.fm/static/img/authors/author-hero-4.webp);
    background-color: white;
    background-size: cover;
    border-bottom: 1px solid #444;
    position: relative;
    top: 0;
}

.author-details .intro-header {
    background-repeat: no-repeat;
    background-image: url(https://images.talkpython.fm/static/img/authors/author-hero-2.webp);
    background-color: white;
    background-size: cover;
}

.intro-message {
    position: relative;
    padding-bottom: 10%;
    padding-top: calc(10% + 60px);
}

.header-bg {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
    max-width: 650px;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
}

.author-details .header-bg {
    background-color: transparent;
    height: 75px;
}

.header-bg h1 {
    color: white;
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 5px;
}

.header-bg h2 {
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 20px;
    color: white;
}

.author-details h1 {
    margin-top: 10px;
    margin-bottom: 0px;
    font-size: 2rem;
    font-weight: 300;
}

.author-details .sub_h1.social {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 20px;
    font-weight: 300;
    text-align: center;
}

.author-details .sub_h1.social a {
    display: inline-block;
    font-size: 20px;
    margin-left: 5px;
    margin-right: 5px;
}

.author-details .sub_h1 {
    margin-top: 0px;
    margin-bottom: 40px;
    font-size: 20px;
    font-weight: 300;
    text-align: center;
}

.author-section {
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.author-details .bio {
    font-size: 16px;
}

.author {
    margin-top: 20px;
    text-align: center;
}

a {
    color: #2aabd2;
}

.author a {
    display: block;
}

.author a.more {
    display: inline-block;
}

.author .row-pic {
    text-align: center;
    vertical-align: middle;
}

.author-in-grid {
    text-align: center;
    padding: 30px;
}

.author-in-grid img.is-rounded {
    border-radius: 50%;
    max-width: 100%;
}

.author-in-grid .author-name {
    margin-top: 10px;
    font-size: 16px;
    display: block;
}

.author .bio {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    min-height: 150px;
    font-size: 14px;
}

.author .bio .other {
    justify-content: normal;
}

.author .bio .summary {
    align-self: flex-end;
}

.intro {
    font-weight: 200;
    font-size: 18px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.author-details h2 {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2aabd2;
}

.course-list {
    text-align: center;
    margin-bottom: 40px;
}

.course-in-list {
    min-height: 240px;
}

a.back-to-authors:hover {
    color: #2aabd2;
}

.back-to-authors {
    font-size: 11px;
    padding: 4px 20px;
    color: #aaa;
    background: #444;
    display: flex;
    align-items: center;
    text-align: left;
    line-height: 1;
}

.back-to-authors i {
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.author-image {
    text-align: center;
}

.author-image img {
    max-width: 200px;
    margin-top: 20px;
}

.author-image img.is-rounded {
    border-radius: 50%;
}