.exam-panel h2 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.exam-panel p {
    font-size: 14px;
    margin-bottom: 15px;
}

.exam-panel span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: bold;
    font-size: 14px;
}

.exam-panel span[style] { /* "غير متاح" badge */
    background: #aaa;
    color: #fff;
}

.exam-container {
    display: flex;
    flex-wrap: wrap;       /* allow panels to wrap to next row */
    gap: 20px;
    justify-content: center; /* center panels horizontally */
}

.exam-panel {
    background: #f5f5f5;       /* muted white panel */
    color: var(--color-black);  /* dark text */
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 14px 40px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    width: 500px; /* FIXED WIDTH like older version */
}

.exam-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}


/* Mobile: stack panels full width */
@media (max-width: 768px) {
    .exam-panel {
        width: 90%; /* nearly full width for mobile */
    }
}

.exam-description {
  margin-bottom: 25px;
  line-height: 1.8;
}

.exam-question {
  text-align: right;
  margin-bottom: 25px;
}

.question-text {
  font-weight: 700;
  margin-bottom: 12px;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.answer-option {
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
}

.question-separator {
  border: 0;
  border-top: 1px solid var(--color-white-subtle);
  margin: 20px 0;
}

/* ===== EXAM PAGE RESET ===== */

body {
    background: linear-gradient(to bottom, var(--color-black), #d9d9d9);
}

/* main container */
#exam-start {
    display: block;
    padding-top: 90px;
}

/* keep content centered but NOT stacked */
.intro-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    background: transparent;
}

/* questions layout */
.exam-question {
    margin-bottom: 20px;
}

/* answers stay vertical like before */
.answers {
    display: block;
    margin-top: 10px;
}

.answer-option {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

/* separator */
.question-separator {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 25px 0;
}

/* submit button area */
.cta-buttons {
    text-align: center;
    margin-top: 30px;
}

.menu-card{
    width:220px;
    height:150px;
    background:white;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    color:#333;
    transition:0.2s;
}

.menu-card:hover{
    transform:translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.menu-card i{
    font-size:40px;
    margin-bottom:10px;
}

.menu-card span{
    font-size:18px;
    font-weight:bold;
}

.container2{
    display:flex;
    flex-wrap:wrap;
    gap:30px;
    justify-content:center;
}

#questions-panel.intro-panel {
    /* 0.85 alpha makes it very dark but still lets the blur through 🌑 */
    background: rgba(51, 51, 51, 1) !important;
    
    /* Cranking up the blur for a more "premium" frosted glass look */
    backdrop-filter: blur(15px) !important; 
    -webkit-backdrop-filter: blur(15px); /* Support for Safari */
    
    /* Slightly darker border so it doesn't look too bright at the edges */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    
    /* Adding a heavy shadow to ground it */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}