:root {
    --primary-color: #0f5132;
    --secondary-color: #1a7a4f;
    --accent-color: #d4af37;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
     /* 🟡 لون الفخامة (CTA والعروض) */
  --accent: #d4af37;

  /* ⚪ الخلفيات والنصوص */
  --bg: #f6f8f7;
  --white: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --footer: #1a7a4f;

  /* الألوان الإضافية (للتوافقية) */
  --primary-dark: #146c43;
  --light-green: #d1e7dd;
  --gray: #666;

  /* Legacy aliases for backward compatibility */
  --primary-green: #0f5132;
  --secondary-green: #1a7a4f;
  --gold: #d4af37;
  --light-bg: #f6f8f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    direction: rtl;
    line-height: 1.6;
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 70%,
        var(--accent-color) 100%
    );
    color: var(--white);
    border-radius: 0 0 50px 50px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bolder;
    margin-bottom: 20px;
    color: #e6a800;
}

.hero p {
    font-size: 1.2rem;
    font-weight: bolder;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #ff9c07;
}

/* Cards */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: -50px;
    padding-bottom: 50px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.card:hover {
    transform: translateY(-7px);
    border-color: var(--primary-color);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--secondary-color);
}

/* Simulator Interface */
.simulator-container {
    display: none;
    max-width: 900px;
    margin: 40px auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.simulator-header {
    background: #f1f5f9;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.timer {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-area {
    padding: 40px;
}

.options-grid {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.option {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.option.selected {
    border-color: var(--primary-color);
    background: #dbeafe;
}

.simulator-footer {
    padding: 20px 40px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
}

/* Results */
.results-container {
    display: none;
    text-align: center;
    padding: 50px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 10px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .specialties-grid { grid-template-columns: 1fr; }
}

/* Search Styles */
.search-container {
    margin: -30px auto 40px;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.search-box {
    background: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.1rem;
    color: var(--text-color);
}

.search-box i {
    color: #94a3b8;
    font-size: 1.2rem;
}

/* Exit Button in Simulator */
.exit-btn {
    background: #ef4444;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    margin-right: 15px;
}
