/*
Theme Name: Hidate Theme
Author: Your Name
Description: A custom theme for the Hidate German exam simulation platform.
Version: 1.0
*/

:root {
    --primary-color: #212529;
    --secondary-color: #495057;
    --accent-color: #ffc107;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --nav-height: 60px;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: right;
    direction: rtl; /* Ensure RTL is set */
}

/* --- General Styles --- */
.top-nav {
    background-color: var(--primary-color);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    width: 100%;
    max-width: 960px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-links a {
    color: #fff; text-decoration: none; font-size: 1rem; font-weight: 500;
    margin-left: 30px; transition: color 0.3s ease; position: relative; padding-bottom: 5px;
}

.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0;
    right: 0; background-color: var(--accent-color); transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.container { max-width: 960px; margin: 0 auto; padding: 20px; }

.header { text-align: center; padding: 40px 0; border-bottom: 1px solid #dee2e6; margin-bottom: 40px; }
.header .logo { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: 3.5rem; color: var(--primary-color); letter-spacing: 1px; }
.header .logo .accent { color: var(--accent-color); }
.header p { font-size: 1.2rem; color: #6c757d; margin-top: 10px; }

.view, .sub-view { display: none; animation: fadeIn 0.5s ease-in-out; }
.view.active, .sub-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.section-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 30px; color: var(--primary-color); }

.grid-container { display: grid; gap: 25px; }
.levels-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.parts-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.exam-list-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card { background-color: #fff; border-radius: 12px; padding: 25px; text-align: center; cursor: pointer; transition: all 0.3s ease; box-shadow: var(--card-shadow); border: 1px solid #e9ecef; }
.card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); }
.card h3 { margin: 10px 0; font-family: 'Roboto', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--secondary-color); }
.card.exam-part h3, .card.exam-list-item h3 { font-size: 1.8rem; }

.footer { text-align: center; margin-top: 60px; padding-top: 20px; border-top: 1px solid #dee2e6; color: #6c757d; }

.back-button, .form-button {
    display: inline-block; margin: 10px 5px; padding: 12px 30px; background-color: var(--secondary-color);
    color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem;
    font-weight: 700; transition: background-color 0.2s ease; font-family: 'Cairo', sans-serif;
}
.form-button { background-color: var(--accent-color); color: var(--primary-color); }
.form-button:hover { background-color: #ffca2c; }

/* ... (أضف بقية أكواد CSS هنا كما هي) ... */
#exam-view {
    background-color: #fff; padding: 35px 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd; margin-top: -20px; direction: ltr; font-family: 'Times New Roman', Times, serif;
}

.exam-header { font-family: 'Arial', Helvetica, sans-serif; font-weight: bold; border-bottom: 1.5px solid #000; padding-bottom: 8px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.exam-header .circle { width: 42px; height: 42px; background-color: #6a6a6a; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; }
.exam-header .title { font-size: 24px; letter-spacing: 6px; }
.exam-header .part { font-size: 15px; }
.exam-timer { font-size: 1.2rem; font-weight: bold; color: var(--primary-color); }

/* ... أكمل لصق كل أكواد ال CSS المتبقية هنا ... */