/* Tech Page Specific Styles */

/* Import developer-friendly fonts */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600;700&family=Source+Code+Pro:wght@300;400;500;600&display=swap');

/* Tech-friendly CSS Variables */
:root {
    --tech-font-mono: 'JetBrains Mono', 'Source Code Pro', 'Consolas', 'Monaco', monospace;
    --tech-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tech-primary: #2563eb;
    --tech-secondary: #0f172a;
    --tech-accent: #06b6d4;
    --tech-success: #059669;
    --tech-warning: #d97706;
    --tech-error: #dc2626;
    --tech-bg-code: #f8fafc;
    --tech-border-code: #e2e8f0;
    --tech-text-code: #334155;
    /* High contrast colors for accessibility */
    --high-contrast-bg: #ffffff;
    --high-contrast-text: #1a1a1a;
    --high-contrast-border: #4a5568;
    --focus-ring: #3b82f6;
    --focus-ring-offset: #ffffff;
}

/* Tech Hero Section */
.tech-hero {
    background: linear-gradient(135deg, #f0f5ff 0%, var(--cream) 50%, var(--lavender) 100%);
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    position: relative;
    border-bottom: 5px solid var(--sage-green);
}

.tech-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 75%, var(--lavender) 2px, transparent 2px),
        radial-gradient(circle at 75% 25%, var(--sage-green) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

.tech-hero-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tech-header {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-lg);
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 3px solid var(--lavender);
}

.tech-title {
    font-family: var(--tech-font-sans);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--tech-secondary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.tech-subtitle {
    font-family: var(--tech-font-sans);
    font-size: 1.3rem;
    color: var(--high-contrast-text);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    opacity: 0.8;
}

.tech-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    font-family: var(--tech-font-sans);
    font-weight: 500;
}

.tech-meta span {
    background: var(--tech-primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    font-size: 0.9rem;
    border: 2px solid transparent;
    min-height: 44px; /* Accessibility: minimum touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Code Block Styling */
.code-block {
    background: var(--tech-bg-code);
    border: 2px solid var(--tech-border-code);
    border-radius: 12px;
    margin: var(--spacing-md) 0;
    overflow-x: auto;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.code-block pre {
    font-family: var(--tech-font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: var(--spacing-md);
    margin: 0;
    color: var(--tech-text-code);
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}

.code-block.large {
    background: var(--tech-secondary);
    border-color: var(--tech-accent);
}

.code-block.large pre {
    color: #e2e8f0;
    font-size: 1rem;
    padding: var(--spacing-lg);
}

/* Syntax highlighting for code blocks */
.code-block pre code {
    font-family: inherit;
    font-size: inherit;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

/* Inline code styling */
code {
    font-family: var(--tech-font-mono);
    font-size: 0.875em;
    background: var(--tech-bg-code);
    padding: 0.125em 0.375em;
    border-radius: 4px;
    border: 1px solid var(--tech-border-code);
    color: var(--tech-text-code);
    font-weight: 500;
}

/* Tech Main Content */
.tech-main {
    padding: var(--spacing-xl) 0;
}

.template-status {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 3px solid var(--lavender);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    font-family: var(--tech-font-sans);
    font-weight: 600;
}

.template-status-error {
    border-color: var(--tech-error);
}

.template-hero-image {
    display: block;
    width: 100%;
    height: clamp(190px, 36vw, 300px);
    object-fit: contain;
    object-position: center;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    margin-top: var(--spacing-md);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.template-callout {
    padding: var(--spacing-lg);
    border-radius: 18px;
    margin-top: var(--spacing-lg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.template-callout h3 {
    margin-left: 0;
}

.template-callout p {
    color: var(--high-contrast-text);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.template-callout p:last-child {
    margin-bottom: 0;
}

.template-callout-warning {
    background: #fff8f0;
    border-left: 5px solid var(--tech-warning);
}

.template-callout-note {
    background: #f8fbff;
    border-left: 5px solid var(--tech-primary);
}

.tech-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Introduction Section */
.tech-intro {
    margin-bottom: var(--spacing-xl);
}

.intro-card {
    background: linear-gradient(135deg, #f0f5ff 0%, var(--cream) 100%);
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 3px solid var(--sage-green);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
}

.intro-card::before {
    content: '💡';
    font-size: 3rem;
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--cream);
    padding: 5px;
    border-radius: 50%;
}

.intro-card h3,
.tech-story h3,
.prereq-section h3,
.steps-section h3,
.complete-dockerfile-section h3,
.build-section h3,
.tips-section h3,
.related-section h3 {
    font-family: var(--tech-font-sans);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--tech-secondary);
    margin-bottom: var(--spacing-md);
    margin-left: 60px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.intro-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--warm-brown);
    margin-bottom: var(--spacing-md);
}

.intro-card p:last-child {
    margin-bottom: 0;
}

/* Getting Started Section */
.getting-started-section {
    margin-bottom: var(--spacing-xl);
}

.getting-started-section h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--deep-burgundy);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.tip-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 3px solid var(--soft-yellow);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: var(--lavender);
}

.tip-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.tip-card h4 {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    color: var(--deep-burgundy);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.tip-card p {
    color: var(--warm-brown);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.tip-card p:last-child {
    margin-bottom: 0;
}

.pro-tip {
    background: linear-gradient(135deg, var(--sage-green), var(--lavender));
    color: white;
    padding: var(--spacing-sm);
    border-radius: 15px;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
}

/* Essential Apps Section */
.essential-apps-section {
    margin-bottom: var(--spacing-xl);
}

.essential-apps-section h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--deep-burgundy);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.apps-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.app-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background: white;
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 3px solid var(--lavender);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.app-item:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: var(--sage-green);
}

.app-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--soft-yellow), var(--lavender));
    padding: var(--spacing-sm);
    border-radius: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.app-content h4 {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    color: var(--deep-burgundy);
    margin-bottom: var(--spacing-sm);
}

.app-content p {
    color: var(--warm-brown);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.app-content p strong {
    color: var(--sage-green);
}

/* Common Concerns Section */
.concerns-section {
    margin-bottom: var(--spacing-xl);
}

.concerns-section h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--deep-burgundy);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.concerns-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.concern-item {
    background: linear-gradient(135deg, #fff0f5 0%, var(--cream) 100%);
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 3px solid var(--dusty-rose);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
}

.concern-icon {
    font-size: 2.5rem;
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--cream);
    padding: 5px;
    border-radius: 50%;
}

.concern-item h4 {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    color: var(--deep-burgundy);
    margin-bottom: var(--spacing-sm);
    margin-left: 60px;
}

.concern-item p {
    color: var(--warm-brown);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.reassurance {
    background: rgba(156, 175, 136, 0.1);
    padding: var(--spacing-sm);
    border-radius: 15px;
    border-left: 4px solid var(--sage-green);
    font-style: italic;
}

/* Daily Routine Section */
.routine-section {
    margin-bottom: var(--spacing-xl);
}

.routine-section h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--deep-burgundy);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.routine-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.routine-step {
    background: white;
    border-radius: 20px;
    border: 3px solid var(--soft-yellow);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.routine-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: var(--sage-green);
}

.step-time {
    background: linear-gradient(135deg, var(--sage-green), var(--lavender));
    color: white;
    padding: var(--spacing-sm);
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
}

.step-actions {
    padding: var(--spacing-md);
}

.step-actions h4 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--deep-burgundy);
    margin-bottom: var(--spacing-sm);
}

.step-actions ul {
    list-style: none;
    padding: 0;
}

.step-actions li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: 25px;
    color: var(--warm-brown);
    line-height: 1.6;
}

.step-actions li::before {
    content: '✓';
    color: var(--sage-green);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Encouragement Section */
.encouragement-section {
    margin-bottom: var(--spacing-xl);
}

.encouragement-card {
    background: linear-gradient(135deg, var(--soft-yellow) 0%, var(--cream) 50%, #fff8f0 100%);
    padding: var(--spacing-xl);
    border-radius: 25px;
    border: 3px solid var(--sage-green);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.encouragement-card::before {
    content: '🌟';
    font-size: 3rem;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cream);
    padding: 10px;
    border-radius: 50%;
}

.encouragement-card h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--deep-burgundy);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.encouragement-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--warm-brown);
    margin-bottom: var(--spacing-md);
}

.final-tip {
    background: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-md);
    border-radius: 15px;
    border: 2px solid var(--dusty-rose);
    font-style: italic;
    margin-top: var(--spacing-md);
}

.final-tip strong {
    color: var(--deep-burgundy);
}

/* Step-by-step Tutorial Styling */
.steps-section {
    margin-bottom: var(--spacing-xl);
}

.steps-section h3 {
    font-family: var(--tech-font-sans);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--tech-secondary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    margin-left: 0;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background: var(--high-contrast-bg);
    padding: var(--spacing-lg);
    border-radius: 16px;
    border: 2px solid var(--tech-border-code);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: var(--tech-primary);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: var(--tech-primary);
    color: white;
    font-family: var(--tech-font-mono);
    font-weight: 600;
    font-size: 1.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-content h4 {
    font-family: var(--tech-font-sans);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--tech-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.step-content p {
    font-family: var(--tech-font-sans);
    color: var(--high-contrast-text);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

/* Prerequisites Section */
.prereq-section {
    margin-bottom: var(--spacing-xl);
}

.prereq-section h3 {
    font-family: var(--tech-font-sans);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--tech-secondary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    margin-left: 0;
}

.prereq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.prereq-card {
    background: var(--high-contrast-bg);
    padding: var(--spacing-lg);
    border-radius: 16px;
    border: 2px solid var(--tech-border-code);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.prereq-card:hover {
    border-color: var(--tech-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.prereq-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.prereq-card h4 {
    font-family: var(--tech-font-sans);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--tech-secondary);
    margin-bottom: var(--spacing-sm);
}

.prereq-card p {
    font-family: var(--tech-font-sans);
    color: var(--high-contrast-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.prereq-card a {
    color: var(--tech-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.prereq-card a:hover,
.prereq-card a:focus {
    border-bottom-color: var(--tech-primary);
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Build Section Styling */
.build-section,
.complete-dockerfile-section {
    margin-bottom: var(--spacing-xl);
}

.build-section h3,
.complete-dockerfile-section h3 {
    font-family: var(--tech-font-sans);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--tech-secondary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    margin-left: 0;
}

.build-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.build-step {
    background: var(--high-contrast-bg);
    padding: var(--spacing-lg);
    border-radius: 16px;
    border: 2px solid var(--tech-border-code);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.build-step h4 {
    font-family: var(--tech-font-sans);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--tech-secondary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.build-step p {
    font-family: var(--tech-font-sans);
    color: var(--high-contrast-text);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.tip {
    background: var(--tech-bg-code);
    padding: var(--spacing-sm);
    border-radius: 8px;
    border-left: 4px solid var(--tech-accent);
    font-style: italic;
    margin-top: var(--spacing-sm);
}

.note {
    background: var(--tech-bg-code);
    padding: var(--spacing-sm);
    border-radius: 8px;
    border-left: 4px solid var(--tech-warning);
    font-style: italic;
    margin-top: var(--spacing-md);
}

/* Related Section */
.related-section {
    margin-bottom: var(--spacing-xl);
}

.related-section h3 {
    font-family: var(--tech-font-sans);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--tech-secondary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    margin-left: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.related-card {
    background: var(--high-contrast-bg);
    padding: var(--spacing-lg);
    border-radius: 16px;
    border: 2px solid var(--tech-border-code);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.related-card h4 {
    font-family: var(--tech-font-sans);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--tech-secondary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.related-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-card li {
    padding: var(--spacing-xs) 0;
    font-family: var(--tech-font-sans);
    color: var(--high-contrast-text);
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.related-card li::before {
    content: '▶';
    color: var(--tech-primary);
    font-size: 0.8em;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.related-card a {
    color: var(--tech-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.related-card a:hover,
.related-card a:focus {
    border-bottom-color: var(--tech-primary);
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Focus and Accessibility Improvements */
.step-item:focus-within,
.prereq-card:focus-within,
.build-step:focus-within {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--tech-primary);
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--tech-font-sans);
    font-weight: 600;
    z-index: 1000;
    border: 2px solid var(--tech-primary);
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.skip-link:focus {
    top: 6px;
    outline: 2px solid var(--focus-ring-offset);
    outline-offset: 2px;
}

/* Improved focus states for all interactive elements */
button, 
input, 
textarea, 
select, 
a,
.tech-card,
.prereq-card,
.step-item {
    transition: all 0.2s ease;
}

button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus,
.tech-card:focus,
.prereq-card:focus,
.step-item:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --tech-primary: #000080;
        --tech-secondary: #000000;
        --high-contrast-text: #000000;
        --high-contrast-bg: #ffffff;
        --tech-border-code: #000000;
        --tech-text-code: #000000;
    }
    
    .code-block {
        border-width: 3px;
    }
    
    .step-item,
    .prereq-card,
    .build-step,
    .related-card {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .step-item:hover,
    .prereq-card:hover,
    .build-step:hover,
    .back-to-study:hover {
        transform: none;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print styles for tech content */
@media print {
    .tech-hero,
    .navigation,
    .back-link-section,
    .skip-link {
        display: none;
    }
    
    .code-block {
        border: 2px solid #000;
        break-inside: avoid;
    }
    
    .step-item,
    .prereq-card {
        border: 1px solid #000;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4 {
        break-after: avoid;
    }
}

/* Back Link Section */
.back-link-section {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.back-to-study {
    display: inline-block;
    background: var(--tech-primary);
    color: white;
    text-decoration: none;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 8px;
    font-family: var(--tech-font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    min-height: 44px; /* Accessibility: minimum touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.back-to-study:hover {
    background: var(--tech-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.back-to-study:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Responsive Design for Tech Pages */
@media (max-width: 768px) {
    .tech-title {
        font-size: 2.5rem;
    }
    
    .tech-meta {
        gap: var(--spacing-sm);
        flex-direction: column;
        align-items: center;
    }
    
    .tips-grid,
    .prereq-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .step-number {
        margin: 0 auto var(--spacing-sm) auto;
    }
    
    .step-content h4 {
        text-align: center;
    }
    
    .intro-card h3,
    .tech-story h3,
    .prereq-section h3,
    .steps-section h3,
    .complete-dockerfile-section h3,
    .build-section h3,
    .tips-section h3,
    .related-section h3 {
        margin-left: 0;
        margin-top: var(--spacing-lg);
        text-align: center;
        font-size: 1.8rem;
    }
    
    .concern-icon,
    .intro-card::before {
        position: relative;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: var(--spacing-sm);
    }
    
    .code-block pre {
        font-size: 0.8rem;
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .tech-title {
        font-size: 2rem;
    }
    
    .tech-header,
    .intro-card,
    .concern-item,
    .encouragement-card {
        padding: var(--spacing-md);
    }
    
    .app-item,
    .tip-card {
        padding: var(--spacing-md);
    }
}