/* Shared Component Styles */

/* Main Section Header */
.main-section-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.main-section-header h2 {
    font-size: 2rem;
    color: var(--heading-color);
}

/* Cheatsheet/Collapsible Section Styling */
.cheatsheet-section {
    margin-bottom: 40px;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.cheatsheet-section > h2.collapsible-header {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.cheatsheet-section > h2.collapsible-header.collapsed {
    margin-bottom: 0;
}

/* Instruction Step Styling */
.instruction-step {
    border-left: 4px solid var(--accent-color);
    margin-bottom: 20px;
    padding-left: 20px;
}

.instruction-step h3 {
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.instruction-step img,
.card img.img-large,
.card img.img-small {
    width: 70%;
    max-width: 60%;
    display: block;
    margin: 15px auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.card img.img-small {
    max-width: 50%;
}

/* Subsection Title */
.subsection-title {
    font-size: 1.6rem;
    color: var(--heading-color);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.9;
    padding-left: 10px;
    border-left: 3px solid var(--accent-color);
}

/* General Card Overrides for content pages */
.card h3 {
    font-size: 1.2rem;
}

.card ul {
    list-style-position: inside;
    padding-left: 0;
    margin-bottom: 10px;
}

.card code:not(pre code) {
    font-family: "Fira Code", "Courier New", monospace;
    background-color: var(--bg-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.85em;
    color: var(--text-color);
}
