/* RBTAboutMe - Site Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
    color: #0a58ca;
}

a:hover {
    color: #084298;
}

.navbar-dark .nav-link {
    color: #e8f0f7 !important;
    transition: color 0.2s ease;
}

.navbar-dark .nav-link:hover {
    color: #ffffff !important;
}

.site-shell {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.blogpost h1 {
    font-size: 1rem;
    font-weight: 700;
}

.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.85;
}

.blog-card {
    transition: box-shadow 0.2s ease;
    border-left: 4px solid #0a58ca;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.75rem;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.blog-card .card-body {
    padding: 1.75rem;
}

.blog-post-cover-image {
    float: right;
    width: 150px;
    height: auto;
    margin: 0 1.5rem 1rem 0;
    border-radius: 0.5rem;
}

.blog-post-listing-icon {
    float: left;
    width: 75px;
    height: 75px;
    margin: 0 1rem 0.5rem 0;
    border-radius: 0.25rem;
    object-fit: cover;
}

.card-text {
    overflow: hidden;
}

h1.blogpost {
    font-size: 1.5rem;
    font-weight: 700;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    clear: left;
}

@media (max-width: 576px) {
    .blog-post-cover-image {
        float: none;
        width: 100%;
        max-width: 300px;
        margin: 0 0 1rem 0;
        display: block;
    }
}

.home-intro {
    padding-bottom: 1rem;
    border-bottom: 1px solid #dbe5f1;
}

.home-intro-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

.home-intro-heading {
    flex: 1;
    min-width: 0;
}

.home-avatar-wrap {
    flex: 0 0 auto;
    position: relative;
}

.home-avatar-wrap::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px dashed rgba(10, 47, 107, 0.32);
    filter: blur(0.8px);
    pointer-events: none;
}

.home-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(10, 47, 107, 0.45);
    box-shadow: 0 0 0 1px rgba(10, 47, 107, 0.2), 0 0 12px rgba(10, 47, 107, 0.14);
}

.home-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: #0a2f6b;
}

.home-subtitle {
    margin: 0.35rem 0 0.75rem;
    color: #495057;
    overflow-wrap: anywhere;
}

.home-lede {
    margin-bottom: 0;
    color: #334155;
    overflow-wrap: anywhere;
}

.home-posts-heading {
    margin: 0;
    width: 100%;
    padding: 0.65rem 1rem;
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #eaf2ff;
    background: #0a2f6b;
    border: 1px solid #08305f;
    border-bottom: 0;
    border-radius: 0.5rem 0.5rem 0 0;
}

.home-posts-list {
    margin-bottom: 1rem;
}

.home-posts-list .home-post-card:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.home-posts-list .home-post-card:first-child .card-body {
    border-top: 1px solid #08305f;
}

.home-post-card .card-title a {
    color: #3b82f6;
}

.home-post-card .card-title a:hover {
    color: #084298;
}

.navbar-nav-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-contact-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.navbar-crop-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(13, 110, 253, 0.65);
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.22), 0 0 8px rgba(13, 110, 253, 0.18);
}

@media (max-width: 992px) {
    .navbar-nav-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .navbar-contact-avatar {
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .home-intro-content {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .home-title {
        font-size: 1.75rem;
    }

    .home-avatar {
        width: 92px;
        height: 92px;
    }
}

.about-author-profile {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.about-author-photo-wrap {
    position: relative;
}

.about-author-photo-wrap::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px dashed rgba(10, 47, 107, 0.32);
    filter: blur(0.8px);
    pointer-events: none;
}

.about-author-photo {
    height: auto;
    display: block;
    margin-bottom: 8px;
    border-radius: 50%;
    border: 2px solid rgba(10, 47, 107, 0.45);
    box-shadow: 0 0 0 1px rgba(10, 47, 107, 0.2), 0 0 12px rgba(10, 47, 107, 0.14);
}

.about-author-name {
    display: block;
    font-weight: bold;
}

@media (max-width: 576px) {
    .about-author-profile {
        float: none;
        margin: 0 auto 20px;
        max-width: min(45vw, 160px);
    }
}

.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #212529;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.5rem 1rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.profile-img {
    max-width: 100%;
    height: auto;
}
