/* Sphinx Awesome Theme Styles */
:root {
    --sa-primary-color: #34a734;
    --sa-primary-color-dark: #34a734;
    --sa-accent-color: #34a734;
    --sa-text-color: #212121;
    --sa-text-color-light: #34a734;
    --sa-background-color: #ffffff;
    --sa-background-color-alt: hsl(0, 0, 30);
    --sa-sidebar-width: 280px;
    --sa-content-max-width: 1200px;
    --sa-border-color: #e0e0e0;
    --sa-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sa-text-color);
    background-color: var(--sa-background-color);
}

/* Fixed Layout Container */
.sa-container {
    display: flex;
    min-height: 100vh;
    max-width: var(--sa-content-max-width);
    margin: 0 auto;
    background: white;
    box-shadow: var(--sa-shadow);
}

/* Sidebar */
.sa-sidebar {
    width: var(--sa-sidebar-width);
    background: white;
    border-right: 1px solid var(--sa-border-color);
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sa-sidebar-content {
    padding: 1rem;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--sa-border-color);
    margin-bottom: 1rem;
    text-align: center;
}

.sidebar-brand img {
    height: 60px;
    margin-bottom: 0.5rem;
}

.sidebar-brand span {
    font-size: 1.2rem;
    font-weight: 600;
    justify-content: center;
    color: var(--sa-text-color);
}

.sa-sidebar-version {
    background: var(--sa-accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.sa-sidebar-section {
    margin-bottom: 1.5rem;
}

.sa-sidebar-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sa-text-color-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
}

.sa-sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sa-sidebar-section li {
    margin-bottom: 0.25rem;
}

.sa-sidebar-section a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--sa-text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sa-sidebar-section a:hover {
    background: var(--sa-primary-color);
    color: white;
}

/* Main Content */
.sa-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sa-header {
    background: white;
    border-bottom: 1px solid var(--sa-border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    display: none;
    /* Hidden on desktop since we have fixed layout */
}

.sa-content {
    flex: 1;
    padding: 2rem;
    overflow-x: auto;
}

.sa-container-inner {
    max-width: 100%;
}

/* Banner slideshow styles */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 0 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--sa-shadow);
}

.mySlides {
    display: none;
}

.mySlides.fade {
    animation: fade 1s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot:hover,
.dot.active {
    background-color: var(--sa-accent-color);
}

/* Robot Animation */
#robot-container {
    position: relative;
    height: 100px;
    overflow: hidden;
    margin: 2rem 0;
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

#robot {
    position: absolute;
    left: -100px;
    width: 145px;
}

@keyframes moveRobot {
    0% {
        transform: translateX(calc(100vw - var(--sa-sidebar-width)));
    }

    100% {
        transform: translateX(-50px);
    }
}

#robot.move {
    animation: moveRobot 8s linear infinite;
}

#robot img {
    width: 100%;
    cursor: pointer;
}

/* Section Styling */
.section-heading {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin: 3rem 0 2rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-heading .primary {
    color: var(--sa-text-color);
}

.section-heading .accent {
    color: var(--sa-accent-color);
    font-weight: 400;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.content-card {
    background: white;
    border-radius: 200px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 3px #34a734;
    border-color: #34a734;
}

.content-card img {
    width: 70%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.content-card:hover img {
    transform: scale(1.05);
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--sa-accent-color);
    /* font-weight: 500; */
    line-height: 1.4;
}

/* Disclaimer */
.disclaimer {
    background: hsl(0, 0%, 100%);
    border: 1px solid #34a734;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.disclaimer-title {
    font-weight: 700;
    color: #34a734;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disclaimer p {
    color: #212121;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.disclaimer a {
    color: #34a734;
    font-weight: 600;
}

/* Footer */
.sa-footer {
    background: var(--sa-background-color-alt);
    border-top: 1px solid var(--sa-border-color);
    padding: 2rem;
    margin-top: 3rem;
}

.sa-footer-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sa-text-color-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
}

.sa-footer-content p {
    color: var(--sa-text-color-light);
    font-size: 0.875rem;
    line-height: 1.8;
    margin: 0;
}

.sa-footer-content a {
    color: var(--sa-primary-color);
    text-decoration: none;
}

.sa-footer-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sa-container {
        max-width: 100%;
        flex-direction: column;
    }

    .sa-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .sa-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sa-sidebar-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .sa-sidebar-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--sa-text-color);
        margin: 5px 0;
        transition: 0.3s;
    }

    .section-heading {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sa-content {
        padding: 1rem;
    }

    #robot-container {
        height: 80px;
    }

    #robot {
        width: 120px;
        top: 15px;
    }

    @keyframes moveRobot {
        0% {
            transform: translateX(100vw);
        }

        100% {
            transform: translateX(-50px);
        }
    }
}

@media (max-width: 768px) {
    .sidebar-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .content-card {
        padding: 1rem;
    }

    .disclaimer {
        padding: 1rem;
    }
}

/* Hide sidebar toggle on desktop */
.sa-sidebar-toggle {
    display: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Link styles */
a {
    color: var(--sa-primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--sa-primary-color-dark);
}