/* --- Core Container for Video and Title --- */
.tutorial-video-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    padding: 16px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Video Title Styling */
.tutorial-video-wrapper .video-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50; /* Dark text */
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
}

/* --- Responsive 16:9 Aspect Ratio Container --- */
.video-embed-container {
    position: relative;
    width: 100%;
    /* 16:9 aspect ratio (9 / 16 * 100 = 56.25%) */
    padding-top: 56.25%; 
    background-color: #000000; /* Black background while loading */
    border-radius: 8px;
    overflow: hidden;
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Related Videos Styling (The Sidebar Look) --- */
.tutorial-related-videos {
    background-color: #f8f9fa; /* Light grey background */
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tutorial-related-videos h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2980b9; /* Blue accent */
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #bdc3c7;
}

.tutorial-related-videos .related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tutorial-related-videos .related-list li {
    margin-bottom: 8px;
}

.tutorial-related-videos .related-list li a {
    display: block;
    padding: 10px 12px;
    background-color: #ffffff;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    color: #34495e;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.tutorial-related-videos .related-list li a:hover {
    background-color: #eaf2f8;
    border-color: #2980b9;
    color: #2980b9;
    transform: translateY(-1px);
}