
/* Headings styling */
h1, h2, h3, h4, h5, h6 {
    color: #003D6E; 
}

h3, h4, h5, h6 {
    color: #005397; 
}

/* Gallery container */
.nbsphinx-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px 20px; 
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Each gallery item */
.nbsphinx-gallery > a {
    padding: 5px;
    border: 2px solid rgba(0, 0, 0, 0.298);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease, border-color 0.2s ease; 
    position: relative; 
    overflow: hidden; 
}

/* Hover on gallery item */
.nbsphinx-gallery > a:hover {
    border-color: #003D6E; 
    transform: scale(1.02); 
    z-index: 10;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Image gallery item */
.nbsphinx-gallery img {
    max-width: 100%;
    max-height: 100%;
}

.nbsphinx-gallery > a > div:first-child {
    display: flex;
    align-items: start;
    justify-content: center;
    height: 120px;
    margin-bottom: 5px;
}

.nbsphinx-gallery > a:hover::after {
    content: ''; 
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2); 
    z-index: -1; 
}

/* project name styling */
.wy-side-nav-search .icon-home,
.wy-side-nav-search .icon-home + span {
    color: #003D6E !important; 
}

a:hover {
    color: #ff8c00; 
    transition:
        color 0.5s ease;
}

:root {
    --sd-color-card: #ffffff;
    --sd-color-card-hover: #e1f0fc;
    --sd-color-card-border: rgba(0, 0, 0, 0.125);
    --sd-color-card-border-hover: #003D6E;
}

.sd-card {
    background-color: var(--sd-color-card);
    border: 1px solid var(--sd-color-card-border);
    border-radius: 10px;
    transition: 
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease-in-out,
        box-shadow 0.2s ease;
}

.custom-sd-card {
    background-color: var(--sd-color-card);
    border: 1px solid var(--sd-color-card-border);
    border-radius: 15px;
    transition: 
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease-in-out,
        box-shadow 0.2s ease;
}

.custom-sd-card:hover {
    background-color: var(--sd-color-card-hover);
    border-color: var(--sd-color-card-border-hover);
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quick-link-button {
    background-color: var(--sd-color-card) !important;
    border: 2px solid rgba(0, 0, 0, 0.298) !important;
    border-radius: 20px;
    transition:
        background-color 0.5s ease,
        border-color 0.5s ease,
        transform 0.2s ease-in-out,
        box-shadow 0.5s ease,
        color 0.5s ease;
    align-items: center;
    justify-content: center; 
    text-align: center;
    color: #003D6E !important;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 12px;
}

.quick-link-button:hover {
    background-color: var(--sd-color-card-hover) !important;
    border-color: var(--sd-color-card-border-hover) !important;
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: #003D6E !important;
    transition:
        background-color 0.5s ease,
        border-color 0.5s ease,
        transform 0.2s ease-in-out,
        box-shadow 0.5s ease,
        color 0.5s ease;
}

.wy-nav-top a {
    color: #003D6E; 
}

.wy-nav-side-toggle span,
.wy-nav-side-toggle:before,
.wy-nav-side-toggle:after {
    background-color: #003D6E; 
}

.fa-bars {
    color: #003D6E; 
}

.sd-tab-label {
    color: #003D6E !important;
}

.wy-nav-content {
    max-width: none;
    background-color: white;
    margin-left: 5px; 
    margin-right: 5px; 
}

.wy-nav-content-wrap {
    background-color: white;
}

.logo-embed-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-embed-container .logo-container {
    margin: 0 auto;
    max-width: 500px;
}