.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;
}

/* التنسيق العام لكل الأزرار (الحالة الافتراضية: متاح) */
.exam-panel .status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: #e74c3c; /* أخضر جميل للمتاح مثلاً ✅ */
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* تنسيق خاص لزر "غير متاح" أو "قريباً" */
/* نستخدم .gray لأن الكود عندك يضيف هذا الكلاس في حال عدم الإتاحة */
.exam-panel .status-badge.gray {
    background-color: gray; /* أحمر صارخ لغير المتاح 🔴 */
    color: #ffffff;
}

.exam-container {
    display: grid; /* Switched from flex to grid 🏁 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    max-width: 1400px; /* Limits the total width so it doesn't stretch too far */
    margin: 0 auto; /* Centers the whole grid on the page */
    gap: 30px;
    padding: 10px;
}

.exam-panel {
    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%; /* Change from 600px to 100% to fill the grid column! 📏 */
}

.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;
}

/* Mobile: stack panels in 1 column 📱 */
@media (max-width: 768px) {
    .exam-container {
        grid-template-columns: 1fr;
    }
    .exam-panel {
        width: 100%; 
    }
}
/* On larger screens, force exactly 2 columns ✌️ */
@media (min-width: 992px) {
    .exam-container {
        grid-template-columns: repeat(2, 1fr); 
    }
}

.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;
}

/* 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;
}




/* 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);
}

#questions-panel.intro-panel {
    /* 0.85 alpha makes it very dark but still lets the blur through 🌑 */
    background: rgba(0, 0, 0, 0.45) !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;
}


.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! */
}

