@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');

:root {
    --bg-main: #f8fafc;
    --primary-dark: #0f172a;
    --primary-blue: #2563eb;
    --accent-gold: linear-gradient(135deg, #f59e0b, #d97706);
    --text-dark: #1e293b;
    --text-light: #64748b;
    --card-bg: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* شريط التنقل */
.header {
    background-color: var(--primary-dark);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

/* الحاوية الرئيسية */
.container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 1rem;
    flex: 1;
}

/* البطاقات */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.card-title {
    color: var(--primary-dark);
    font-size: 1.6rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* النماذج والمدخلات */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* الأزرار */
.btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.3s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-premium {
    background: var(--accent-gold);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* جداول النتيجة */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 1.2rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
    font-size: 1.1rem;
}

.data-table th {
    color: var(--text-light);
    width: 40%;
}

.data-table td {
    font-weight: 900;
    color: var(--primary-dark);
}

.total-score {
    background: #f0fdf4;
    border: 2px solid #a7f3d0;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
}

.total-score h3 {
    color: var(--success);
    font-size: 2.5rem;
    font-weight: 900;
}

/* مساحات أدسنس المكثفة */
.ad-slot {
    background-color: #e2e8f0;
    border: 1px dashed #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    min-height: 100px;
}

.ad-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 0.5rem;
    z-index: 1000;
    text-align: center;
}

/* التذييل */
.footer {
    background-color: var(--primary-dark);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: auto;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    margin: 0 0.8rem;
    font-weight: 700;
}
/* تنسيقات قسم الأسئلة الشائعة */
.faq-section {
  max-width: 800px;
  margin: 40px auto;
  font-family: 'Tajawal', 'Cairo', sans-serif; /* يفضل استخدام خطوط جوجل العربية */
  direction: rtl;
}

.faq-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: bold;
}

.faq-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: right;
  padding: 18px 20px;
  background-color: #f8f9fa;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #34495e;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #e9ecef;
}

.arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* حالة الفتح */
.faq-item.active .arrow {
  transform: rotate(180deg);
}

.faq-item.active .faq-question {
  background-color: #e9ecef;
  color: #d35400; /* لون مميز عند الفتح */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease;
  background-color: #fff;
}

.faq-answer p {
  margin: 0;
  padding: 0 20px;
  color: #555;
  line-height: 1.8;
  font-size: 15px;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* يمكن زيادة الرقم لو النص أطول */
  padding: 15px 20px;
}
.logo {
    text-align: center;
    transform: translate(0px, -50%);
}
        .ai-card {
            border: 2px solid var(--accent-gold);
            background: linear-gradient(to bottom, #ffffff, #fffbeb);
            box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
        }
        .college-highlight {
            background-color: var(--primary-dark);
            color: #fcd34d;
            padding: 1.5rem;
            border-radius: 12px;
            text-align: center;
            font-size: 1.8rem;
            font-weight: 900;
            margin: 1.5rem 0;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
        }
        .ai-text-box {
            font-size: 1.15rem;
            line-height: 1.9;
            color: var(--text-dark);
            text-align: justify;
        }
        /* تنسيق النصوص القادمة من Gemini */
        .ai-text-box strong {
            color: var(--primary-blue);
        }