/*
Theme Name: Astra Child
Theme URI: https://kontorirott.ee/
Description: Child theme for Astra
Author: Mihkel Tiganik
Author URI: https://kontorirott.ee/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

@import url("../astra/style.css");

/* ========== MVC Tutorial Layout ========== */

/* Make the tutorial area full-width (break out of Astra’s container) */
.mvc-tutorial-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Two-column layout */
.mvc-tutorial-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

/* Sidebar styling */
.mvc-tutorial-sidebar {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
}

/* Content styling */
.mvc-tutorial-content {
    width: 100%;
    padding: 0 1rem;
}

/* For large screens (desktop) */
@media (min-width: 992px) {
    .mvc-tutorial-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .mvc-tutorial-sidebar {
        flex: 0 0 30%; /* 30% width */
        position: sticky;
        top: 100px; /* adjust for your header height */
        height: fit-content;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .mvc-tutorial-content {
        flex: 0 0 70%; /* 70% width */
    }
}

/* Highlight active tutorial */
.mvc-tutorial-sidebar ul li.current a {
    font-weight: bold;
    color: #0073aa;
}

/* Navigation links */
.mvc-tutorial-sidebar .tutorial-navigation {
    margin-top: 1rem;
}

.mvc-tutorial-sidebar .tutorial-navigation a {
    display: inline-block;
    margin-right: 10px;
}
