/* MobLab Research Help Center Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Global Header */
.global-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.global-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
}

.header-nav .section-indicator {
    background: #4660F1;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.header-nav .section-indicator.researcher-section {
    background: #4660F1;
}

/* Console Login Buttons */
.console-login-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
}

.search-toggle-btn:hover {
    background: #f7fafc;
    border-color: #4660F1;
    color: #4660F1;
}

.search-toggle-btn .material-icons {
    font-size: 20px;
}

.console-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.console-login-btn.participant-btn {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

.console-login-btn.participant-btn:hover {
    background: #059669;
    border-color: #059669;
}

.console-login-btn.researcher-btn {
    background: #4660F1;
    color: white;
    border-color: #4660F1;
}

.console-login-btn.researcher-btn:hover {
    background: #3B4DEE;
    border-color: #3B4DEE;
}

.console-login-btn .material-icons {
    font-size: 16px;
    margin-right: 6px;
}

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

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.875rem;
    color: #6c757d;
}

.breadcrumb a {
    color: #4660F1;
    text-decoration: none;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(70, 96, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(70, 96, 241, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #2d3748 0%, #4660F1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: #718096;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Role Selection Panels */
.role-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.role-panel {
    background: white;
    padding: 80px 50px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.role-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4660F1, #3651E0);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.role-panel:hover::before {
    transform: scaleX(1);
}

.role-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4660F1, #3651E0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 8px 20px rgba(70, 96, 241, 0.3);
    transition: all 0.3s ease;
}

.role-icon .material-icons {
    color: white;
    font-size: 36px;
}

.role-panel h2 {
    font-size: 2.25rem;
    color: #2d3748;
    margin: 0 0 20px 0;
    font-weight: 700;
    transition: color 0.3s ease;
}

.role-panel p {
    font-size: 1.25rem;
    color: #4a5568;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.role-panel:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(70, 96, 241, 0.15);
    border-color: #4660F1;
}

.role-panel:hover .role-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(70, 96, 241, 0.4);
}

.role-panel:hover h2 {
    color: #4660F1;
}

.role-panel:hover p {
    color: #4660F1;
}

/* Specific panel styling */
.participant-panel {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.researcher-panel {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
}

.coming-soon {
    font-size: 0.875rem;
    color: #4660F1;
    font-weight: 600;
    margin-top: 10px !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
}

.btn-primary {
    background: #4660F1;
    color: white;
    border-color: #4660F1;
}

.btn-primary:hover {
    background: #3651E0;
    border-color: #3651E0;
}

.btn-secondary {
    background: #718096;
    color: white;
    border-color: #718096;
}

.btn-secondary:hover {
    background: #4a5568;
    border-color: #4a5568;
}

.btn-outline {
    background: transparent;
    color: #4660F1;
    border-color: #4660F1;
}

.btn-outline:hover {
    background: #4660F1;
    color: white;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 60px;
}

.welcome-section h1 {
    font-size: 2.25rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.welcome-section p {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 30px;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 2rem auto 0;
}

.search-bar {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar:focus {
    border-color: #4660F1;
}

/* Pagefind Search Customization */
.pagefind-ui__search-input {
    width: 100%;
    padding: 16px 48px 16px 20px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagefind-ui__search-input:focus {
    border-color: #4660F1;
    box-shadow: 0 4px 16px rgba(70, 96, 241, 0.1);
}

.pagefind-ui__search-clear {
    right: 16px;
    padding: 8px 16px;
    background: transparent;
    color: #718096;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.pagefind-ui__search-clear:hover {
    background: #fee2e2;
    color: #dc2626;
}

.pagefind-ui__results-area {
    margin-top: 1rem;
}

.pagefind-ui__result {
    background: white;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.pagefind-ui__result:hover {
    border-color: #4660F1;
    box-shadow: 0 6px 16px rgba(70, 96, 241, 0.12);
    transform: translateY(-2px);
    background: #fafbff;
}

.pagefind-ui__result-link {
    color: #4660F1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    line-height: 1.5;
}

/* Make the entire result card clickable */
.pagefind-ui__result-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.pagefind-ui__result-link::after {
    content: '→';
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.pagefind-ui__result:hover .pagefind-ui__result-link {
    color: #3651E0;
}

.pagefind-ui__result:hover .pagefind-ui__result-link::after {
    opacity: 1;
    transform: translateX(0);
}

.pagefind-ui__result-excerpt {
    color: #718096;
    margin-top: 14px;
    line-height: 1.6;
    font-size: 0.875rem;
}

.pagefind-ui__result-excerpt mark {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.pagefind-ui__message {
    color: #718096;
    text-align: center;
    padding: 20px;
}

.pagefind-ui__button {
    background: #4660F1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.pagefind-ui__button:hover {
    background: #3651E0;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-modal.active {
    display: flex;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.search-modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideDown 0.3s ease;
    z-index: 10000;
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.search-modal-header h2 {
    margin: 0;
    font-size: 1.375rem;
    color: #2d3748;
    font-weight: 600;
}

.search-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #718096;
    transition: all 0.2s ease;
}

.search-modal-close:hover {
    background: #f7fafc;
    color: #4660F1;
}

.search-modal-close .material-icons {
    font-size: 24px;
}

.search-modal-body {
    padding: 28px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* Modal Search Input Customization */
.search-modal .pagefind-ui__search-input {
    border-radius: 10px;
    padding: 16px 90px 16px 18px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.search-modal .pagefind-ui__search-input:focus {
    border-color: #4660F1;
    box-shadow: 0 4px 16px rgba(70, 96, 241, 0.12);
}

.search-modal .pagefind-ui__search-clear {
    right: 20px;
    padding: 12px 20px;
    background: #f7fafc;
    color: #718096;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    min-width: 60px;
}

.search-modal .pagefind-ui__search-clear:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.search-modal .pagefind-ui__results-area {
    margin-top: 20px;
}

/* Increase Pagefind UI scale and radii inside modal for roomier spacing */
.search-modal {
    --pagefind-ui-scale: 0.9;
    /* default is 0.8 in Pagefind UI */
    --pagefind-ui-border-radius: 12px;
    --pagefind-ui-border-width: 2px;
}

/* Hide Pagefind's built-in filter sidebar; we pre-filter by role in JS */
.search-modal .pagefind-ui__filters,
.search-modal .pagefind-ui__filter,
.search-modal .pagefind-ui__filter-header,
.search-modal .pagefind-ui__filter-group,
.search-modal .pagefind-ui__filter-container {
    display: none !important;
}

/* Keep drawer visible so results render */
.search-modal .pagefind-ui__drawer {
    display: block !important;
    gap: 0 !important;
    /* remove extra gutter left by filters */
    flex-wrap: nowrap !important;
}

/* Ensure results take full width when filters are hidden */
.search-modal .pagefind-ui__results,
.search-modal .pagefind-ui__results-area {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

/* Hide default UI filter panel variants */
.search-modal .pagefind-ui__filter-panel,
.search-modal .pagefind-ui__filter-block,
.search-modal .pagefind-ui__filter-name,
.search-modal .pagefind-ui__filter-group,
.search-modal .pagefind-ui__filter-value,
.search-modal .pagefind-ui__filter-label,
.search-modal .pagefind-ui__filter-checkbox,
.search-modal .pagefind-ui__filters-wrapper,
.search-modal .pagefind-ui__filters-area {
    display: none !important;
}

.search-modal .pagefind-ui__filter-panel legend {
    display: none !important;
}

/* Extra breathing room at the top/bottom of each card - increased specificity */
.search-modal .pagefind-ui__results .pagefind-ui__result {
    padding: 24px 48px 24px 60px !important;
    border-radius: 12px;
}

/* Improve title and excerpt spacing inside modular & classic UIs */
.search-modal .pagefind-ui__result-title,
.search-modal .pagefind-modular-list-title {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
}

.search-modal .pagefind-ui__result-excerpt,
.search-modal .pagefind-modular-list-excerpt {
    margin-top: 10px !important;
    line-height: 1.7 !important;
}

.search-modal .pagefind-ui__result {
    margin-bottom: 12px;
}

.search-modal .pagefind-ui__message {
    padding: 32px 20px;
    text-align: center;
    color: #718096;
    font-size: 0.95rem;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .search-modal {
        padding-top: 20px;
    }

    .search-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .search-modal-header {
        padding: 16px 20px;
    }

    .search-modal-header h2 {
        font-size: 1.125rem;
    }

    .search-modal-body {
        padding: 20px;
        max-height: calc(90vh - 70px);
    }

    .search-toggle-btn {
        width: 36px;
        height: 36px;
    }

    .search-toggle-btn .material-icons {
        font-size: 18px;
    }
}

/* Journey Steps - Horizontal Layout */
.journey-section {
    margin-bottom: 60px;
}

.journey-section h2 {
    font-size: 1.875rem;
    color: #2d3748;
    margin-bottom: 40px;
    text-align: center;
}

.journey-steps-horizontal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.step-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
}

.step-tab {
    flex: 1;
    min-width: 120px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #e2e8f0;
    background: #f7fafc;
    color: #718096;
}

.step-tab:last-child {
    border-right: none;
}

.step-tab:hover {
    background: #edf2f7;
    color: #4a5568;
}

.step-tab.active {
    background: #4660F1;
    color: white;
}

.step-tab .material-icons {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    display: block;
}

.step-content-area {
    padding: 40px;
    position: relative;
    min-height: 200px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-content p {
    color: #4a5568;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.step-link {
    color: #4660F1;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid #4660F1;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.step-link:hover {
    background: #4660F1;
    color: white;
    text-decoration: none;
}

/* Topics Grid */
.topics-section {
    margin-bottom: 60px;
}

.topics-section h2 {
    font-size: 1.875rem;
    color: #2d3748;
    margin-bottom: 40px;
    text-align: center;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.topic-category {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.topic-category h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4660F1;
}

.topic-category ul {
    list-style: none;
}

.topic-category li {
    margin-bottom: 12px;
}

.topic-category a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topic-category a:hover {
    color: #4660F1;
}

/* FAQ Section */
.faq-section {
    text-align: center;
}

.faq-section h2 {
    font-size: 1.875rem;
    color: #2d3748;
    margin-bottom: 30px;
}

/* FAQ Page Styles */
.faq-toc {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-toc h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.faq-toc ul {
    list-style: none;
    text-align: left;
}

.faq-toc li {
    margin-bottom: 10px;
}

.faq-toc a {
    color: #4660F1;
    text-decoration: none;
}

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

.faq-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item {
    padding: 30px;
}

.faq-question {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copy-link {
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-left: 10px;
    font-size: 1rem;
}

.faq-question:hover .copy-link {
    opacity: 1;
}

.faq-answer {
    color: #4a5568;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 30px 0;
}

/* Knowledge Article Styles */
.knowledge-article {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.knowledge-article h1 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4660F1;
}

.article-content h2 {
    color: #2d3748;
    font-size: 1.375rem;
    margin: 30px 0 15px 0;
}

.article-content h3 {
    color: #2d3748;
    font-size: 1.125rem;
    margin: 25px 0 12px 0;
}

.article-content p {
    color: #4a5568;
    margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
    list-style-position: outside;
}

.article-content li {
    color: #4a5568;
    margin-bottom: 8px;
}

/* Nested list spacing/indent */
.article-content ul ul,
.article-content ul ol,
.article-content ol ul,
.article-content ol ol {
    margin-top: 6px;
    margin-bottom: 6px;
    padding-left: 20px;
}

.article-content code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    color: #4660F1;
}

.important-note {
    background: #fefbf3;
    border: 1px solid #f0e8d3;
    border-left: 3px solid #f59e0b;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.important-note h3 {
    color: #b45309;
    margin-top: 0;
}

.related-articles {
    background: #f7fafc;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
}

.related-articles h3 {
    color: #2d3748;
    margin-bottom: 15px;
}

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

.related-articles li {
    margin-bottom: 10px;
}

.related-articles a {
    color: #4660F1;
    text-decoration: none;
}

.related-articles a:hover {
    text-decoration: underline;
}

/* Article Layout Improvements */
.intro-section {
    margin-bottom: 40px;
}

.section-wrapper {
    background: #fafbfc;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #4660F1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.section-wrapper h2 {
    margin-top: 0;
    color: #2d3748;
    font-size: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-wrapper h3 {
    color: #4a5568;
    font-size: 1.125rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* In-Page TOC and Back-to-Top */
.toc-box {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid #4660F1;
    margin: 20px 0 30px 0;
    position: static;
}

.toc-box h3 {
    color: #2d3748;
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
}

.toc-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.toc-box li {
    margin: 0;
}

.toc-box a {
    color: #4660F1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toc-box a:hover {
    background: #4660F1;
    color: white;
    text-decoration: none;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4660F1;
    text-decoration: none;
    font-weight: 500;
}

.back-to-top:hover {
    text-decoration: underline;
}

.back-to-top::before {
    content: 'arrow_upward';
    font-family: 'Material Icons';
    font-size: 18px;
    line-height: 1;
}

/* Article Images */
.article-image {
    margin: 30px 0;
    text-align: center;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.image-caption {
    margin-top: 10px;
    font-size: 0.875rem;
    color: #718096;
    font-style: italic;
}

/* Image Comparison Layout */
.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.image-half {
    text-align: center;
}

@media (max-width: 768px) {
    .image-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .content-image {
        max-width: 100%;
    }
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #38a169;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 1000;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Global Footer */
.global-footer {
    background: #2d3748;
    color: white;
    padding: 30px 0;
    margin-top: auto;
}

.footer-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
}

.copyright {
    color: #718096;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section {
        padding: 25px 0;
        margin-bottom: 30px;
    }

    .welcome-section h1 {
        font-size: 1.875rem;
    }

    .role-selection {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .role-panel {
        padding: 60px 30px;
        min-height: 350px;
    }

    .role-panel h2 {
        font-size: 1.875rem;
    }

    .role-panel p {
        font-size: 1.125rem;
    }

    .step-tabs {
        flex-direction: column;
    }

    .step-tab {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        min-width: auto;
    }

    .step-tab:last-child {
        border-bottom: none;
    }

    .step-content-area {
        padding: 25px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .knowledge-article {
        padding: 25px;
    }

    .faq-item {
        padding: 20px;
    }

    .toc-box {
        position: static;
        top: auto;
    }

    .toc-box ul {
        flex-direction: column;
        gap: 8px;
    }

    .toc-box a {
        display: block;
        padding: 8px 12px;
    }

    .faq-question {
        font-size: 1.125rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-link {
        opacity: 1;
        margin: 10px 0 0 0;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .global-header .container {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .header-nav {
        margin-top: 10px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .search-bar {
        padding: 12px 16px;
    }
}

/* Researcher Section Styles */

/* Researcher Topics Grid */
.researcher-topics-section {
    margin-bottom: 60px;
}

.researcher-topics-section h2 {
    font-size: 1.875rem;
    color: #2d3748;
    margin-bottom: 40px;
    text-align: center;
}

.researcher-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.researcher-topic-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.researcher-topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #4660F1;
}

.researcher-topic-card:hover {
    border-color: #4660F1;
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(70, 96, 241, 0.15);
}

.topic-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4660F1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.topic-icon .material-icons {
    color: white;
    font-size: 28px;
}

.researcher-topic-card h3 {
    color: #2d3748;
    font-size: 1.375rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.researcher-topic-card p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.topic-preview {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-preview li {
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.topic-preview li::before {
    content: '•';
    color: #4660F1;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Quick Start Section */
.quick-start-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.quick-start-section h2 {
    color: #2d3748;
    font-size: 1.875rem;
    margin-bottom: 30px;
    text-align: center;
}

.quick-start-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.quick-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4660F1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 auto 20px;
}

.quick-step h3 {
    color: #2d3748;
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.quick-step p {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Topic Page Styles */
.topic-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    background: #4660F1;
    border-radius: 12px;
    color: white;
    margin-top: -20px;
}

.topic-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.topic-icon-large .material-icons {
    font-size: 40px;
    color: white;
}

.topic-header h1 {
    font-size: 2.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.topic-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections Grid */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.section-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4660F1;
}

.section-card h2 {
    color: #2d3748;
    font-size: 1.375rem;
    margin-bottom: 15px;
}

.section-description {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.article-list li {
    margin-bottom: 12px;
}

.article-list a {
    color: #4660F1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.article-list a:hover {
    color: #3651E0;
    text-decoration: underline;
}

/* FAQ Categories */
.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-category-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #4660F1;
}

.faq-category-card h2 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.faq-category-card h2::before {
    content: '❓';
    margin-right: 10px;
    font-size: 1rem;
}

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

.faq-list li {
    margin-bottom: 12px;
}

.faq-list a {
    color: #4660F1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
}

.faq-list a:hover {
    color: #3651E0;
    background: #f7fafc;
    padding-left: 10px;
}

/* Additional callout styles for researcher articles */
.tip-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #4660F1;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.tip-box h3 {
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-box p,
.tip-box ul {
    color: #2d3748;
    margin-bottom: 0;
}

.tip-box ul,
.tip-box ol {
    padding-left: 20px;
}

.tip-box li {
    margin-bottom: 6px;
}

.warning-box {
    background: #fef8f8;
    border: 1px solid #f0e2e2;
    border-left: 3px solid #ef4444;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.warning-box h3 {
    color: #b91c1c;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box p,
.warning-box ul {
    color: #2d3748;
    margin-bottom: 0;
}

.warning-box ul,
.warning-box ol {
    padding-left: 20px;
}

.warning-box li {
    margin-bottom: 6px;
}

/* Important note box (for orange/yellow warnings) */
.important-note {
    background: #fefbf3;
    border: 1px solid #f0e8d3;
    border-left: 3px solid #f59e0b;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.important-note h3 {
    color: #b45309;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.important-note p,
.important-note ul {
    color: #2d3748;
    margin-bottom: 0;
}

.important-note ul,
.important-note ol {
    padding-left: 20px;
}

.important-note li {
    margin-bottom: 6px;
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.nav-prev,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.article-navigation a {
    color: #4660F1;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.article-navigation a:hover {
    color: #3651E0;
}

.nav-prev .material-icons {
    margin-right: 8px;
}

.nav-next .material-icons {
    margin-left: 8px;
}

/* Responsive adjustments for researcher section */
@media (max-width: 768px) {
    .researcher-topics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quick-start-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .topic-header {
        padding: 30px 20px;
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
    }

    .topic-header h1 {
        font-size: 1.875rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-next {
        text-align: left;
    }
}