.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: red;
    color: var(--color-white);
    font-weight: bold;
    font-size: 14px;
}

.exam-panel span[style] { /* "غير متاح" badge */
    background: #aaa;
    color: #fff;
}



/* تنسيق خاص لزر "غير متاح" أو "قريباً" */
/* نستخدم .gray لأن الكود عندك يضيف هذا الكلاس في حال عدم الإتاحة */
.exam-panel .status-badge.gray {
    background-color: gray; /* أحمر صارخ لغير المتاح 🔴 */
    color: #ffffff;
}

.exam-container {
    
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

.exam-panel {
    position: relative;
    background: #f5f5f5;
    color: var(--color-black);
    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: 100%;
    
    /* ADD THESE: Makes the card a flex column 🧱 */
    display: flex;
    flex-direction: column;
}

.exam-card-info {
    /* ADD THESE: This div will now expand to fill all empty space 🎈 */
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.status-container {
    /* ADD THIS: Pushes the badge to the absolute bottom of the info div 📌 */
    margin-top: auto; 
    padding-top: 15px;
}


.exam-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* تنسيق موحد لصور الكورسات */
.course-img {
    width: 100%;        /* تأخذ كامل عرض الكارد */
    height: 200px;      /* يمكنك تغيير الارتفاع كما تحب (مثلاً 180px أو 250px) */
    object-fit: cover;  /* أهم خاصية لجعل الصور متناسقة دون تشويه 🎯 */
    display: block;
    border-top-left-radius: 16px;  /* لتتناسق مع حواف الكارد العلوية */
    border-top-right-radius: 16px;
}

.exam-panel.disabled {
    opacity: 0.9;
    cursor: not-allowed;
}


.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 ===== */



/* main container */
#exam-start {
    display: block;
    padding-top: 90px;
}



/* 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;
}




/* The "Starts in" label */
.countdown-label {
    background: #ffa500 !important;
    color: #fff !important;
    font-size: 12px !important;
    padding: 2px 10px !important;
    border-radius: 8px 8px 0 0 !important;
    margin-bottom: 0 !important;
}

/* Keeping your exact wrapper spacing 📍 */
.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0px;      
    margin-bottom: -35px; 
    z-index: 5;
    position: relative;
}

/* Keeping your original shape/padding, just changing colors and font 📟 */
.countdown {
    display: inline-block;
    padding: 5px 15px;
    font-family: 'Orbitron', sans-serif; /* Digital font */
    font-size: 18px;
    font-weight: bold;
    color: #ff0000;           /* Red numbers 🔴 */
    background-color: #000;   /* Black background ⚫ */
    border-radius: 0 0 8px 8px; /* Your original rounded bottom */
    min-width: 100px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}



.action-btn {
    display: inline-block;
    padding: 10px 25px;
    margin: 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}



/* Yellow/Gold for Login */
.login-style {
    background-color: #f1c40f; 
    color: #000;
}

/* Blue for Signup */
.signup-style {
    background-color: #007bff;
    color: white;
}

/* Green for Profile */
.profile-style {
    background-color: #28a745;
    color: white;
}

/* Red for Logout */
.logout-style {
    background-color: #dc3545;
    color: white;
}

.action-btn:hover {
    opacity: 0.8;
    transform: scale(1.05); /* Just a little pop effect! */
}

@media (max-width: 768px) {
  .exam-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .exam-panel {
    font-size: 14px;
  }
}