/* =========================================================
   TUTORIAL SUB HEADER
========================================================= */

.tutorial-menu {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    margin: 0;
    padding: 0;
}

.tutorial-menu a {
    display: block;

    color: #222;
    text-decoration: none;

    font-size: 17px;

    padding: 14px 18px;

    border-right: 1px solid #ddd;

    transition: color 0.2s ease;
}

.tutorial-menu a:first-child {
    border-left: 1px solid #ddd;
}

.tutorial-menu a:hover {
    color: #007bff;
}

.tutorial-menu a.active {
    color: #007bff;
    font-weight: 600;
}


/* =========================================================
   PAGE TITLE
========================================================= */

.tutorial-page-title {
    text-align: center;

    font-size: 40px;
    font-weight: 700;

    color: #4935a5;

    padding: 25px 0;
}


/* =========================================================
   TUTORIAL LAYOUT
========================================================= */

.tutorial-layout {
    width: 92%;
    max-width: 1600px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 320px 1fr;

    gap: 28px;

    align-items: start;
}


/* =========================================================
   SIDEBAR
========================================================= */

.tutorial-sidebar {
    width: 100%;

    border: 1px solid #ddd;

    background: #fff;
}


/* Sidebar parent */

.sidebar-menu-item {
    border-bottom: 1px solid #ddd;
}


/* Parent menu button */

.sidebar-menu-header {
    width: 100%;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 14px 16px;

    background: #f5f5f5;

    border: 0;

    cursor: pointer;

    font-size: 16px;
    font-weight: 600;

    text-align: left;

    color: #111;
}

.sidebar-menu-header:hover {
    background: #eeeeee;
}


/* Arrow */

.sidebar-arrow {
    font-size: 14px;

    transition: transform 0.2s ease;
}


/* Open arrow */

.sidebar-menu-item.open .sidebar-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   SIDEBAR SUBMENU
========================================================= */

.sidebar-submenu {
    display: none;

    background: #fff;
}

.sidebar-menu-item.open .sidebar-submenu {
    display: block;
}


/* Sidebar links */

.sidebar-submenu a {
    display: block;

    padding: 10px 20px;

    color: #222;

    text-decoration: none;

    font-size: 15px;

    border-top: 1px solid #eee;
}

.sidebar-submenu a:hover {
    background: #f5f5f5;

    color: #007bff;
}

.sidebar-submenu a.active {
    background: #007bff;

    color: #fff;

    font-weight: 600;
}


/* =========================================================
   CONTENT
========================================================= */

.tutorial-main-content {
    min-width: 0;
}


.content-card {
    width: 100%;

    border: 1px solid #ddd;

    background: #fff;

    padding: 28px 32px;

    box-sizing: border-box;
}


/* =========================================================
   CONTENT ITEM
========================================================= */

.content-item {
    margin-bottom: 30px;
}


/* Content heading */

.content-heading {
    font-size: 28px;

    font-weight: 600;

    padding-bottom: 12px;

    margin-bottom: 20px;

    border-bottom: 2px solid #007bff;
}


/* Content data */

.content-data {
    font-size: 17px;

    line-height: 1.7;

    color: #222;
}


/* Content example */

.content-example {
    margin-top: 20px;

    padding: 15px;

    background: #f7f7f7;

    border-left: 4px solid #007bff;

    overflow-x: auto;
}


/* =========================================================
   HOME PAGE
========================================================= */

.banner-scroll {
    width: 100%;

    overflow: hidden;

    margin: 5px 0;
}

.banner-scroll marquee {
    font-size: 20px;

    font-weight: bold;

    color: #222;
}


.banner-container {
    width: 100%;

    text-align: center;

    margin: 5px 0 10px;
}

.banner-image {
    width: 830px;

    max-width: 100%;

    height: auto;

    display: inline-block;
}


.youtube-scroll {
    width: 830px;

    max-width: 100%;

    margin: 0 auto 5px;
}

.youtube-scroll marquee {
    font-size: 20px;

    font-weight: bold;
}

.youtube-scroll a {
    color: #007bff;

    text-decoration: none;
}

.youtube-scroll a:hover {
    text-decoration: underline;
}


/* =========================================================
   VIDEO
========================================================= */

.video-section {
    width: 830px;

    max-width: 100%;

    margin: 0 auto;

    border: 1px solid #ddd;

    padding: 10px;
}

.video-title {
    text-align: center;

    font-size: 20px;

    margin: 5px 0 15px;

    padding-bottom: 8px;

    border-bottom: 1px solid #007bff;
}

.video-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 5px;
}

.video-card {
    overflow: hidden;
}

.video-card iframe {
    width: 100%;

    height: 125px;

    border: 0;
}

.video-card video {
    width: 100%;

    height: 125px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .tutorial-layout {
        width: 95%;

        grid-template-columns: 250px 1fr;

        gap: 15px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .tutorial-layout {
        width: 95%;

        grid-template-columns: 1fr;
    }

    .tutorial-menu {
        justify-content: flex-start;
    }

    .tutorial-page-title {
        font-size: 32px;
    }

    .content-card {
        padding: 20px;
    }
}


@media (max-width: 600px) {

    .video-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-menu a {
        font-size: 15px;

        padding: 10px 12px;
    }
}

/* =========================================================
   TUTORIAL COMMON STYLES
   ========================================================= */


/* =========================================================
   TOP TUTORIAL MENU
   ========================================================= */

.tutorial-menu {
    background: #fff;
    border-bottom: 1px solid #ddd;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    padding: 0;
}

.tutorial-menu a {
    color: #222;
    text-decoration: none;

    font-size: 17px;

    padding: 14px 18px;

    border-right: 1px solid #ddd;

    transition: all 0.2s ease;
}

.tutorial-menu a:first-child {
    border-left: 1px solid #ddd;
}

.tutorial-menu a:hover {
    color: #007bff;
}

.tutorial-menu a.active {
    color: #007bff;
    font-weight: 600;
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.tutorial-page-title {
    text-align: center;

    font-size: 40px;
    font-weight: 700;

    color: #4935a5;

    padding: 25px 0;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.tutorial-layout {

    width: calc(100% - 140px);

    max-width: 1650px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 320px 1fr;

    gap: 30px;

    align-items: start;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.tutorial-sidebar {

    width: 100%;

    border: 1px solid #ddd;

    background: #fff;

    box-sizing: border-box;
}


/* =========================================================
   SIDEBAR MENU ITEM
   ========================================================= */

.sidebar-menu-item {

    width: 100%;

    border-bottom: 1px solid #ddd;

    box-sizing: border-box;
}

.sidebar-menu-item:last-child {
    border-bottom: none;
}


/* =========================================================
   SIDEBAR BUTTON
   ========================================================= */

.sidebar-menu-button {

    width: 100%;

    min-height: 55px;

    padding: 0 16px;

    border: none;

    background: #f7f7f7;

    color: #222;

    display: flex;

    align-items: center;

    justify-content: space-between;

    text-align: left;

    cursor: pointer;

    font-size: 17px;

    font-family: inherit;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-menu-button:hover {

    background: #f0f0f0;

    color: #007bff;
}


/* =========================================================
   SIDEBAR MENU NAME
   ========================================================= */

.sidebar-menu-name {

    flex: 1;

    line-height: 1.4;
}


/* =========================================================
   SIDEBAR ARROW
   ========================================================= */

.sidebar-arrow {

    font-size: 13px;

    margin-left: 10px;

    transition: transform 0.2s ease;
}

.sidebar-arrow.rotate {

    transform: rotate(180deg);
}


/* =========================================================
   SIDEBAR SUBMENU
   ========================================================= */

.sidebar-submenu {

    display: none;

    background: #fff;
}

.sidebar-submenu.open {

    display: block;
}


/* =========================================================
   SIDEBAR SUBMENU LINK
   ========================================================= */

.sidebar-submenu-link {

    display: block;

    padding: 12px 18px 12px 30px;

    border-top: 1px solid #eee;

    color: #333;

    text-decoration: none;

    font-size: 15px;

    line-height: 1.4;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-submenu-link:hover {

    background: #f5f5f5;

    color: #007bff;
}

.sidebar-submenu-link.active {

    background: #007bff;

    color: #fff;

    font-weight: 600;
}


.sidebar-menu-button.active-leaf {

    background: #007bff;

    color: #fff;

    font-weight: 600;
}

a.sidebar-menu-button {

    text-decoration: none;
}


/* =========================================================
   EMPTY SIDEBAR
   ========================================================= */

.sidebar-empty {

    padding: 20px;

    text-align: center;

    color: #777;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.tutorial-main-content {

    min-width: 0;

    width: 100%;
}


/* =========================================================
   CONTENT CARD
   ========================================================= */

.content-card {

    width: 100%;

    border: 1px solid #ddd;

    background: #fff;

    padding: 30px;

    box-sizing: border-box;
}


/* =========================================================
   CONTENT ITEM
   ========================================================= */

.content-item {

    margin-bottom: 25px;
}


/* =========================================================
   CONTENT HEADING
   ========================================================= */

.content-heading {

    font-size: 28px;

    font-weight: 500;

    color: #111;

    padding-bottom: 12px;

    margin-bottom: 20px;

    border-bottom: 2px solid #007bff;
}


/* =========================================================
   CONTENT DATA
   ========================================================= */

.content-data {

    font-size: 18px;

    line-height: 1.7;

    color: #222;
}

.content-data p {

    margin: 0 0 20px;
}

.content-data ul,
.content-data ol {

    margin-bottom: 20px;

    padding-left: 40px;
}

.content-data li {

    margin-bottom: 5px;
}


/* =========================================================
   CONTENT EXAMPLE
   ========================================================= */

.content-example {

    margin-top: 20px;

    padding: 15px;

    background: #f7f7f7;

    border-left: 4px solid #007bff;

    overflow-x: auto;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .tutorial-layout {

        width: calc(100% - 40px);

        grid-template-columns: 250px 1fr;

        gap: 20px;
    }

}


@media (max-width: 768px) {

    .tutorial-layout {

        width: calc(100% - 30px);

        grid-template-columns: 1fr;

        gap: 20px;
    }

    .tutorial-sidebar {

        width: 100%;
    }

    .tutorial-page-title {

        font-size: 32px;
    }

    .content-card {

        padding: 20px;
    }

}


@media (max-width: 600px) {

    .tutorial-menu {

        justify-content: flex-start;
    }

    .tutorial-menu a {

        font-size: 14px;

        padding: 10px 12px;
    }

    .tutorial-page-title {

        font-size: 28px;

        padding: 20px 0;
    }

}