/* Tutor Help Center - Main Stylesheet */
/* Arabic RTL Support with Cairo Font and Blue/White Design */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

* {
    box-sizing: border-box;
}

.tutor-help-center-wrapper {
    font-family: 'Cairo', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    background: #f8f9fa;
    min-height: 100vh;
}

.tutor-help-center-wrapper.rtl {
    direction: rtl;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.help-center-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #0066cc 100%);
    color: white;
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.help-center-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.help-center-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #f8f9fa);
    pointer-events: none;
}

.help-center-title {
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.help-center-subtitle {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 50px 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* Search Box */
.help-search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.help-search-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 18px 25px;
    padding-right: 60px;
    font-size: 17px;
    font-family: 'Cairo', sans-serif;
    border: none;
    border-radius: 50px;
    outline: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.search-input:focus {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 22px;
    pointer-events: none;
    z-index: 2;
}

.search-button {
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.search-button:hover::before {
    left: 100%;
}

.search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.search-button:active {
    transform: translateY(-1px);
}

/* Autocomplete Suggestions */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: #0066cc;
    border-radius: 10px;
}

.suggestions-header {
    padding: 12px 15px;
    background: #f8f9fa;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #e6f2ff;
    border-radius: 8px 8px 0 0;
}

.suggestion-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: #e6f2ff;
}

.suggestion-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    color: #0066cc;
    font-size: 14px;
    margin-bottom: 4px;
}

.suggestion-title mark {
    background: #ffeb3b;
    color: #333;
    padding: 2px 4px;
    border-radius: 3px;
}

.suggestion-excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.suggestion-text {
    color: #333;
    font-size: 14px;
}

.suggestion-text mark {
    background: #ffeb3b;
    color: #333;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Content Area */
.help-center-content {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.help-center-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.help-center-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 35px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #0066cc);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: right;
}

.category-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.category-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
}

.category-title a {
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.category-title a:hover {
    color: #667eea;
    transform: translateX(-3px);
}

.category-description {
    color: #718096;
    font-size: 15px;
    margin: 12px 0 20px 0;
    line-height: 1.7;
    min-height: 45px;
}

.category-count {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 20px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.category-card:hover .category-count {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Articles List */
.articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-item {
    background: white;
    margin-bottom: 18px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-right: 4px solid transparent;
    position: relative;
}

.article-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.article-item:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.article-item:hover {
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
    transform: translateX(-8px) translateY(-2px);
    border-right-color: #667eea;
}

.article-link {
    display: block;
    padding: 24px;
    text-decoration: none;
    color: #333;
    position: relative;
}

.article-title {
    display: block;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.article-item:hover .article-title {
    -webkit-text-fill-color: #667eea;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #718096;
    margin-top: 12px;
}

.article-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

.article-views::before {
    content: '👁️';
    font-size: 14px;
}

/* Popular Articles Section */
.popular-articles {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.popular-articles:hover {
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Search Results */
.search-results {
    background: white;
    padding: 40px 0;
    margin-top: 40px;
}

.search-results-title {
    font-size: 24px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 30px;
}

.search-result-item {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    border-right: 4px solid #0066cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 8px 20px rgba(0,102,204,0.15);
    transform: translateX(-5px);
    border-right-width: 6px;
}

.search-result-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.search-result-title a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-title a:hover {
    color: #004499;
    text-decoration: underline;
}

.search-result-title mark {
    background: #ffeb3b;
    color: #333;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 700;
}

.search-result-excerpt {
    color: #666;
    line-height: 1.8;
    margin: 10px 0;
    font-size: 15px;
}

.search-result-excerpt mark {
    background: #ffeb3b;
    color: #333;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.search-result-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    font-size: 16px;
}

.helpful-badge {
    background: #e6f2ff;
    color: #0066cc;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e6f2ff;
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #0066cc;
    font-size: 24px;
    margin: 0 0 15px 0;
}

.no-results p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.no-results a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Article Single Page */
.tutor-help-article-wrapper {
    background: #f8f9fa;
    padding: 40px 0;
    min-height: 100vh;
}

/* Video Container */
.article-video-container {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Screenshots Gallery */
.article-screenshots {
    margin: 30px 0;
}

.screenshots-title {
    color: #0066cc;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6f2ff;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.2);
}

.screenshot-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-image {
    transform: scale(1.05);
}

/* Screenshot Modal */
.screenshot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.screenshot-modal.active {
    display: flex;
}

.screenshot-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.screenshot-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.screenshot-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.screenshot-modal-close:hover {
    background: #0066cc;
    color: white;
}

.article-header {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumbs .current {
    color: #333;
    font-weight: 600;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #0066cc;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.article-category a {
    color: #0066cc;
    text-decoration: none;
    padding: 5px 12px;
    background: #e6f2ff;
    border-radius: 20px;
    font-size: 13px;
}

.article-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.article-main {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.article-content h2,
.article-content h3 {
    color: #0066cc;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-right: 30px;
}

.article-tags {
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 30px 0;
}

.article-tags strong {
    color: #0066cc;
    margin-left: 10px;
}

.article-tags .tag {
    display: inline-block;
    padding: 5px 12px;
    background: #e6f2ff;
    color: #0066cc;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    margin: 5px 5px 5px 0;
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background: #0066cc;
    color: white;
}

.article-feedback {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

.article-feedback h3 {
    margin: 0 0 20px 0;
    color: #0066cc;
    font-size: 20px;
}

.feedback-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.feedback-btn {
    padding: 12px 30px;
    border: 2px solid #0066cc;
    background: white;
    color: #0066cc;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-btn:hover {
    background: #0066cc;
    color: white;
}

.feedback-btn.helpful.active {
    background: #0066cc;
    color: white;
}

.feedback-btn.not-helpful.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.feedback-stats {
    color: #666;
    font-size: 14px;
}

.helpful-count {
    color: #0066cc;
    font-weight: 600;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: #0066cc;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e6f2ff;
}

.related-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.related-articles li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-articles a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.related-articles a:hover {
    color: #0066cc;
}

.back-link {
    display: inline-block;
    padding: 12px 25px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #004499;
    transform: translateX(-3px);
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 40px;
    color: #666;
    background: white;
    border-radius: 8px;
}

.no-articles a {
    color: #0066cc;
    text-decoration: none;
}

/* Responsive - Mobile First Approach */
@media (max-width: 968px) {
    .help-center-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .screenshots-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .help-center-header {
        padding: 50px 0 70px;
    }
    
    .help-center-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .help-center-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .popular-articles {
        position: static;
        margin-top: 40px;
    }
    
    .help-search-box {
        flex-direction: column;
        gap: 15px;
    }
    
    .help-search-wrapper {
        width: 100%;
    }
    
    .search-input {
        padding: 12px 15px;
        padding-left: 45px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .search-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-icon {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .article-header {
        padding: 25px 20px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-main {
        padding: 25px 20px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .screenshots-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-result-item {
        padding: 20px;
    }
    
    .search-result-title {
        font-size: 18px;
    }
    
    .search-result-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .autocomplete-suggestions {
        max-height: 300px;
    }
    
    .suggestion-item {
        padding: 10px 12px;
    }
    
    .feedback-buttons {
        flex-direction: column;
    }
    
    .feedback-btn {
        width: 100%;
        justify-content: center;
    }
    
    .article-sidebar {
        margin-top: 30px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .help-center-header {
        padding: 30px 0;
    }
    
    .help-center-title {
        font-size: 24px;
    }
    
    .help-center-subtitle {
        font-size: 14px;
    }
    
    .category-card {
        padding: 15px;
    }
    
    .category-title {
        font-size: 18px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-main {
        padding: 20px 15px;
    }
    
    .video-wrapper {
        padding-bottom: 75%; /* 4:3 for mobile */
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .search-button,
    .feedback-btn,
    .quick-action-item,
    .category-card {
        min-height: 44px; /* iOS touch target size */
    }
    
    .help-btn-icon {
        width: 56px;
        height: 56px;
    }
    
    .suggestion-item {
        min-height: 48px;
        padding: 14px 15px;
    }
}

/* Category Archive Pages */
.category-articles {
    padding: 40px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.2);
    border-color: #0066cc;
}

.article-card-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 600;
}

.article-card-title a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #004499;
}

.article-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e6e6e6;
}

.article-views {
    color: #999;
    font-size: 13px;
}

.read-more {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #004499;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumbs a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: rgba(255,255,255,0.7);
}

.breadcrumbs .current {
    color: white;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    background: white;
    color: #0066cc;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #e6e6e6;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: #666;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    color: #666;
}

/* Responsive for category archive */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        padding: 20px;
    }
    
    .article-card-title {
        font-size: 18px;
    }
    
    .article-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Swipe gestures for onboarding on mobile */
@media (max-width: 768px) {
    .tutor-onboarding-controls {
        touch-action: pan-y;
    }
    
    .step-actions button {
        min-height: 44px;
        font-size: 16px;
    }
}

