/* Linux101 Course Styles - Webmonkey Inspired */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f9f9f9;
    --text-color: #333;
    --code-bg: #282c34;
    --code-color: #abb2bf;
    --border-color: #ddd;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header and Navigation */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
.logo img {
    height: 40px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: rgba(255,255,255,0.1);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #ecf0f1;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #7f8c8d;
}

/* Main Content Layout */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

article {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Code Blocks */
code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f1f1f1;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

pre {
    background-color: var(--code-bg);
    color: var(--code-color);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
    position: relative;
}

pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.copy-button:hover {
    background-color: #2980b9;
}

/* Command Output */
.command-output {
    background-color: #1e1e1e;
    color: #00ff00;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    margin: 1rem 0;
    border-left: 4px solid var(--success-color);
}

/* Sidebar */
aside {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.sidebar-section ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-section li {
    margin-bottom: 0.5rem;
}

.sidebar-section a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    border-left: 3px solid transparent;
    padding-left: 0.5rem;
    transition: all 0.3s;
}

.sidebar-section a:hover {
    border-left-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Tip and Note Boxes */
.tip, .note, .warning {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    border-left: 4px solid;
}

.tip {
    background-color: #d4edda;
    border-color: var(--success-color);
}

.note {
    background-color: #d1ecf1;
    border-color: var(--info-color);
}

.warning {
    background-color: #fff3cd;
    border-color: var(--warning-color);
}

.tip::before, .note::before, .warning::before {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.tip::before {
    content: "💡 Tip:";
}

.note::before {
    content: "📝 Note:";
}

.warning::before {
    content: "⚠️ Warning:";
}

/* Footer Navigation */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #2980b9;
    text-decoration: none;
    color: white;
}

.nav-button.previous {
    background-color: #95a5a6;
}

.nav-button.previous:hover {
    background-color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
    
    aside {
        position: static;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Module Navigation */
.module-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.module-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-color);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--text-color);
}

.module-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.module-card p {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Progress Indicator */
.progress-bar {
    background-color: #ecf0f1;
    height: 8px;
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    background-color: var(--success-color);
    height: 100%;
    transition: width 0.3s ease;
}

/* Table of Contents */
.toc {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.toc ul {
    padding-left: 1rem;
}

.toc a {
    color: var(--secondary-color);
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Tux the Penguin Feature */
.tux-penguin {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.tux-bounce {
    animation: tuxBounce 2s ease-in-out infinite;
}

.tux-sway {
    animation: tuxSway 3s ease-in-out infinite;
}

.tux-float {
    animation: tuxFloat 4s ease-in-out infinite;
}

@keyframes tuxBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes tuxSway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes tuxFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-5px) translateX(3px); }
    50% { transform: translateY(0px) translateX(6px); }
    75% { transform: translateY(5px) translateX(3px); }
}