/* Tutorials Page Styles */

/* Removed styles - Definitions moved to blocks.css */
/* .tutorials-grid { ... } */
/* .tutorial-section .content-container { ... } */
/* .tutorial-full-width { ... } */
/* .tutorial-content { ... } */
/* .tutorial-media-placeholder { ... } */
/* .tutorial-section-title { ... } */

/* Specific overrides for the tutorials page layout */
main.tutorials-page hr {
    display: none;
}

/* Ensure any truly unique page styles remain below */

/* REMOVED - Using general styles now */
/* .tutorials-page .page-title-section {
    text-align: center;
    padding: 4em 0 3em 0;
} */

/* REMOVED - Using general styles now */
/* .tutorials-page .page-title-section h1 {
    margin-bottom: 0.1em;
    font-size: 1.4em;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
} */

/* REMOVED - Handled by global H2 styles */
/* .tutorial-section-title h2 {
    text-align: left;
    margin-bottom: 0; 
    font-size: 3.5em;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1.25;
} */

/* REMOVED - Handled by global section padding */
/* .tutorial-section-title {
    margin-bottom: 0 !important; 
    padding-bottom: 1.5em; 
} */

/* REMOVED - Now general .intro */
/* .tutorials-page .intro {
    font-size: 3em; 
    font-weight: var(--font-weight-bold);
    color: var(--text-primary); 
    margin-top: 0;
    margin-bottom: 0.5em; 
} */

/* MOVED TO component.css */
/* .page-sub-intro {
    font-size: 2em;
    color: var(--text-secondary);
    text-align: center; 
    font-weight: var(--font-weight-bold); 
    margin-top: 1em; 
    margin-bottom: 1em; 
} */

/* Grid Layout for Tutorials */
.tutorials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 2em; /* Gap between grid items */
    margin-top: 0; /* Remove margin from grid itself */
}

/* Individual Tutorial Box Styling (already exists mostly) */
.tutorial-section .content-container {
    align-items: initial;
    padding: 2.5em;
    margin-bottom: 0; /* Remove bottom margin, use grid gap */
    height: 100%; /* Make boxes fill grid cell height */
    display: flex; /* Use flex to help structure content */
    flex-direction: column; /* Stack content vertically */
}

/* Make full-width sections span both columns */
.tutorial-full-width {
    grid-column: span 2;
}

/* Ensure content is above media */
.tutorial-content {
    flex-grow: 1; /* Allow text content to take up space */
}

.tutorial-content h3 {
    margin-top: 0;
    margin-bottom: 0.8em;
    font-size: 1.2em;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-align: left;
}

.tutorial-content p {
    color: var(--text-secondary);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.tutorial-content ol,
.tutorial-content ul {
    padding-left: 20px;
    margin-bottom: 1.5em;
    color: var(--text-secondary);
    font-weight: var(--font-weight-bold);
}

.tutorial-content li {
    margin-bottom: 0.8em;
    line-height: 1.6;
}

.tutorial-content code {
    font-family: var(--font-code);
    font-size: 0.9em;
    background-color: var(--background-code);
    border: 1px solid var(--border-color);
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--text-code);
}

/* MOVED to component.css */
/* .tutorial-content .learn-more-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    display: inline-block;
    margin-top: 1em;
} */

/* MOVED to component.css */
/* .tutorial-content .learn-more-link:hover {
    text-decoration: underline;
} */

/* Container for the tutorial image/video */
.tutorial-media-placeholder {
    /* Remove styles related to placeholder text */
    background-color: transparent;
    border: none;
    border-radius: 0;
    min-height: auto;
    display: block; /* Change from flex */
    padding: 0;
    text-align: center; /* Center the block-level image */
    margin-top: 2em; /* Keep space above image */
}

/* Style for the actual image within the placeholder */
.tutorial-media-placeholder img {
    display: block; /* Ensure block behavior */
    max-width: 50%; /* Limit width to half of container */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto; /* Center image horizontally */
    border-radius: var(--border-radius-section);
    transition: transform 0.3s ease, opacity 0.2s ease-in-out; /* Added transition */
}

.tutorial-media-placeholder img:hover {
    transform: scale(1.05); /* Slight scale on hover */
    z-index: 10; /* Ensure hovered image is on top */
}

/* Section containing the H2 (e.g., "Setup") */
.tutorial-section-title {
    text-align: center;
    margin-bottom: 0; /* Remove margin, use padding below instead */
    padding-bottom: 1em; /* Add padding below H2 for spacing */
    background-color: transparent; /* Ensure no background */
}

/* DELETE THE FOLLOWING INCORRECTLY ADDED BLOCKS */
/* .tutorial-box { ... } */
/* .tutorial-image img { ... } */

