/* ELLLO A2Z v004 fixes
   - Basic blue header aligned with page content
   - Same dropdown/search nav on module index pages
   - Tutorial aside width matches module index pages
*/

.header {
    background: #1a3664 !important;
    color: #fff;
    padding: 0 !important;
}

.header > .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 32px 16px !important;
}

.header img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

/* Keep nav and content on the same horizontal alignment. */
.nav-bar > .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Tutorial pages: use the same 3:1 content/sidebar proportion as index pages. */
@media (min-width: 900px) {
    body.a2z-tutorial .content > .container {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
        gap: 32px;
        align-items: start;
    }
    body.a2z-tutorial .main,
    body.a2z-tutorial .aside {
        float: none !important;
        width: auto !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 899px) {
    .header > .container {
        padding: 22px 16px !important;
    }
    .header img {
        width: 150px;
    }
}

/* v005: Standard sidebar card formatting on A2Z tutorial pages. */
body.a2z-tutorial .aside .lesson-card {
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #fff !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

body.a2z-tutorial .aside .lesson-card > img,
body.a2z-tutorial .aside .lesson-card > a.thumb,
body.a2z-tutorial .aside .lesson-card > a.thumb img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

body.a2z-tutorial .aside .lesson-card .card-body {
    padding: 14px 16px 16px !important;
}

body.a2z-tutorial .aside .lesson-card .card-title {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

body.a2z-tutorial .aside .lesson-card .card-title a {
    font-weight: 700 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

body.a2z-tutorial .aside .lesson-card .card-body > p:not(.card-title) {
    margin: 0 !important;
    padding: 0 !important;
    font-size: .9rem !important;
    line-height: 1.45 !important;
    color: #555 !important;
}
