/* CSS Variables for theming */
:root {
    --bg-primary: #f5f3f0;
    --bg-secondary: #f8f6f3;
    --bg-sidebar: #f8f6f3;
    --bg-sidebar-header: #f0ede8;
    --text-primary: #2c3e50;
    --text-secondary: #5d6d7e;
    --text-sidebar: #2c3e50;
    --accent-primary: #5dade2;
    --accent-secondary: #3498db;
    --border-color: #d9d2c8;
    --shadow: rgba(44, 62, 80, 0.1);
}

/* Prevent flash of unstyled content by setting default theme */
html {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Hide content until theme is loaded to prevent flash */
body {
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

/* Show content once theme is applied */
body.theme-loaded {
    opacity: 1;
}

/* Fallback for users who prefer dark mode */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --bg-sidebar: #1e1e1e;
        --bg-sidebar-header: #0f0f0f;
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --text-sidebar: #e0e0e0;
        --accent-primary: #64b5f6;
        --accent-secondary: #42a5f5;
        --border-color: #404040;
        --shadow: rgba(0, 0, 0, 0.3);
    }
    
    :root:not([data-theme="light"]) html {
        background-color: #1a1a1a !important;
        color: #e0e0e0 !important;
    }
    
    :root:not([data-theme="light"]) body {
        background-color: #1a1a1a !important;
        color: #e0e0e0 !important;
    }
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-sidebar: #1e1e1e;
    --bg-sidebar-header: #0f0f0f;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-sidebar: #e0e0e0;
    --accent-primary: #64b5f6;
    --accent-secondary: #42a5f5;
    --border-color: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* Force dark theme colors immediately when dark theme is detected */
[data-theme="dark"] html {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] body {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

/* Import modern fonts similar to javascript.info */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Remove all list bullets/dots globally */
ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Restore numbering for breadcrumb lists */
.breadcrumb-list {
    list-style: decimal;
    padding-left: 1rem;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-primary);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Button reset to prevent browser defaults */
button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    outline: none;
}

/* Navigation search bar */
.nav-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 400px; /* Increased width */
    min-width: 350px; /* Minimum width */
}

.nav-search:focus-within {
    border-color: rgba(93, 173, 226, 0.3);
    box-shadow: 
        0 0 0 3px rgba(93, 173, 226, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    min-width: 250px;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-btn {
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
}

.search-btn:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 173, 226, 0.3);
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(93, 173, 226, 0.2);
}

.search-btn svg {
    width: 16px;
    height: 16px;
}

/* Search backdrop */
.search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1000;
    pointer-events: auto;
}

/* Search results styling */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow);
    z-index: 1001;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
    pointer-events: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    border-radius: 10px 10px 0 0;
}

.search-results-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.close-search {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-search:hover {
    background-color: var(--bg-sidebar-header);
    color: var(--text-primary);
}

.search-results-list {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: var(--bg-secondary);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.search-result-content h4 mark {
    background-color: rgba(93, 173, 226, 0.3);
    color: var(--accent-primary);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

.search-result-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.search-result-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.search-result-category {
    display: inline-block;
    background-color: var(--accent-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-type {
    display: inline-block;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.search-results.no-results .search-results-content {
    padding: 1rem;
    text-align: center;
}

.search-results.no-results p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
}

.search-results.no-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results.no-results li {
    display: inline-block;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    border-radius: 16px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

/* Responsive search results */
@media (max-width: 768px) {
    .search-results {
        left: -1rem;
        right: -1rem;
        margin-top: 0.25rem;
    }
    
    .search-results-header {
        padding: 0.75rem;
    }
    
    .search-result-item {
        padding: 0.75rem;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography improvements similar to javascript.info */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

h5 {
    font-size: 1.125rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

/* Improved paragraph and text styling */
p {
    margin-bottom: 1.2em;
    line-height: 1.7;
    color: var(--text-primary);
}

strong, b {
    font-weight: 600;
    color: var(--text-primary);
}

em, i {
    font-style: italic;
    color: var(--text-primary);
}

/* List styling improvements */
ul, ol {
    margin-bottom: 1.2em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Blockquote styling */
blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* Main layout with sidebar */
.main-layout {
    display: flex;
    margin-top: 0;
    width: 100%;
    overflow-x: hidden;
    flex: 1;
}

/* Sidebar styles */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-sidebar);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    border-right: 1px solid var(--border-color);
    box-shadow: 
        4px 0 20px rgba(0, 0, 0, 0.1),
        inset 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-sidebar-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-sidebar);
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--text-sidebar) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 0.5rem 0;
}

.sidebar-section {
    margin-bottom: 0;
}

.sidebar-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.sidebar-section-title.expandable {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.sidebar-section-title.expandable:hover {
    background-color: var(--bg-sidebar-header);
    color: var(--accent-primary);
}

.expand-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sidebar-section-title.expanded .expand-icon {
    transform: rotate(90deg);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar-menu.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding: 0;
}



.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-sidebar);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    margin: 0.25rem 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.sidebar-menu a:hover {
    background: rgba(93, 173, 226, 0.1);
    border-left-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateX(4px);
    box-shadow: 
        0 4px 12px rgba(93, 173, 226, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-menu a:hover::before {
    left: 100%;
}

.course-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: normal;
}

.sidebar-menu a.active {
    background-color: var(--accent-primary);
    border-left-color: var(--accent-secondary);
    color: white;
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #34495e;
}

.sidebar-submenu a {
    padding: 0.4rem 1.5rem 0.4rem 3rem;
    font-size: 0.9rem;
    color: #bdc3c7;
}

.sidebar-submenu a:hover {
    background-color: var(--bg-sidebar-header);
    color: var(--accent-primary);
}

/* Language logos */
.language-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.sidebar-menu a:hover .language-logo {
    transform: scale(1.1);
}

/* Dynamic Sidebar Styles */
.course-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.course-logo {
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 8px;
    background-color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.course-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-sidebar);
}

.course-count {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Course Tutorials List */
.course-tutorials .tutorial-link {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin: 0.25rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.course-tutorials .tutorial-link:hover {
    background: rgba(93, 173, 226, 0.1);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.tutorial-title {
    display: block;
    font-weight: 600;
    color: var(--text-sidebar);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Back to courses link */
.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin: 0.25rem 1rem;
    background: rgba(93, 173, 226, 0.05);
    border: 1px solid rgba(93, 173, 226, 0.2);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(93, 173, 226, 0.1);
    border-color: var(--accent-primary);
    transform: translateX(-4px);
}

.back-icon {
    font-size: 1.1rem;
    color: var(--accent-primary);
}

/* Main content area */
.main-content {
    flex: 1;
    margin-left: 280px;
    margin-top: 0;
    padding: 1rem;
    padding-top: calc(1rem + 100px); /* 100px spacing from navbar bottom */
    width: calc(100% - 280px);
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
}

/* Header styles */
.header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.64rem 20px; /* 15% smaller: 0.75rem * 0.85 = 0.6375rem ≈ 0.64rem */
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.05);
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.logo a:hover {
    color: var(--accent-secondary);
}

/* Navigation styles */
.nav {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Theme toggle button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    background: rgba(93, 173, 226, 0.1);
    border-color: rgba(93, 173, 226, 0.3);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 
        0 8px 20px rgba(93, 173, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.theme-toggle .theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 20px rgba(93, 173, 226, 0.3),
        0 4px 8px rgba(93, 173, 226, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-divider {
    color: #ccc;
    font-weight: normal;
    padding: 0.5rem 0.5rem;
}

/* Navigation search removed */



.nav-link.active {
    background-color: var(--accent-primary);
    color: white;
}

/* Main content styles */
.main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

.welcome {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.welcome h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.welcome h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.welcome-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 4rem;
    line-height: 1.7;
    font-weight: 400;
    opacity: 0.9;
}

/* Category sections */
.category-section {
    margin-bottom: 5rem;
    position: relative;
}

.category-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding: 1rem 0;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* Category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.category-icon {
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.category-card:hover .category-icon::before {
    opacity: 1;
}

.category-card:hover .category-icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.category-card h3 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.article-count {
    color: var(--accent-primary);
    font-weight: 600;
}

.difficulty {
    color: #28a745;
    font-weight: 500;
}

/* Button styles */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(93, 173, 226, 0.3),
        0 2px 4px rgba(93, 173, 226, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 20px rgba(93, 173, 226, 0.4),
        0 4px 8px rgba(93, 173, 226, 0.3);
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
}

.btn:hover::before {
    left: 100%;
}

/* Tutorial page styles */
.tutorial-content {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    width: 100%;
    box-sizing: border-box;
}

.tutorial-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.tutorial-category {
    background: var(--accent-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tutorial-difficulty {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tutorial-difficulty.difficulty-beginner {
    background: #28a745;
    color: white;
}

.tutorial-difficulty.difficulty-intermediate {
    background: #ffc107;
    color: #212529;
}

.tutorial-difficulty.difficulty-advanced {
    background: #dc3545;
    color: white;
}

.tutorial-read-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.tutorial-content h1 {
    color: var(--accent-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.tutorial-content h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 0.5rem;
}

.tutorial-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.tutorial-navigation {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Code block styles */
.code-block {
    background-color: var(--bg-primary);
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', 'Fira Code', 'Droid Sans Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 400;
}

.code-block code {
    color: var(--text-primary);
}

/* Inline code styling */
code:not(.code-block code) {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', 'Fira Code', 'Droid Sans Mono', 'Courier New', monospace;
    background-color: var(--bg-primary);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
}

/* Article listing styles */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(331px, 353px));
    gap: 1.8rem;
    margin: 2rem 0;
    align-items: stretch;
    width: 100%;
    position: relative;
    z-index: 1;
    justify-content: space-between;
    max-width: 100%;
    box-sizing: border-box;
}

/* Tutorial card styles are now handled by the TutorialCard.astro component */

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    gap: 0.5rem;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.pagination a:hover {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.pagination .current {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.pagination .disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Category page header */
.category-header {
    text-align: left;
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
    color: var(--text-primary);
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2rem;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0;
    line-height: 1.6;
}

/* Search and filter styles for course pages */
.search-filters {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.15);
    outline: none;
}

/* Authentication pages styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-card {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-card h2 {
    color: var(--accent-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.forgot-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-secondary);
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #dee2e6;
}

.auth-divider span {
    background: var(--bg-secondary);
    padding: 0 1rem;
    position: relative;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-social:hover {
    background-color: var(--bg-primary);
    border-color: #adb5bd;
}

.btn-google:hover {
    background-color: var(--bg-primary);
    border-color: #db4437;
}

.btn-github:hover {
    background-color: var(--bg-primary);
    border-color: var(--text-primary);
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.auth-footer p {
    margin: 0;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.terms-link {
    color: var(--accent-primary);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Learning path section */
.learning-path {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
    transition: background-color 0.3s ease;
}

.learning-path h3 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.learning-path p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.learning-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    color: var(--accent-primary);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-item small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer styles */
.footer {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-sidebar);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 -4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 999; /* Lower than sidebar (1000) */
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0 1rem;
    padding-left: 2.1rem; /* 40% total increase from 1.5rem */
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 200px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.footer-description {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    color: var(--text-secondary);
}

.footer-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.25rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    padding: 0.15rem 0;
    border-radius: 4px;
}

.footer-links a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
    background: rgba(93, 173, 226, 0.1);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: rgba(93, 173, 226, 0.1);
    border-color: rgba(93, 173, 226, 0.3);
    color: var(--accent-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(93, 173, 226, 0.2);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
    padding-left: 2.1rem; /* 40% total increase to match footer content */
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.8;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.15rem 0.3rem;
    border-radius: 6px;
}

.footer-bottom-links a:hover {
    color: var(--accent-primary);
    background: rgba(93, 173, 226, 0.1);
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 1400px) {
    .article-grid {
        gap: 1.6rem;
        grid-template-columns: repeat(auto-fit, minmax(320px, 340px));
        justify-content: space-between;
    }
}

@media (max-width: 1200px) {
    .article-grid {
        gap: 1.4rem;
        grid-template-columns: repeat(auto-fit, minmax(300px, 320px));
        justify-content: space-between;
    }
}

@media (max-width: 992px) {
    .article-grid {
        gap: 1.3rem;
        grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .article-grid {
        gap: 1.2rem;
        grid-template-columns: repeat(auto-fit, minmax(260px, 280px));
        justify-content: space-between;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .sidebar-overlay.open {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 120px; /* More space for mobile header */
        margin-bottom: 60px;
        padding: 1rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        width: 100%;
    }
    
    .nav-center {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .nav-search {
        width: 100%;
        max-width: 500px; /* Increased from 400px */
    }
    
    .search-input {
        min-width: 200px;
    }
    
    .nav-auth {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-search {
        width: 100%;
        max-width: 100%;
        min-width: 300px; /* Increased minimum width */
    }
    
    .search-input {
        min-width: 150px;
    }
    
    .nav-center {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-auth {
        margin-left: 0;
    }
    
    .welcome h2 {
        font-size: 2rem;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
    
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
    
    .tutorial-content {
        padding: 1rem;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tutorial-content h1 {
        font-size: 2rem;
    }
    
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .article-grid {
        gap: 1.1rem;
        grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .welcome h2 {
        font-size: 1.8rem;
    }
    
    .tutorial-card {
        padding: 1.5rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-content: start;
    }
    
    .tutorial-content {
        padding: 0.5rem;
        margin: 0;
        border-radius: 0;
    }
    
    .tutorial-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tutorial-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tutorial-navigation .btn {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }
}


/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.breadcrumb-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.breadcrumb-link:hover {
    background: rgba(93, 173, 226, 0.1);
    color: var(--accent-secondary);
    transform: translateY(-1px);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Responsive Design */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-section:last-child {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section:nth-child(5),
    .footer-section:nth-child(6) {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem 0 1.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0 1rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
