/* General Styles */
body {
    font-family: 'Raleway', sans-serif;
}

p {
    font-family: 'Raleway', sans-serif;
    color: #000000;
    font-size: 16px;
    line-height: 1.6;
}

li {
    font-family: 'Raleway', sans-serif;
    color: #000000;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

code {
    font-size: 16px;
    padding: 0.5rem;
    color: #ffffff;
}

div.sourceCode {
    border-radius: 10px;
}

/* Headings */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: 'Raleway', sans-serif;
    color: #000000;
}

h1, .h1 {
    font-size: 36px !important;
    font-weight: bold;
    margin-bottom: 1rem;
}

h2, .h2 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Links */
p a {
    color: #3B70FE !important;
    text-decoration: none;
}

p a:hover, p a:active, p a:visited {
    color: #000000 !important;
    text-decoration: none;
}

.listing-title a {
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #000000 !important;
    text-decoration: none;
}

.listing-subtitle a {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #000000 !important;
    text-decoration: none;
}

.listing-date::before {
    content: '📅';
}

.listing-reading-time::before {
    content: '🕰️';
}

.listing-colab {
    max-width: 8em;
}

.nav-link {
    font-family: 'Raleway', sans-serif;
    color: #000000;
    font-size: 16px;
    text-decoration: none;
}

.nav-link:hover {
    color: #3B70FE;
}

.nav-link.active .menu-text {
    color: #0a6320 !important;
    font-weight: bold;
}

/* TOC (Sections) nav links */
#TOC .nav-link {
    line-height: 1.3;
}

/* Images and Videos */
.content img, .content video {
    max-width: 100%;
}

.content video {
    max-width: 100%;
    display: block;
    margin: 1.2rem auto;
}

img.thumbnail-image {
    height: 100px;
    width: auto;
    object-fit: contain !important;
    
}

div.quarto-post .thumbnail img {
    margin-top: 0px;
    margin-bottom: 0.4rem;
}

/* Tables */
table {
    max-width: 100%;
    overflow-x: auto;
}

/* Title Block Banner */
#title-block-header.quarto-title-block {
    background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 50%, #0d9488 100%);
}

.quarto-title-banner {
    background: linear-gradient(135deg, #0a2540 0%, #1a3a5c 50%, #0d9488 100%) !important;
    padding: 3rem 0 !important;
    position: relative;
    overflow: hidden;
}

.quarto-title-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.quarto-title-banner .quarto-title .title {
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Titles and Metadata */
#title-block-header .title, .quarto-title .title {
    font-family: 'Raleway', sans-serif;
    color: #ffffff !important;
    font-size: 36px;
    padding-left: 0.5rem;
}

.quarto-title .description {
    font-family: 'Raleway', sans-serif;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 20px;
    font-weight: 400;
    padding-left: 0.5rem;
}

#title-block-header .quarto-title-meta-heading,
#title-block-header .quarto-title-meta-contents,
#title-block-header .quarto-title-meta-contents p,
#title-block-header .quarto-title-meta a {
    color: rgba(255, 255, 255, 0.85) !important;
}

#title-block-header .lead,
#title-block-header p.subtitle,
.quarto-title .subtitle,
.quarto-title .lead {
    color: rgba(255, 255, 255, 0.85) !important;
    padding-left: 0.5rem;
}

div.quarto-post .metadata {
    color: #000000;
    margin-bottom: 0.5em;
    font-size: 16px;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: baseline;
}

/* Navigation */
.navbar-expand-lg .navbar-nav .nav-link {
    color: #000000;
}

.sidebar-navigation a {
    line-height: 2;
    color: #241e1e;
}

/* Sidebar Logo above Title */
.sidebar-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-title::before {
    content: "";
    display: block;
    width: 120px;
    height: 120px;
    background-image: url("images/logo_vectoringai_180.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 0.5rem;
}

/* Breadcrumbs */
.breadcrumb {
    display: none;
}

/* Callouts */
.callout.callout-style-default {
    background-color: #fff;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .content .quarto-banner-title-block {
        color: #ffffff !important;
        margin-top: 20px !important;
    }

    #title-block-header.quarto-title-block.default .quarto-title .title {
        color: #ffffff !important;
        font-size: 24px !important;
    }
}

/* Miscellaneous */
.thumbnail {
    margin: 0px;
}

.body {
    margin: 0px;
}

div#quarto-toc-toggle {
    visibility: hidden;
}

.zindex-over-content, .navbar-title {
    display: none;
}

@media (min-width: 992px) {
    nav.quarto-secondary-nav {
        display: none;
    }
}

/* Hide Quarto post meta (Published date and label) */
.quarto-title-meta,
.quarto-title-meta-heading,
.quarto-title-meta-contents,
.quarto-title-meta .date {
    display: none !important;
}