/*
Theme Name: أداة AMS
Theme URI: 
Author: هاني
Author URI: 
Description: قالب مخصص لإدارة المواد باستخدام أداة AMS
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portal-theme
*/
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: bold;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
}

.landing-page {
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
                url('/wp-content/themes/portal-theme/images/hero-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-section::before {
    position: absolute;
    font-size: 80px;
    background: linear-gradient(45deg, 
        rgba(80, 80, 80, 0.1) 0%,
        rgba(40, 40, 40, 0.2) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: pre;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    font-family: 'Cairo', sans-serif;
    text-align: center;
    width: 100%;
    line-height: 1.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.features-section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.upload-section {
    padding: 6rem 0;
    
}

.upload-card {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
}

.upload-area {
    border: 2px dashed #dee2e6;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #2c3e50;
}

.upload-section {
    background-color: var(--background-color);
}

.upload-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    background: #f8f9fa;
    cursor: pointer;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #e9ecef;
}

.upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.drop-message {
    color: #6c757d;
}

.drop-message i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-preview {
    text-align: center;
    padding: 1rem;
}

.file-preview .file-icon {
    color: var(--primary-color);
}

.file-preview .file-name {
    margin: 0.5rem 0;
    color: var(--text-color);
    font-weight: 500;
}

.remove-file {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.remove-file:hover {
    text-decoration: underline;
}

.error-message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background-color: #fff3f3;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#start-btn {
    transition: all 0.3s ease;
    min-width: 200px;
}

#start-btn:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

#start-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    margin-bottom: 8px;
    background-color: #2c3e50;
    border-color: #2c3e50;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #34495e;
    border-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    color: white;
    border-color: white;
    border-radius: 50px;
    padding: 0.8rem 2rem;
}

.btn-outline-primary:hover {
    background-color: white;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.navbar {
    background-color: rgba(44, 62, 80, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(44, 62, 80, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link i {
    margin-left: 0.5rem;
}

.content-wrapper {
    padding-top: 76px; 
}

section {
    scroll-margin-top: 76px;
}

.footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #3498db;
    transform: translateX(-5px);
}

.social-links a {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #3498db;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 1rem;
    }

    .feature-card {
        margin-bottom: 2rem;
    }

    .upload-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

[dir="rtl"] .nav-link i {
    margin-right: 0.5rem;
    margin-left: 0;
}

[dir="rtl"] .footer a:hover {
    transform: translateX(5px);
}

.card {
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-body {
    padding: 2rem;
}

.features-section .card {
    background: #fff;
    margin-bottom: 1.5rem;
}

.team-section .card-title {
    margin-top: 0.6rem;
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.about-section .card {
    margin-bottom: 2rem;
}

.about-section .text-primary {
    color: #2c3e50 !important;
}

.contact-section i {
    color: #2c3e50;
}

.contact-section .form-control {
    border: 2px solid #e9ecef;
    padding: 0.8rem;
    border-radius: 0.5rem;
}

.contact-section .form-control:focus {
    border-color: #2c3e50;
    box-shadow: none;
}

#pdf-container {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: calc(100vh - 250px);
    min-height: 500px;
}

#pdf-viewer {
    width: 100%;
    height: 80vh;
    border: none;
}

.questions-section {
    padding: 2rem 0;
}

.question-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.question-item h3 {
    color: #20262d;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: bold;
}

.options-container {
    display: flex;
    flex-direction: column;
}

.answer-option {
    display: block;
    padding: 1rem 1.25rem;
    border: 2px solid #edf2f7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    margin-bottom: 1rem;
    text-align: right;
    position: relative;
    overflow: hidden;
}

.answer-option ul {
    margin: 0.5rem 0 0 0;
    padding-right: 2rem;
    list-style-type: disc;
}

.answer-option li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.answer-option:hover {
    background-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.answer-option.selected {
    background: linear-gradient(to bottom, #3498db, #4fb8fd);
    color: #fff;
}

.answer-option.selected ul {
    color: #fff;
}

.answer-option.selected:hover {
    background-color: #2980b9;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
}

.navigation-buttons button {
    min-width: 100px;
}

#question-counter {
    font-weight: 500;
    color: var(--primary-color);
}

#results-section {
    animation: slideUp 0.5s ease-out;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: var(--border-radius);
}

.results-content {
    text-align: center;
}

.results-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.results-content p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

#difficulty-level {
    color: var(--secondary-color);
}



.share-results {
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.share-results form {
    max-width: 300px;
    margin: 0 auto;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.upload-section {
    padding: 2rem;
    border-radius: 1rem;
}

.contact-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .features-section .card {
        margin-bottom: 1rem;
    }
    
    #pdf-container {
        height: 400px;
        min-height: auto;
    }
    
    .question-item {
        padding: 1rem;
    }
    
    .answer-option {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .results-content p {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .questions-section {
        padding: 1rem 0;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .navigation-buttons button {
        width: 100%;
    }
    
    #question-counter {
        order: -1;
        margin-bottom: 0.75rem;
        text-align: center;
    }
}

[dir="rtl"] .card {
    text-align: right;
}

[dir="rtl"] .form-label {
    text-align: right;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.questions-page {
    padding: 0;
    background-color: var(--background-color);
    min-height: 100vh;
    width: 100%;
    margin-top: 90px;
}

.questions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 0;
    width: 100%;
    height: calc(100vh - 90px);
    overflow-y: auto;
}

.pdf-viewer-container {
    margin-top: 0.5rem;
}

.pdf-viewer-container iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: var(--border-radius);
}

.questions-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.navigation-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 2px solid #edf2f7;
}

.nav-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.prev-btn {
    background-color: #f1f5f9;
    color: #475569;
}

.next-btn {
    background-color: #3498db;
    color: white;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.question-counter {
    font-weight: bold;
    color: var(--text-color);
}

.results-section {
    margin-top: 2rem;
}

.results-content {
    text-align: center;
}

.result-item {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.result-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin: 0.5rem 0;
}

.share-results {
    margin-top: 2.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.submit-btn, .restart-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.restart-btn {
    background-color: var(--primary-color);
    margin-top: 2rem;
}

.submit-btn:hover, .restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .questions-layout {
        grid-template-columns: 1fr;
    }
    
    .questions-sidebar {
        position: static;
    }
}

@media (max-width: 576px) {
    .questions-page {
        padding: 1rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
    }
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    padding: 1.5rem;
    background: white;
    box-shadow: none !important;
    border: none;
}

.accordion-button:not(.collapsed) {
    color: #2193b0;
    background: white;
}

.accordion-button::after {
    margin-right: 1rem;
    margin-left: 0;
}

.question-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2193b0;
    margin-left: 1rem;
    min-width: 40px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 500;
}

.accordion-body {
    padding: 1.5rem;
    background-color: #f8f9fa;
    line-height: 1.8;
}

.file-types {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.file-type {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.8rem;
}

.benefits-list li::before {
    content: "•";
    color: #2193b0;
    font-weight: bold;
    position: absolute;
    right: 0;
}

.steps-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.step-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon i {
    font-size: 1.5rem;
    color: white;
}

.step-text {
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .question-number {
        font-size: 1rem;
        min-width: 30px;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .step-item {
        min-width: 150px;
    }
}

.results-section {
    padding: 2rem;
}

.results-content {
    max-width: 800px;
    margin: 0 auto;
}

.results-grid {
    display: grid;
    gap: 1.5rem;
}

.result-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
}

.result-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
    margin: 0;
}

.share-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.share-results {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 0.8rem;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #0b5ed7;
}

.social-share {
    text-align: center;
}

.social-share h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-btn:hover {
    opacity: 0.9;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.button-group button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-primary {
    background-color: #0d6efd;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.email-success {
    background: #d4edda;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #155724;
}

.success-message i {
    font-size: 1.5rem;
}

.success-message p {
    margin: 0;
    font-weight: 500;
}

.stories-container {
    display: flex;
    gap: 38px;
    overflow-x: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.stories-container::-webkit-scrollbar {
    display: none;
}
a {
    text-decoration: none;
}
.story-card {
    flex: 0 0 auto;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-circle {
    width: 90px;
    height: 90px;
    position: relative;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.story-circle::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.story-card:hover .story-circle::after {
    opacity: 1;
}

.story-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: white;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: scale(1.01);
}

.story-title {
    text-align: center;
    width: 100%;
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    padding: 8px 12px;
    border-radius: 15px;
}

.story-title h5 {
    margin: 0;
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .story-circle {
        width: 75px;
        height: 75px;
    }
    
    .story-card {
        width: 100px;
    }
    
    .story-title h5 {
        font-size: 0.75rem;
    }
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.social-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.share-results {
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem;
        height: auto;
        min-height: 500px;
    }
    
    .answer-option {
        padding: 1rem;
    }
    
    .nav-btn {
        padding: 0.75rem 1.5rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    padding: 1.5rem;
    background: white;
    box-shadow: none !important;
    border: none;
}

.accordion-button:not(.collapsed) {
    color: #2193b0;
    background: white;
}

.accordion-button::after {
    margin-right: 1rem;
    margin-left: 0;
}

.question-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2193b0;
    margin-left: 1rem;
    min-width: 40px;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.accordion-body {
    padding: 1.5rem;
    background-color: #f8f9fa;
    line-height: 1.8;
}

.file-types {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.file-type {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.8rem;
}

.benefits-list li::before {
    content: "•";
    color: #2193b0;
    font-weight: bold;
    position: absolute;
    right: 0;
}

.steps-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.step-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon i {
    font-size: 1.5rem;
    color: white;
}

.step-text {
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .question-number {
        font-size: 1rem;
        min-width: 30px;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .step-item {
        min-width: 150px;
    }
}

.stories-container {
    display: flex;
    gap: 38px;
    overflow-x: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.story-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.story-circle {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
}

.story-border {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, #007bff, #00ff9d);
}

.story-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.story-title h5 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

@media (max-width: 768px) {
    .stories-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .story-circle {
        width: 120px;
        height: 120px;
    }
}

.questions-page {
    padding: 2rem 0;
}

.questions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.question-counter {
    font-weight: bold;
    color: var(--primary-color);
}

.results-section {
    text-align: center;
}

.results-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.result-item {
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.button-group button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    opacity: 0.9;
}

.social-share {
    margin: 1.5rem 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.facebook { background-color: #1877f2; }
.twitter { background-color: #1da1f2; }
.whatsapp { background-color: #25d366; }

.social-btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .questions-layout {
        grid-template-columns: 1fr;
    }
}

.questions-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.question-card {
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.question-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
}

.question-text {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.option-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.option-card.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.option-card input[type="radio"] {
    display: none;
}

.option-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.option-text {
    font-size: 1.3rem;
    text-align: right;
}
.option-card li {
    text-align: right; 
    list-style: none; 
    position: relative;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.question-counter {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.results-section {
    text-align: center;
    padding: 3rem;
}

.difficulty-level {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.results-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.result-detail {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.detail-label {
    display: block;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.share-button {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.share-button:hover {
    opacity: 0.9;
}

/* وضع التحليل */
header.analysis-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header.analysis-mode + .landing-page {
    padding-top: 80px;
}

header.analysis-mode .navbar {
    padding: 0.5rem 1rem;
}

header.analysis-mode .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    color: #333;
    transition: color 0.3s ease;
}

header.analysis-mode .navbar-nav .nav-link:hover {
    color: #007bff;
}

/* تخطيط التحليل */
body.analysis-active {
    overflow: hidden;
}

.analysis-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    overflow-y: auto;
    background: #f8f9fa;
}

.analysis-section .questions-page {
    padding-top: 80px;
}

/* File Viewers Styles */
.pdf-viewer-container {
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
    text-align: center;
}

.pdf-frame {
    border: none;
    width: 100%;
    height: 600px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.text-viewer {
    background: white;
    padding: 20px;
    border-radius: 4px;
    height: 600px;
    overflow-y: auto;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-viewer {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.unsupported-format, .no-file {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 4px;
    color: #666;
    font-size: 18px;
}

.unsupported-format {
    color: #dc3545;
}
