/*
Theme Name: Astra Child
Theme URI: http://example.com/astra-child
Description: Child theme for the Astra theme.
Author: Your Name
Author URI: http://example.com
Template: astra
Version: 1.0.2
*/

/* main css fixes */
body.archive .ast-archive-description {text-align:right;}

/* Custom outline button styling */
.nami-outline-button {
    background: transparent;
    color: var(--ast-global-color-3);
    border: 2px solid var(--ast-global-color-3);
    padding: 1rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: center;
    line-height: normal;
    text-decoration: none;
    display: inline-block;
}

/* Quiz Preview Mode Styling */
.quiz-preview-container .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 118, 41, 0.3);
}

.quiz-preview-container .cta-button.secondary:hover {
    background: white !important;
    color: #F47629 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.quiz-option-preview:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
}

/* Mobile Responsive for Preview Mode */
@media (max-width: 768px) {
    .quiz-preview-container {
        max-width: 100% !important;
        margin: 10px !important;
    }
    
    .access-cta {
        padding: 20px !important;
    }
    
    .access-cta h3 {
        font-size: 1.2em !important;
    }
    
    .cta-benefits {
        text-align: center !important;
    }
    
    .cta-button {
        display: block !important;
        margin: 10px 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .quiz-option-preview {
        font-size: 0.9em !important;
    }
}


/* single course question */
article.course_question {text-align:center; padding-top:30px;}

.course-nav-container {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse; /* swap sides */
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 2px solid var(--ast-global-color-8);
  direction: rtl;
  gap: 15px;
  flex-wrap: wrap;
}

.course-nav-link {
  flex: 1;
  max-width: 200px;
}

.course-nav-link.center-link {
  flex: 1.5;
  max-width: 300px;
  order: 2;
}

.course-nav-link.next-link {
  order: 1;
}

.course-nav-link.prev-link {
  order: 3;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ast-global-color-7);
  color: var(--ast-global-color-3);
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--ast-global-color-8);
  transition: all 0.3s ease;
  min-height: 50px;
  width: 100%;
  box-shadow: 0 2px 6px rgba(30, 41, 59, 0.05);
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
  background: var(--ast-global-color-4);
  border-color: var(--ast-global-color-1);
  color: var(--ast-global-color-2);
  text-decoration: none;
}

.nav-arrow {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--ast-global-color-1);
  min-width: 20px;
  text-align: center;
}

.nav-text {
  flex: 1;
  text-align: center;
}

.nav-button.back-to-topic {
  justify-content: center;
}

/* Mobile responsive for course navigation */
@media (max-width: 768px) {
  .course-nav-container {
    flex-direction: column;
  }

  .course-nav-link {
    max-width: 100%;
    order: initial !important;
  }

  .course-nav-link.center-link {
    max-width: 100%;
    order: 2;
  }

  .course-nav-link.prev-link {
    order: 1;
  }

  .course-nav-link.next-link {
    order: 3;
  }
}

.quiz-container fieldset {
  display: flex;
  flex-direction: column;  /* stack vertically */
  gap: 0.75rem;            /* space between buttons */
  margin-bottom: 1rem;
}

.quiz-option {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  background: var(--ast-global-color-4);
  border: 1px solid var(--ast-global-color-8);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  line-height: normal;
  color: var(--ast-global-color-3);
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 6px rgba(30, 41, 59, 0.05);
}

.quiz-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(30, 41, 59, 0.12);
  background: var(--ast-global-color-4) !important;
  border-color: var(--ast-global-color-8) !important;
  color: var(--ast-global-color-3) !important;
}

.quiz-option:focus {
  outline: none;
  border-color: var(--ast-global-color-1);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.quiz-option-selected {
  background: var(--ast-global-color-1) !important;
  color: var(--ast-global-color-4) !important;
  border-color: var(--ast-global-color-1) !important;
}

.quiz-option-selected:hover {
  background: var(--ast-global-color-1) !important;
  color: var(--ast-global-color-4) !important;
  border-color: var(--ast-global-color-1) !important;
}

.quiz-option-correct {
  background: #10B981 !important;
  color: white !important;
  border-color: #10B981 !important;
}

.quiz-option-correct:hover {
  background: #10B981 !important;
  color: white !important;
  border-color: #10B981 !important;
}

.quiz-option-incorrect {
  background: #EF4444 !important;
  color: white !important;
  border-color: #EF4444 !important;
}

.quiz-option-incorrect:hover {
  background: #EF4444 !important;
  color: white !important;
  border-color: #EF4444 !important;
}

.quiz-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.quiz-option:disabled:hover {
  transform: none !important;
  box-shadow: 0 2px 6px rgba(30, 41, 59, 0.05) !important;
}

/* Answer options styling */
.answer-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.answer-options li {
  margin: 0 0 0.75rem 0;
}

.answer-options li label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  border: 2px solid #D1D5DB;
  border-radius: 8px;
  background: #FFFFFF;
  transition: all 0.2s ease;
  line-height: 1.6;
}

.answer-options li label:hover {
  border-color: #046BD2;
  background: #F0F5FA;
}

.answer-options li label input[type="radio"] {
  flex-shrink: 0;
  margin: 4px 0 0 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.answer-options li label input[type="radio"]:checked {
  accent-color: #F47629;
}

.answer-options li label input[type="radio"]:checked + span {
  font-weight: 600;
}

.answer-options li:has(input[type="radio"]:checked) label {
  border-color: #F47629;
  background: #FFF7ED;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .answer-options li label {
    padding: 14px 12px;
    font-size: 0.95rem;
  }

  .answer-options li label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }
}

/* Quiz submit and retry buttons */
.quiz-submit-btn, .quiz-retry-btn {
  background: var(--ast-global-color-0);
  color: var(--ast-global-color-4);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  min-width: 120px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.quiz-submit-btn:hover, .quiz-retry-btn:hover {
  background: var(--ast-global-color-0);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.quiz-retry-btn {
  background: var(--ast-global-color-1);
  margin-top: 10px;
}

.quiz-retry-btn:hover {
  background: var(--ast-global-color-1);
  opacity: 0.9;
}

/* Test navigation buttons */
.test-navigation-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.test-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ast-global-color-7);
  color: var(--ast-global-color-3);
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--ast-global-color-8);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
  min-width: 120px;
  box-shadow: 0 2px 6px rgba(30, 41, 59, 0.05);
}

.test-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
  background: var(--ast-global-color-4);
  border-color: var(--ast-global-color-1);
  color: var(--ast-global-color-2);
}

.test-nav-btn:focus {
  outline: none;
  background: var(--ast-global-color-7) !important;
  border-color: var(--ast-global-color-8) !important;
  color: var(--ast-global-color-3) !important;
}

.test-nav-btn:active {
  background: var(--ast-global-color-7) !important;
  border-color: var(--ast-global-color-8) !important;
  color: var(--ast-global-color-3) !important;
  transform: translateY(0);
}

.test-nav-btn .nav-arrow {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--ast-global-color-1);
  min-width: 20px;
  text-align: center;
}

.test-nav-btn .nav-text {
  flex: 1;
  text-align: center;
}

.test-submit-btn {
  background: var(--ast-global-color-0);
  color: var(--ast-global-color-4);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
  min-width: 140px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.test-submit-btn:hover {
  background: var(--ast-global-color-0);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* Test completion results styling */
.test-completion-results {
    direction: rtl;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.test-completion-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.test-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.test-action-btn.primary {
    background: var(--ast-global-color-0);
    color: var(--ast-global-color-4);
}

.test-action-btn.primary:hover {
    background: var(--ast-global-color-0);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: var(--ast-global-color-4);
}

.test-action-btn.secondary {
    background: var(--ast-global-color-1);
    color: var(--ast-global-color-4);
}

.test-action-btn.secondary:hover {
    background: var(--ast-global-color-1);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: var(--ast-global-color-4);
}

div#test-container {padding-top:30px;}
div#test-container ul {list-style: none; margin: 20px 0;}

/* Course Topic View Styling */
.course-topic-header {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid var(--ast-global-color-8);
}

.course-topic-title {
    color: var(--ast-global-color-2);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    direction: rtl;
}

.course-topic-description {
    color: var(--ast-global-color-3);
    font-size: 1.1rem;
    margin: 0;
    direction: rtl;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
    direction: rtl;
}

.question-card {
    background: var(--ast-global-color-4);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--ast-global-color-8);
    display: flex;
    flex-direction: column;
}

.question-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.15);
}

.question-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.question-link:hover {
    text-decoration: none !important;
}

.question-card .question-content {
    padding: 20px;
    flex-grow: 1;
    background: var(--ast-global-color-7);
    border-bottom: 1px solid var(--ast-global-color-8);
}

.question-number {
    color: var(--ast-global-color-2);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: right;
}

.question-title {
    color: var(--ast-global-color-2);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    text-align: right;
    direction: rtl;
}

.question-card .question-status {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 12px 12px;
}

.question-card .question-status.correct {
    background: #10B981;
    color: white;
}

.question-card .question-status.incorrect {
    background: #EF4444;
    color: white;
}

.question-card .question-status.unanswered {
    background: #6B7280;
    color: white;
}

.status-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.status-text {
    font-size: 0.9rem;
}

/* Responsive Design for Questions Grid */
@media (max-width: 768px) {
    .questions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 10px;
    }
    
    .course-topic-title {
        font-size: 1.6rem;
    }
    
    .question-card .question-content {
        padding: 15px;
    }
    
    .question-card .question-status {
        padding: 12px 15px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .course-topic-header {
        margin-bottom: 20px;
        padding: 15px 10px;
    }
    
    .course-topic-title {
        font-size: 1.4rem;
    }
    
    .questions-grid {
        gap: 12px;
    }
    
    .question-title {
        font-size: 1rem;
    }
    
    .question-number {
        font-size: 0.85rem;
    }
}

/* Enhanced Test Selection Interface Styling */
.test-type-selection {
    direction: rtl;
    margin: 20px 0;
}

.test-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.test-option {
    background: var(--ast-global-color-7);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid var(--ast-global-color-8);
    padding: 30px 25px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.test-option:hover, .test-option.hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.15);
}

.test-option.selected {
    border-color: var(--ast-global-color-1);
    background: var(--ast-global-color-7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.test-option-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-option h3 {
    color: var(--ast-global-color-2);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    direction: rtl;
    line-height: 1.3;
}

.test-option p {
    color: var(--ast-global-color-3);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 25px 0;
    direction: rtl;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.test-start-btn {
    background: var(--ast-global-color-0);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.test-start-btn:hover {
    background: var(--ast-global-color-0);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.test-start-btn:active {
    transform: translateY(0);
}

.test-start-btn:disabled {
    background: var(--ast-global-color-8);
    color: white;
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.test-start-btn:disabled:hover {
    background: var(--ast-global-color-8);
    opacity: 0.6;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.test-option[data-test-type="topic"] .test-start-btn {
    background: var(--ast-global-color-1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.test-option[data-test-type="topic"] .test-start-btn:hover {
    background: var(--ast-global-color-1);
    opacity: 0.9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#topic-selector {
    width: 100%;
    padding: 15px 15px;
    margin: 15px 0;
    border: 2px solid var(--ast-global-color-8);
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    height: auto;
    min-height: 50px;
    background: var(--ast-global-color-4);
    color: var(--ast-global-color-2);
    direction: rtl;
    text-align: right;
    transition: border-color 0.3s ease;
    vertical-align: top;
}

#topic-selector option {
    padding: 8px 15px;
    line-height: 1.5;
    direction: rtl;
    text-align: right;
    min-height: 40px;
    display: block;
}

#topic-selector:focus {
    border-color: var(--ast-global-color-1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Current Test Info Styling */
.current-test-info {
    background: var(--ast-global-color-7);
    border: 1px solid var(--ast-global-color-8);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    direction: rtl;
    text-align: right;
}

.current-test-info p {
    margin: 8px 0;
    color: var(--ast-global-color-3);
    font-size: 1rem;
}

.current-test-info strong {
    color: var(--ast-global-color-2);
    font-weight: 600;
}

.test-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    direction: rtl;
    justify-content: flex-start;
}

.test-actions .ast-button, .test-actions .nami-outline-button {
    flex: 1;
    text-align: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.test-actions .ast-button {
    background: var(--ast-global-color-0);
    color: white;
    border: 2px solid var(--ast-global-color-3);
}

.test-actions .ast-button:hover {
    background: var(--ast-global-color-0);
    opacity: 0.8;
    border-color: var(--ast-global-color-0);
    transform: translateY(-2px);
}

.test-actions .nami-outline-button {
    background: transparent;
    color: var(--ast-global-color-3);
    border: 2px solid var(--ast-global-color-3);
}

.test-actions .nami-outline-button:hover {
    background: var(--ast-global-color-1);
    color: var(--ast-global-color-4);
    transform: translateY(-2px);
}

/* Responsive Design for Test Selection */
@media (max-width: 768px) {
    .test-options-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 10px;
    }
    
    .test-option {
        padding: 25px 20px;
    }
    
    .test-option-icon {
        font-size: 2.5rem;
        height: 60px;
    }
    
    .test-option h3 {
        font-size: 1.2rem;
    }
    
    .test-option p {
        font-size: 0.95rem;
        min-height: 40px;
    }
    
    .current-test-info {
        padding: 15px;
        margin: 15px 0;
    }
    
    .test-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .test-option {
        padding: 20px 15px;
    }
    
    .test-option-icon {
        font-size: 2rem;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .test-option h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .test-option p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .test-start-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .current-test-info p {
        font-size: 0.9rem;
    }
}

/* Test Navigation Styling */
.test-navigation {
    text-align: center;
    margin-top: 15px;
}

.history-link {
    display: inline-block;
    background: var(--ast-global-color-1);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.history-link:hover {
    background: var(--ast-global-color-1);
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: white;
}

/* Test Progress Indicator Styling */
.test-progress-container {
    background: var(--ast-global-color-4);
    border: 2px solid var(--ast-global-color-8);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    direction: rtl;
    text-align: center;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
    transition: all 0.3s ease;
}

.test-progress-container.completed {
    border-color: #10B981;
    background: linear-gradient(135deg, #FFFFFF, #F0FDF4);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.test-progress-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ast-global-color-2);
}

.current-question-number {
    color: var(--ast-global-color-0);
    font-size: 1.3rem;
    font-weight: 700;
}

.progress-separator {
    color: var(--ast-global-color-8);
    font-weight: 500;
}

.total-questions {
    color: var(--ast-global-color-1);
    font-weight: 700;
    font-size: 1.2rem;
}

.progress-label {
    color: var(--ast-global-color-3);
    font-weight: 500;
}

.test-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--ast-global-color-5);
    border-radius: 6px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ast-global-color-3), var(--ast-global-color-2));
    border-radius: 6px;
    transition: width 0.4s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.test-progress-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.questions-remaining,
.questions-unanswered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.questions-unanswered {
    padding: 6px 12px;
    border-radius: 6px;
    background: #f3f4f6;
    transition: all 0.3s ease;
}

.questions-unanswered.has-unanswered {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
}

.questions-unanswered.has-unanswered .unanswered-count {
    color: #D97706;
    font-weight: 700;
}

.remaining-count {
    color: var(--ast-global-color-6);
    font-weight: 700;
    font-size: 1.1rem;
}

.remaining-label {
    color: var(--ast-global-color-8);
    font-weight: 500;
}

.test-progress-container.completed .remaining-count {
    color: #10B981;
}

.test-progress-container.completed .current-question-number {
    color: #10B981;
}

/* Responsive Design for Progress Indicator */
@media (max-width: 768px) {
    .test-progress-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .test-progress-info {
        font-size: 1rem;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .current-question-number, .total-questions {
        font-size: 1.2rem;
    }
    
    .test-progress-bar {
        height: 10px;
        margin: 12px 0;
    }
}

@media (max-width: 480px) {
    .test-progress-container {
        padding: 12px;
    }
    
    .test-progress-info {
        font-size: 0.9rem;
        gap: 4px;
    }
    
    .current-question-number, .total-questions {
        font-size: 1.1rem;
    }
    
    .test-progress-bar {
        height: 8px;
        margin: 10px 0;
    }
    
    .questions-remaining {
        font-size: 0.85rem;
        gap: 4px;
    }
}

/* Test Registration Section */
.test-registration-info {
    background: var(--ast-global-color-4);
    border: 1px solid var(--ast-global-color-8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
}

.user-test-registration h4,
.no-test-registration h4 {
    color: var(--ast-global-color-2);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-test-registration-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.edit-test-registration-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.test-registration-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-date-info {
    font-size: 1.1rem;
    color: var(--ast-global-color-2);
}

.test-type-info {
    margin: 8px 0;
}

.test-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.test-type.engineer {
    background: #dbeafe;
    color: #1e40af;
}

.test-type.general {
    background: #f3f4f6;
    color: #374151;
}

.days-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-number {
    background: var(--ast-global-color-7);
    color: var(--ast-global-color-3);
    font-size: 1.5rem;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 50px;
    text-align: center;
}

.countdown-label {
    font-size: 0.95rem;
    color: var(--ast-global-color-3);
    font-weight: 600;
}

.test-today {
    background: #dcfce7;
    color: #166534;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.test-passed {
    background: #f3f4f6;
    color: #6b7280;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    font-style: italic;
}

.no-test-registration p {
    color: var(--ast-global-color-8);
    margin: 0 0 15px 0;
    line-height: 1.6;
}

/* Test Registration Inline Form */
.test-registration-form-inline {
    margin-top: 20px;
    background: var(--ast-global-color-4);
    border: 1px solid var(--ast-global-color-8);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    direction: rtl;
}

.test-registration-form-inline .form-container {
    padding: 25px;
}

.test-registration-form-inline h4 {
    color: var(--ast-global-color-2);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--ast-global-color-2);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group select,
.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--ast-global-color-8);
    border-radius: 6px;
    font-size: 1rem;
    direction: rtl;
    box-sizing: border-box;
    min-height: 48px;
    line-height: 1.4;
}

.form-group input[type="checkbox"] {
    margin-left: 8px;
    margin-right: 0;
}

.form-group small {
    display: block;
    color: var(--ast-global-color-8);
    font-size: 0.85rem;
    margin-top: 5px;
    line-height: 1.4;
}

.form-actions, .modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--ast-global-color-8);
}

.form-actions .button, .modal-actions .button {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.form-actions .button-primary, .modal-actions .button-primary {
    background: var(--ast-global-color-0);
    color: white;
}

.form-actions .button-primary:hover, .modal-actions .button-primary:hover {
    opacity: 0.9;
}

.form-actions .button:not(.button-primary):not(.button-link-delete), .modal-actions .button:not(.button-primary):not(.button-link-delete) {
    background: var(--ast-global-color-8);
    color: var(--ast-global-color-2);
}

.form-actions .button-link-delete, .modal-actions .button-link-delete {
    background: transparent;
    color: #ef4444;
    text-decoration: underline;
}

.form-actions .button-link-delete:hover, .modal-actions .button-link-delete:hover {
    background: #fef2f2;
}

/* Form Help Text */
.form-help-text {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 15px 0 0 0;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .test-registration-details {
        text-align: center;
    }
    
    .days-countdown {
        justify-content: center;
    }
    
    
    .form-actions, .modal-actions {
        flex-direction: column;
    }
    
    .form-actions .button, .modal-actions .button {
        width: 100%;
        text-align: center;
    }
}

/* Test History Interface Styling */
#test-history-container {
    direction: rtl;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.history-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid var(--ast-global-color-5);
}

.history-title {
    color: var(--ast-global-color-2);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.history-subtitle {
    color: var(--ast-global-color-8);
    font-size: 1.1rem;
    margin: 0;
}

/* Reset Progress Section */
.reset-progress-section {
    background: #FFF9F5;
    border: 2px solid var(--ast-global-color-0);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.reset-progress-section h3 {
    color: var(--ast-global-color-2);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.reset-progress-section h4 {
    color: var(--ast-global-color-2);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.reset-description {
    color: var(--ast-global-color-8);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.reset-by-topic-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #E5E7EB;
}

.topic-reset-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.topic-select {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.topic-reset-controls .reset-btn {
    flex: 1;
}

.topic-select:hover {
    border-color: var(--ast-global-color-0);
}

.topic-select:focus {
    outline: none;
    border-color: var(--ast-global-color-0);
    box-shadow: 0 0 0 3px rgba(244, 118, 41, 0.1);
}

.reset-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.reset-btn {
    flex: 1;
    min-width: 180px;
    padding: 12px 20px;
    border: 2px solid;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reset-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.reset-learning {
    background: white;
    color: var(--ast-global-color-1);
    border-color: var(--ast-global-color-1);
}

.reset-learning:hover:not(:disabled) {
    background: var(--ast-global-color-1);
    color: white;
}

.reset-tests {
    background: white;
    color: var(--ast-global-color-0);
    border-color: var(--ast-global-color-0);
}

.reset-tests:hover:not(:disabled) {
    background: var(--ast-global-color-0);
    color: white;
}

.reset-all {
    background: white;
    color: #DC2626;
    border-color: #DC2626;
}

.reset-all:hover:not(:disabled) {
    background: #DC2626;
    color: white;
}

.no-tests-message {
    text-align: center;
    background: var(--ast-global-color-7);
    border-radius: 16px;
    padding: 60px 40px;
    margin: 40px 0;
    border: 2px solid var(--ast-global-color-8);
}

.no-tests-message h3 {
    color: var(--ast-global-color-2);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.no-tests-message p {
    color: var(--ast-global-color-8);
    font-size: 1rem;
    margin-bottom: 30px;
}

.start-test-btn {
    display: inline-block;
    background: var(--ast-global-color-0);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.start-test-btn:hover {
    background: var(--ast-global-color-0);
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: white;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.test-history-card {
    background: var(--ast-global-color-4);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
    border: 1px solid var(--ast-global-color-8);
    padding: 25px;
    transition: all 0.3s ease;
}

.test-history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.15);
}

.test-header h3 {
    color: var(--ast-global-color-2);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.test-topic {
    color: var(--ast-global-color-2);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 5px 0;
}

.test-date {
    color: var(--ast-global-color-3);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.test-skipped-notice {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.test-score {
    text-align: center;
    margin: 20px 0;
}

.score-number {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.score-number.pass {
    color: #10B981;
}

.score-number.fail {
    color: #EF4444;
}

.score-details {
    color: var(--ast-global-color-8);
    font-size: 0.9rem;
}

.test-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    background: var(--ast-global-color-7);
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--ast-global-color-8);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.stat-value {
    color: var(--ast-global-color-2);
    font-weight: 600;
    font-size: 0.95rem;
}

.test-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.review-btn, .delete-btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.review-btn {
    background: var(--ast-global-color-1);
    color: white;
    border: 2px solid var(--ast-global-color-2);
}

.review-btn:hover {
    background: var(--ast-global-color-1);
    opacity: 0.8;
    border-color: var(--ast-global-color-1);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.delete-btn {
    background: transparent;
    color: var(--ast-global-color-6);
    border: 2px solid var(--ast-global-color-6);
}

.delete-btn:hover {
    background: var(--ast-global-color-6);
    color: white;
    transform: translateY(-2px);
}

.delete-btn:disabled {
    background: var(--ast-global-color-6);
    color: white;
    border-color: var(--ast-global-color-6);
    cursor: not-allowed;
    transform: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--ast-global-color-8);
    background: var(--ast-global-color-8);
    color: var(--ast-global-color-3);
}

.page-btn.current {
    background: var(--ast-global-color-1);
    color: white;
    border-color: var(--ast-global-color-1);
}

.page-btn:hover {
    background: var(--ast-global-color-0);
    color: white;
    border-color: var(--ast-global-color-0);
    text-decoration: none;
}

/* Test Review Detail Styling */
.test-review-detail {
    max-width: 800px;
    margin: 0 auto;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.back-to-history {
    color: var(--ast-global-color-2);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid var(--ast-global-color-2);
    transition: all 0.3s ease;
}

.back-to-history:hover {
    background: var(--ast-global-color-1);
    color: white;
    text-decoration: none;
}

.review-title {
    color: var(--ast-global-color-2);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.test-summary-card {
    background: var(--ast-global-color-4);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
    border: 1px solid var(--ast-global-color-8);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-info h2 {
    color: var(--ast-global-color-2);
    font-size: 1.4rem;
    margin: 0 0 10px 0;
}

.test-topic, .test-date {
    color: var(--ast-global-color-3);
    margin: 5px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.score-circle.pass {
    background: linear-gradient(135deg, #10B981, #059669);
}

.score-circle.fail {
    background: #EF4444;
}

.score-percentage {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.score-fraction {
    font-size: 0.9rem;
    opacity: 0.9;
}

.questions-review h3 {
    color: var(--ast-global-color-2);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.question-review-card {
    background: var(--ast-global-color-4);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid var(--ast-global-color-8);
    transition: all 0.3s ease;
}

.question-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 41, 59, 0.12);
}

.question-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px 15px;
    background: var(--ast-global-color-7);
    border-bottom: 1px solid var(--ast-global-color-8);
}

.question-review-card .question-status {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.question-review-card .question-status.correct {
    background: #10B981;
}

.question-review-card .question-status.incorrect {
    background: #EF4444;
}

.question-title {
    color: var(--ast-global-color-2);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.question-review-card .question-content {
    padding: 20px 25px;
    color: var(--ast-global-color-3);
    line-height: 1.6;
}

.answers-section {
    padding: 0 25px 20px;
}

.user-answer, .correct-answer {
    margin: 15px 0;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--ast-global-color-7);
}

.user-answer {
    border: 2px solid var(--ast-global-color-8);
}

.correct-answer {
    border: 2px solid #10B981;
    background: var(--ast-global-color-7);
}

.answer-text.correct {
    color: #10B981;
    font-weight: 600;
}

.answer-text.incorrect {
    color: #EF4444;
    font-weight: 600;
}

.explanation {
    margin-top: 15px;
    padding: 15px;
    background: var(--ast-global-color-7);
    border: 1px solid var(--ast-global-color-8);
    border-radius: 8px;
}

.explanation strong {
    color: var(--ast-global-color-2);
}

.question-actions {
    padding: 15px 25px;
    background: var(--ast-global-color-7);
    border-top: 1px solid var(--ast-global-color-8);
    text-align: center;
}

.practice-question {
    display: inline-block;
    background: var(--ast-global-color-0);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.practice-question:hover {
    background: var(--ast-global-color-0);
    opacity: 0.8;
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design for Test History */
@media (max-width: 768px) {
    #test-history-container {
        padding: 15px;
    }
    
    .history-title {
        font-size: 1.8rem;
    }
    
    .tests-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .test-history-card {
        padding: 20px;
    }
    
    .test-summary-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-percentage {
        font-size: 1.5rem;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .test-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .test-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .question-review-card .question-content, .answers-section {
        padding: 15px 20px;
    }
    
    .no-tests-message {
        padding: 40px 20px;
    }
}

/* Course Topics Page Styling */
.course-topics-page {
    direction: rtl;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.course-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
    direction: rtl;
}

.topic-card {
    background: var(--ast-global-color-4);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--ast-global-color-8);
    display: flex;
    flex-direction: column;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.15);
}

.topic-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.topic-link:hover {
    text-decoration: none !important;
}

.topic-header {
    padding: 20px;
    text-align: center;
    position: relative;
    background: var(--ast-global-color-7);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.topic-header-title {
    color: var(--ast-global-color-3);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    flex-grow: 1;
    padding: 0 10px;
}

.topic-content {
    padding: 20px;
}

.progress-bar {
    margin: 0 0 15px 0;
}

.progress-segments {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--ast-global-color-8);
}

.progress-segment {
    transition: all 0.3s ease;
}

.progress-segment.correct {
    background: #10B981;
}

.progress-segment.incorrect {
    background: #EF4444;
}

.progress-segment.unanswered {
    background: var(--ast-global-color-8);
}

.topic-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ast-global-color-7);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid var(--ast-global-color-8);
}

.question-count {
    font-weight: 600;
    color: var(--ast-global-color-3);
    font-size: 0.95rem;
}

.progress-summary {
    display: flex;
    gap: 8px;
    align-items: center;
}

.progress-summary span {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
}

.correct-count {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.incorrect-count {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.unanswered-count {
    color: #6B7280;
    background: rgba(107, 114, 128, 0.1);
}

.no-topics-message {
    text-align: center;
    font-size: 1.1rem;
    color: var(--ast-global-color-3);
    padding: 40px 20px;
    background: var(--ast-global-color-7);
    border-radius: 8px;
    border: 1px solid var(--ast-global-color-8);
}

/* Access denied message styling */
.access-denied-message {
    text-align: center;
    background: var(--ast-global-color-7);
    border-radius: 16px;
    padding: 60px 40px;
    margin: 40px 0;
    border: 2px solid var(--ast-global-color-8);
    direction: rtl;
}

.access-denied-message h2 {
    color: var(--ast-global-color-2);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.access-denied-message p {
    color: var(--ast-global-color-3);
    font-size: 1rem;
    margin: 0;
}

/* Responsive Design for Course Topics */
@media (max-width: 768px) {
    .course-topics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .topic-card {
        margin: 0 10px;
    }
    
    .topic-header-title {
        font-size: 1.1rem;
    }
    
    .topic-header {
        padding: 15px;
        min-height: 70px;
    }
    
    .topic-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .course-topics-grid {
        gap: 12px;
    }
    
    .topic-header-title {
        font-size: 1rem;
    }
    
    .topic-stats {
        padding: 10px 14px;
        flex-direction: column;
        gap: 8px;
    }
    
    .question-count {
        font-size: 0.9rem;
    }
    
    .progress-summary {
        gap: 6px;
    }
    
    .progress-summary span {
        font-size: 0.8rem;
        padding: 1px 4px;
    }
    
    .topic-header {
        padding: 12px 15px;
        min-height: 40px;
    }
}

/* ===== DASHBOARD STYLING ===== */

.dashboard-container {
    direction: rtl;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

/* Welcome Section */
.dashboard-welcome {
    background: linear-gradient(135deg, #F0F5FA 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 40px;
    border: 2px solid #D1D5DB;
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.08);
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-title {
    color: #1E293B;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.access-status-badge {
    flex-shrink: 0;
}

.welcome-content {
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.6;
}

.course-structure-info h3 {
    color: #1E293B;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.course-structure-info p {
    margin-bottom: 20px;
}

.access-info {
    background: rgba(244, 118, 41, 0.1);
    border: 1px solid #F47629;
    border-radius: 8px;
    padding: 15px 20px;
    color: #1E293B;
    font-weight: 500;
}

/* Main Action Cards */
.dashboard-actions {
    margin-bottom: 50px;
}

.action-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.action-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.12);
    border: 2px solid #D1D5DB;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(30, 41, 59, 0.18);
    border-color: #F47629;
}

.practice-card {
    border-left: 6px solid #046BD2;
}

.tests-card {
    border-left: 6px solid #F47629;
}

.card-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    flex-grow: 1;
    margin-bottom: 30px;
}

.action-card h3 {
    color: #1E293B;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    text-align: center;
    line-height: 1.3;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    padding: 20px;
    background: #F0F5FA;
    border-radius: 12px;
    border: 1px solid #D1D5DB;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 5px;
}

.stat-number.progress-correct {
    color: #10B981;
}

.stat-number.score-pass {
    color: #10B981;
}

.stat-number.score-fail {
    color: #EF4444;
}

.stat-label {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

.recent-topic, .learning-streak, .latest-test {
    background: #F0F5FA;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #D1D5DB;
    font-size: 0.95rem;
    color: #334155;
}

.recent-topic strong, .learning-streak strong, .latest-test strong {
    color: #1E293B;
}

.recent-topic a {
    color: #046BD2;
    text-decoration: none;
    font-weight: 600;
}

.recent-topic a:hover {
    text-decoration: underline;
}

.test-types-preview {
    background: #F0F5FA;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    margin: 15px 0;
}

.test-type-item {
    color: #334155;
    font-size: 0.9rem;
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid #D1D5DB;
}

.test-type-item:last-child {
    border-bottom: none;
}

.test-type-stats {
    font-size: 0.8rem;
    margin-top: 4px;
    color: #6b7280;
}

.test-type-stats .attempts {
    color: #334155;
}

.test-type-stats .best-score {
    color: #059669;
    font-weight: 600;
}

.test-type-stats .no-attempts {
    color: #9ca3af;
    font-style: italic;
}

/* Monthly Progress Chart */
.progress-card.monthly-trend.full-width {
    grid-column: 1 / -1; /* Full width across all columns */
    margin-top: 20px;
}

.monthly-chart {
    display: flex;
    align-items: end;
    gap: 2px;
    height: 120px;
    padding: 10px;
    margin: 15px 0;
    border-bottom: 1px solid #D1D5DB;
    width: 100%;
    box-sizing: border-box;
}

.trend-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    flex: 1;
    min-width: 0;
    height: 100%;
}

.day-bar {
    width: 80%;
    max-width: 12px;
    min-width: 6px;
    min-height: 2px;
    background: linear-gradient(to top, #F47629, #046BD2);
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
}

.trend-day:hover .day-bar {
    width: 90%;
    background: #F47629;
}

.day-count {
    position: absolute;
    bottom: -20px;
    font-size: 10px;
    font-weight: 600;
    color: #334155;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.chart-legend {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #D1D5DB;
    margin-top: 10px;
}

.legend-item {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Tutorial System Styles */
.dashboard-tutorial {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border: 2px solid #046BD2;
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(4, 107, 210, 0.15);
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(4, 107, 210, 0.1);
    border-bottom: 1px solid rgba(4, 107, 210, 0.2);
}

.tutorial-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutorial-icon {
    font-size: 1.5rem;
}

.tutorial-title h3 {
    margin: 0;
    color: #1E293B;
    font-size: 1.1rem;
}

.tutorial-controls {
    display: flex;
    gap: 10px;
}

.tutorial-btn {
    background: #046BD2;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tutorial-btn:hover {
    background: #0056B3;
    transform: translateY(-1px);
}

.tutorial-btn.tutorial-toggle {
    background: #6B7280;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tutorial-btn.tutorial-toggle:hover {
    background: #4B5563;
}

.tutorial-content {
    padding: 20px;
}

.tutorial-steps {
    margin-bottom: 20px;
}

.tutorial-step {
    display: none;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tutorial-all-steps .tutorial-step {
    display: block;
    margin-bottom: 20px;
}

.tutorial-all-steps .tutorial-step:last-child {
    margin-bottom: 0;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-number {
    background: #F47629;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.step-header h4 {
    margin: 0;
    color: #1E293B;
    font-size: 1.2rem;
}

.step-content p {
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 15px;
}

.step-highlight {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 6px;
    padding: 12px 15px;
    color: #92400E;
    font-weight: 600;
    margin-top: 10px;
}

.learning-path {
    background: #F8FAFC;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.learning-path li {
    color: #374151;
    margin: 8px 0;
    line-height: 1.5;
}

/* Tutorial Topic Example */
.tutorial-topic-example {
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.example-topic-card {
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.topic-header h3 {
    margin: 0;
    color: #1E293B;
    font-size: 1.1rem;
}

.topic-questions {
    color: #6B7280;
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-bar-demo {
    display: flex;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-segment.correct {
    background: #10B981;
}

.progress-segment.incorrect {
    background: #EF4444;
}

.progress-segment.unanswered {
    background: #E5E7EB;
}

.progress-numbers {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

.correct-count {
    color: #10B981;
    font-weight: 600;
}

.incorrect-count {
    color: #EF4444;
    font-weight: 600;
}

.unanswered-count {
    color: #6B7280;
    font-weight: 600;
}

.tutorial-explanations {
    margin-top: 15px;
}

.explanation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 0.9rem;
}

.explanation-pointer {
    color: #6B7280;
    font-weight: bold;
    min-width: 20px;
}

.explanation-pointer.color-correct {
    color: #10B981;
}

.explanation-pointer.color-incorrect {
    color: #EF4444;
}

.explanation-pointer.color-unanswered {
    color: #6B7280;
}

.explanation-text {
    color: #374151;
    line-height: 1.4;
}


.tutorial-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid #E5E7EB;
}

.tutorial-action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutorial-action-btn.primary {
    background: #F47629;
    color: white;
}

.tutorial-action-btn.primary:hover {
    background: #E56317;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 118, 41, 0.3);
}

.tutorial-action-btn.secondary {
    background: #E5E7EB;
    color: #374151;
}

.tutorial-action-btn.secondary:hover {
    background: #D1D5DB;
}


/* Access Status Styling */
.status-paused {
    color: #F59E0B;
    font-weight: 600;
}

.status-expired {
    color: #EF4444;
    font-weight: 600;
}

.status-cancelled {
    color: #6B7280;
    font-weight: 600;
}

/* Tutorial responsive adjustments */
@media (max-width: 768px) {
    .tutorial-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .tutorial-title h3 {
        font-size: 1rem;
    }
    
    .tutorial-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .tutorial-actions {
        flex-direction: column;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Responsive adjustments for monthly chart */
@media (max-width: 768px) {
    .monthly-chart {
        gap: 1px;
        padding: 5px;
    }
    
    .day-bar {
        width: 70%;
        max-width: 8px;
        min-width: 4px;
    }
    
    .trend-day:hover .day-bar {
        width: 80%;
    }
    
    .day-count {
        font-size: 8px;
        bottom: -18px;
    }
}

.incomplete-test-alert {
    background: #FEF3C7;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #F59E0B;
    margin: 10px 0;
    font-weight: 500;
    text-align: center;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

/* Test Type Indicator */
.test-type-indicator {
    margin-bottom: 15px;
    text-align: center;
}

.test-type {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.test-type.engineer {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.test-type.general {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    color: #1e40af;
}

/* Progress Card Test Type */
.progress-test-type {
    text-align: center;
    margin-bottom: 15px;
}

.progress-type {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.progress-type.engineer {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.progress-type.general {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    color: #1e40af;
}

.primary-action-btn, .secondary-action-btn {
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.primary-action-btn {
    background: #F47629;
    color: white;
    border-color: #F47629;
}

.primary-action-btn:hover {
    background: #e65c00;
    border-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 118, 41, 0.4);
    text-decoration: none;
    color: white;
}

.secondary-action-btn {
    background: transparent;
    color: #046BD2;
    border-color: #046BD2;
}

.secondary-action-btn:hover {
    background: #046BD2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 107, 210, 0.4);
    text-decoration: none;
}

/* Progress Overview Section */
.dashboard-progress {
    margin-bottom: 50px;
}

.dashboard-progress h2 {
    color: #1E293B;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-align: center;
}

.progress-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.progress-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 24px rgba(30, 41, 59, 0.1);
    border: 1px solid #D1D5DB;
    transition: all 0.3s ease;
}

.progress-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.15);
}

.progress-card h3 {
    color: #1E293B;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Overall Progress Circle */
.progress-circle {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.circle-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#F47629 0deg, #F47629 calc(var(--progress) * 3.6deg), #D1D5DB calc(var(--progress) * 3.6deg));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-progress::before {
    content: '';
    width: 80px;
    height: 80px;
    background: #FFFFFF;
    border-radius: 50%;
    position: absolute;
}

.progress-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E293B;
    position: relative;
    z-index: 1;
}

.progress-details {
    text-align: center;
}

.detail-item {
    margin: 8px 0;
    font-size: 0.95rem;
}

.detail-label {
    color: #334155;
}

.detail-value {
    color: #1E293B;
    font-weight: 600;
}

/* Recent Activity */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #D1D5DB;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.activity-content {
    flex-grow: 1;
}

.activity-description {
    font-size: 0.95rem;
    color: #1E293B;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.8rem;
    color: #334155;
}

.activity-result {
    font-weight: 600;
}

.result-correct {
    color: #10B981;
    font-size: 1.1rem;
}

.result-incorrect {
    color: #EF4444;
    font-size: 1.1rem;
}

.result-score {
    color: #046BD2;
    font-size: 0.9rem;
}

.no-activity {
    text-align: center;
    padding: 40px 20px;
    color: #334155;
}

/* Achievement Badges */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.achievement-badge {
    text-align: center;
    padding: 15px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.achievement-badge.earned {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    border: 2px solid #10B981;
    color: #065F46;
}

.achievement-badge.locked {
    background: #F8FAFC;
    border: 2px solid #D1D5DB;
    color: #64748B;
    opacity: 0.6;
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.badge-name {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Weekly Trend Chart */
.trend-chart {
    display: flex;
    justify-content: space-around;
    align-items: end;
    height: 120px;
    padding: 15px 0;
    gap: 8px;
}

.trend-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 30px;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, #F47629, #FCA96A);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.day-label {
    font-size: 0.8rem;
    color: #334155;
    font-weight: 500;
}

/* Quick Access Features */
.dashboard-quick-access h2 {
    color: #1E293B;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-align: center;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.quick-access-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.08);
    border: 1px solid #D1D5DB;
    transition: all 0.3s ease;
}

.quick-access-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(30, 41, 59, 0.12);
}

.quick-access-item h4 {
    color: #1E293B;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.quick-access-item p {
    color: #334155;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.quick-access-btn {
    display: inline-block;
    background: #046BD2;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #046BD2;
}

.quick-access-btn:hover {
    background: #035BA1;
    border-color: #035BA1;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.recommended-topics, .weak-topics-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recommended-topic, .weak-topic {
    display: block;
    background: #F0F5FA;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #1E293B;
    border: 1px solid #D1D5DB;
    transition: all 0.3s ease;
}

.recommended-topic:hover, .weak-topic:hover {
    background: #046BD2;
    color: white;
    text-decoration: none;
    transform: translateX(-3px);
}

.topic-reason, .success-rate {
    display: block;
    font-size: 0.8rem;
    margin-top: 3px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 900px) {
    .action-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-cards {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 15px;
    }
    
    .dashboard-welcome {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .welcome-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .dashboard-title {
        font-size: 1.8rem;
    }
    
    .action-card {
        padding: 25px 20px;
    }
    
    .card-stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .stat-item {
        border-bottom: 1px solid #D1D5DB;
        padding-bottom: 10px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .progress-cards {
        grid-template-columns: 1fr;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .trend-chart {
        height: 100px;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .action-card h3 {
        font-size: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
        height: 60px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .progress-card {
        padding: 20px 15px;
    }
    
    .circle-progress {
        width: 100px;
        height: 100px;
    }
    
    .circle-progress::before {
        width: 70px;
        height: 70px;
    }
    
    .progress-text {
        font-size: 1.2rem;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-access-item {
        padding: 20px 15px;
    }
}

/* ===== SUBSCRIPTION PLANS STYLING ===== */

.subscription-plans-wrapper {
    direction: rtl;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.pricing-plans {
    direction: rtl;
}

.pricing-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.1);
    border: 2px solid #D1D5DB;
    transition: all 0.4s ease;
    position: relative;
    flex: 1;
    max-width: 380px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.pricing-card.duration-focused {
    max-width: 320px;
    min-height: 420px;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(30, 41, 59, 0.18);
    border-color: #F47629;
}

.pricing-card.popular {
    border-color: #F47629;
    border-width: 3px;
    transform: scale(1.05);
    box-shadow: 0 16px 48px rgba(244, 118, 41, 0.2);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-12px);
    box-shadow: 0 24px 64px rgba(244, 118, 41, 0.25);
}

.popular-badge {
    position: absolute;
    top: -21px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F47629, #E56317);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(244, 118, 41, 0.4);
    z-index: 10;
}

.plan-header {
    text-align: center;
    margin-bottom: 25px;
}

.plan-title {
    color: #1E293B;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.plan-duration {
    color: #334155;
    font-size: 1.1rem;
    font-weight: 500;
}

.plan-price {
    text-align: center;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 2px solid #F0F5FA;
    border-bottom: 2px solid #F0F5FA;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #334155;
    vertical-align: top;
    margin-left: 5px;
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1E293B;
    line-height: 0.9;
}

.plan-price .period {
    font-size: 1rem;
    color: #334155;
    font-weight: 500;
    display: block;
    margin-top: 8px;
}

.price-breakdown {
    margin-top: 8px;
}

.monthly-equivalent {
    font-size: 0.9rem;
    color: #10B981;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* Sale Price Styles */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.original-price {
    position: relative;
}

.original-price .amount.crossed-out {
    font-size: 2rem;
    color: #9CA3AF;
    text-decoration: line-through;
    font-weight: 500;
}

.original-price .currency {
    font-size: 1rem;
    color: #9CA3AF;
}

.sale-price {
    position: relative;
    display: flex;
    align-items: center;
}

.sale-badge {
    background: #EF4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Sale Countdown Styles */
.sale-countdown {
    margin-top: 12px;
    text-align: center;
}

.countdown-text {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    color: #374151;
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
}

.countdown-text.moderate {
    background: #FEF3C7;
    color: #92400E;
    border-color: #F59E0B;
}

.countdown-text.urgent {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #EF4444;
    animation: urgent-pulse 1.5s ease-in-out infinite;
}

@keyframes urgent-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.plan-highlights {
    margin: 20px 0;
    flex-grow: 1;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #334155;
}

.highlight-icon {
    color: #F47629;
    font-size: 1rem;
    min-width: 16px;
}

.plan-features {
    flex-grow: 1;
    margin: 25px 0;
}

.plan-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    padding: 12px 0;
    border-bottom: 1px solid #F0F5FA;
    line-height: 1.5;
}

.plan-features li:last-child {
    border-bottom: none;
}

.checkmark {
    color: #10B981;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 12px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-features li span:not(.checkmark) {
    color: #334155;
    font-size: 1rem;
    font-weight: 500;
}

.plan-description {
    background: #F0F5FA;
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #D1D5DB;
}

.plan-description p {
    color: #334155;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.plan-action {
    margin-top: auto;
    padding-top: 20px;
}

.plan-button {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.plan-button:not(.popular) {
    background: transparent;
    color: #046BD2;
    border-color: #046BD2;
}

.plan-button:not(.popular):hover {
    background: #046BD2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(4, 107, 210, 0.3);
    text-decoration: none;
}

.plan-button.popular {
    background: linear-gradient(135deg, #F47629, #E56317);
    color: white;
    border-color: #F47629;
    font-size: 1.3rem;
    padding: 18px 24px;
    box-shadow: 0 8px 24px rgba(244, 118, 41, 0.3);
}

.plan-button.popular:hover {
    background: linear-gradient(135deg, #E56317, #D55A0E);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(244, 118, 41, 0.4);
    text-decoration: none;
    color: white;
}

.plan-button.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.plan-button.popular:hover::before {
    left: 100%;
}

/* Current Access Status Banner */
.access-status-banner {
    margin: 50px auto 0;
    max-width: 600px;
    text-align: center;
}

.access-status-banner h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.access-status-banner p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Benefits Section */
.benefits-section h2 {
    color: #1E293B;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.benefits-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 6px 24px rgba(30, 41, 59, 0.08);
    border: 1px solid #D1D5DB;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(30, 41, 59, 0.12);
    border-color: #F47629;
}

.benefit-item h4 {
    color: #1E293B;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.benefit-item p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.no-plans-message {
    background: #F8FAFC;
    border: 2px solid #D1D5DB;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0;
}

.no-plans-message h3 {
    color: #1E293B;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.no-plans-message p {
    color: #334155;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design for Subscription Plans */
@media (max-width: 1200px) {
    .pricing-plans {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card.popular {
        transform: none;
        margin: 20px 0;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-12px);
    }
}

@media (max-width: 768px) {
    .subscription-plans-wrapper {
        padding: 15px;
    }
    
    .page-header {
        margin-bottom: 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .pricing-plans {
        gap: 25px;
        margin-top: 30px;
    }
    
    .pricing-card {
        max-width: none;
        width: 100%;
        padding: 25px 20px;
        min-height: auto;
    }
    
    .plan-title {
        font-size: 1.6rem;
    }
    
    .plan-price .amount {
        font-size: 2.8rem;
    }
    
    .plan-features li {
        margin: 12px 0;
        padding: 10px 0;
    }
    
    .plan-button {
        font-size: 1.1rem;
        padding: 14px 20px;
    }
    
    .plan-button.popular {
        font-size: 1.2rem;
        padding: 16px 20px;
    }
    
    .benefits-section h2 {
        font-size: 1.8rem;
    }
    
    .benefit-item {
        padding: 25px 20px;
    }
    
    .benefit-item h4 {
        font-size: 1.2rem;
    }
    
    .no-plans-message {
        padding: 40px 25px;
    }
    
    .no-plans-message h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .page-description {
        font-size: 0.95rem;
    }
    
    .pricing-card {
        padding: 20px 15px;
    }
    
    .plan-title {
        font-size: 1.4rem;
    }
    
    .plan-price .amount {
        font-size: 2.4rem;
    }
    
    .plan-price .currency {
        font-size: 1.2rem;
    }
    
    .plan-features li {
        font-size: 0.95rem;
    }
    
    .plan-button {
        font-size: 1rem;
        padding: 12px 16px;
    }
    
    .plan-button.popular {
        font-size: 1.1rem;
        padding: 14px 16px;
    }
    
    .popular-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .benefits-section h2 {
        font-size: 1.6rem;
    }
    
    .benefit-item {
        padding: 20px 15px;
    }
    
    .benefit-item h4 {
        font-size: 1.1rem;
    }
    
    .benefit-item p {
        font-size: 0.95rem;
    }
    
    .no-plans-message {
        padding: 30px 20px;
    }
}

/* Page Editor Content Styling for Subscription Plans */
.subscription-plans-wrapper .page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.subscription-plans-wrapper .page-header h1,
.subscription-plans-wrapper .page-header .entry-title {
    color: #1E293B !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.subscription-plans-wrapper .page-description,
.subscription-plans-wrapper .entry-content {
    color: #334155 !important;
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto 20px auto !important;
}

.subscription-plans-wrapper .entry-content p {
    color: #334155 !important;
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

.subscription-plans-wrapper .entry-content h2 {
    color: #1E293B !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 30px 0 20px 0 !important;
    text-align: center !important;
}

.subscription-plans-wrapper .entry-content h3 {
    color: #1E293B !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    margin: 25px 0 15px 0 !important;
    text-align: center !important;
}

.subscription-plans-wrapper .entry-content ul {
    max-width: 600px !important;
    margin: 0 auto 20px auto !important;
    text-align: right !important;
}

.subscription-plans-wrapper .entry-content li {
    color: #334155 !important;
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
}

.subscription-plans-wrapper .entry-content strong {
    color: #1E293B !important;
    font-weight: 600 !important;
}

.subscription-plans-wrapper .entry-content em {
    color: #F47629 !important;
    font-style: normal !important;
    font-weight: 600 !important;
}

/* Responsive adjustments for page content */
@media (max-width: 768px) {
    .subscription-plans-wrapper .page-header h1,
    .subscription-plans-wrapper .page-header .entry-title {
        font-size: 2rem !important;
    }
    
    .subscription-plans-wrapper .page-description,
    .subscription-plans-wrapper .entry-content,
    .subscription-plans-wrapper .entry-content p {
        font-size: 1.1rem !important;
    }
    
    .subscription-plans-wrapper .entry-content h2 {
        font-size: 1.7rem !important;
    }
    
    .subscription-plans-wrapper .entry-content h3 {
        font-size: 1.4rem !important;
    }
}

@media (max-width: 480px) {
    .subscription-plans-wrapper .page-header h1,
    .subscription-plans-wrapper .page-header .entry-title {
        font-size: 1.7rem !important;
    }
    
    .subscription-plans-wrapper .page-description,
    .subscription-plans-wrapper .entry-content,
    .subscription-plans-wrapper .entry-content p {
        font-size: 1rem !important;
    }
    
    .subscription-plans-wrapper .entry-content h2 {
        font-size: 1.5rem !important;
    }
    
    .subscription-plans-wrapper .entry-content h3 {
        font-size: 1.3rem !important;
    }
    
    .subscription-plans-wrapper .entry-content li {
        font-size: 1rem !important;
    }
}

/* Reviews Page Styling */
.reviews-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    direction: rtl;
}

.reviews-page .entry-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #D1D5DB;
}

.reviews-page .entry-title {
    color: #1E293B;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.reviews-page .entry-subtitle {
    color: #334155;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 400;
}

/* Reviews Summary */
.reviews-summary {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.rating-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: #F47629;
}

.stars {
    font-size: 1.5rem;
}

.review-count {
    color: #334155;
    font-size: 1.1rem;
}

/* Star Styling */
.star {
    color: #FCD34D;
    margin: 0 2px;
}

.star.star-full {
    color: #F59E0B;
}

.star.star-half {
    color: #F59E0B;
    opacity: 0.7;
}

.star.star-empty {
    color: #D1D5DB;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #D1D5DB;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F47629;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    color: #1E293B;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-rating {
    font-size: 1rem;
}

.review-date {
    color: #6B7280;
    font-size: 0.9rem;
}

.google-logo {
    flex-shrink: 0;
}

.google-icon {
    width: 24px;
    height: 24px;
}

.review-content {
    color: #334155;
    line-height: 1.6;
    font-size: 1rem;
}

.review-content p {
    margin: 0;
}

/* Reviews Footer */
.reviews-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #D1D5DB;
}

.google-attribution {
    color: #6B7280;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* No Reviews Message */
.no-reviews-message {
    text-align: center;
    padding: 3rem;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.no-reviews-message p {
    color: #6B7280;
    font-size: 1.1rem;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .reviews-page {
        padding: 1rem;
    }
    
    .reviews-page .entry-title {
        font-size: 2rem;
    }
    
    .reviews-page .entry-subtitle {
        font-size: 1rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .review-card {
        padding: 1.25rem;
    }
    
    .reviewer-info {
        gap: 0.75rem;
    }
    
    .reviewer-avatar,
    .avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .reviewer-name {
        font-size: 1rem;
    }
    
    .rating-number {
        font-size: 2.5rem;
    }
    
    .stars {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .reviews-page {
        padding: 0.5rem;
    }
    
    .reviews-page .entry-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .reviews-page .entry-title {
        font-size: 1.8rem;
    }
    
    .reviews-summary {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .review-card {
        padding: 1rem;
    }
    
    .review-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .google-logo {
        align-self: flex-end;
    }
}

/* Google Review CTA Button */
.google-review-button {
    margin-top: 1rem;
}

.review-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.review-cta-button:hover {
    background: #3367d6;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.review-cta-button .google-icon {
    flex-shrink: 0;
}

/* Load More Button */
.load-more-button {
    background: #F47629;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.load-more-button:hover {
    background: #e6651a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 118, 41, 0.3);
}

.load-more-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#loading-spinner {
    color: #666;
    font-style: italic;
}

/* Featured Reviews Shortcode Styles */
.featured-reviews-container {
    margin: 2rem 0;
}

.featured-reviews-grid {
    display: grid;
    gap: 1.5rem;
}

/* Row layout (default) */
.featured-reviews-row .featured-reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: start;
}

/* Column layout */
.featured-reviews-column .featured-reviews-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.featured-review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem 1.5rem 2.5rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.featured-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.featured-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F47629, #046BD2);
    border-radius: 12px 12px 0 0;
}

.featured-review-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 1rem;
}

.featured-review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    position: relative;
    padding: 1rem 1.5rem;
}

.featured-review-text::before {
    content: '"';
    font-size: 4rem;
    color: #F47629;
    position: absolute;
    top: -0.5rem;
    right: 0;
    line-height: 1;
    font-family: Georgia, serif;
    opacity: 0.7;
}

.featured-review-text::after {
    content: '"';
    font-size: 4rem;
    color: #F47629;
    position: absolute;
    bottom: -2rem;
    left: 0.5rem;
    line-height: 1;
    font-family: Georgia, serif;
    opacity: 0.7;
}

.featured-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.featured-reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-grow: 1;
}

.featured-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F47629, #e6651a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.featured-reviewer-details {
    flex-grow: 1;
}

.featured-reviewer-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.featured-review-location,
.featured-review-date {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.1rem;
}

.featured-review-rating {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.featured-review-rating .star {
    font-size: 1.1rem;
}

.featured-reviews-empty {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}

.featured-google-logo {
    position: absolute;
    top: 1rem;
    left: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.featured-review-card:hover .featured-google-logo {
    opacity: 1;
}

.featured-google-icon {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-reviews-row .featured-reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-review-card {
        padding: 1.25rem;
    }
    
    .featured-review-text {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .featured-reviewer-avatar,
    .featured-avatar-placeholder {
        width: 35px;
        height: 35px;
    }
    
    .featured-avatar-placeholder {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .featured-reviews-container {
        margin: 1.5rem 0;
    }
    
    .featured-reviews-grid {
        gap: 1rem;
    }
    
    .featured-review-card {
        padding: 1rem;
    }
    
    .featured-review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .featured-review-rating {
        align-self: flex-end;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .review-cta-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .reviews-summary .rating-overview {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .google-review-button {
        margin-top: 1.5rem;
    }
}

/* Reviews Pagination */
.reviews-pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 2px;
    background: #FFFFFF;
    color: #334155;
    text-decoration: none;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover {
    background: #F47629;
    color: white;
    border-color: #F47629;
    text-decoration: none;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: #F47629;
    color: white;
    border-color: #F47629;
    font-weight: 600;
}

.pagination-btn.active:hover {
    background: #e65c00;
    border-color: #e65c00;
}

/* Mobile Pagination */
@media (max-width: 480px) {
    .pagination-controls {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 36px;
    }
}

/* ========================
   TRIAL ACCESS SYSTEM STYLES
   ======================== */

/* Trial Activation Section */
.nami-trial-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0277bd;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    direction: rtl;
    position: relative;
    overflow: hidden;
}

.nami-trial-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(2, 119, 189, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.trial-header {
    position: relative;
    z-index: 2;
}

.trial-header h3 {
    color: #0277bd;
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: bold;
}

.trial-header .trial-features {
    color: #01579b;
    margin: 15px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.trial-features ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.trial-features li {
    margin: 8px 0;
    position: relative;
    padding-right: 25px;
}

.trial-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2em;
}

/* Trial Activation Button */
.nami-trial-activation-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    position: relative;
    z-index: 2;
    margin: 20px 0 10px 0;
}

.nami-trial-activation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #3e8e41 100%);
}

.nami-trial-activation-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Trial Countdown Timer */
.nami-trial-countdown {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    direction: rtl;
    font-size: 1.2em;
    font-weight: bold;
    color: #e65100;
}

.nami-trial-countdown .time-remaining {
    font-size: 2em;
    color: #d84315;
    display: block;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.nami-trial-countdown .label {
    font-size: 0.9em;
    color: #bf360c;
}

.nami-trial-countdown.expiring {
    animation: pulse-warning 1s infinite;
    border-color: #f44336;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

@keyframes pulse-warning {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Trial Messages */
.nami-trial-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
    direction: rtl;
    font-weight: 500;
}

.nami-trial-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.nami-trial-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.nami-trial-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.nami-trial-message .close-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.nami-trial-message .close-btn:hover {
    opacity: 1;
}

/* Conversion Prompts */
.nami-conversion-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 3px solid #F47629;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-align: center;
    direction: rtl;
    min-width: 350px;
    max-width: 500px;
}

.nami-conversion-prompt::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #F47629, #046BD2);
    border-radius: 15px;
    z-index: -1;
    animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nami-conversion-prompt .prompt-content {
    position: relative;
    z-index: 2;
}

.nami-conversion-prompt h4 {
    color: #F47629;
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.nami-conversion-prompt p {
    margin: 10px 0;
    color: #333;
    line-height: 1.5;
}

.nami-conversion-prompt .btn-upgrade {
    background: linear-gradient(135deg, #F47629 0%, #e65c00 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 118, 41, 0.3);
}

.nami-conversion-prompt .btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 118, 41, 0.4);
}

.nami-conversion-prompt .btn-close {
    position: absolute;
    top: 10px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.nami-conversion-prompt .btn-close:hover {
    color: #333;
}

/* Trial Used Notice */
.trial-used-notice {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    direction: rtl;
}

.trial-used-notice h3 {
    color: #e65100;
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.trial-used-notice p {
    color: #bf360c;
    margin: 10px 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nami-trial-section,
    .nami-trial-countdown,
    .trial-used-notice {
        padding: 20px;
        margin: 15px 0;
    }
    
    .trial-header h3 {
        font-size: 1.3em;
    }
    
    .nami-trial-activation-btn {
        padding: 15px 30px;
        font-size: 1.1em;
        width: 100%;
        max-width: 300px;
    }
    
    .nami-conversion-prompt {
        min-width: 280px;
        max-width: 350px;
        margin: 0 20px;
    }
    
    .nami-trial-countdown .time-remaining {
        font-size: 1.5em;
    }
}

/* Featured Reviews Button Styling */
.featured-reviews-button-container {
    text-align: center;
    margin-top: 30px;
}

.featured-reviews-btn {
    background: linear-gradient(135deg, #F47629 0%, #e65c00 100%);
    color: white !important;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 118, 41, 0.3);
    direction: rtl;
}

.featured-reviews-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 118, 41, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.featured-reviews-btn:focus,
.featured-reviews-btn:active {
    color: white !important;
    text-decoration: none !important;
}

/* Responsive styling for featured reviews button */
@media (max-width: 768px) {
    .featured-reviews-btn {
        padding: 12px 24px;
        font-size: 1em;
        width: 100%;
        max-width: 280px;
    }
    
    .featured-reviews-button-container {
        margin-top: 20px;
    }
}

/* ===== NAMI ANALYTICS DASHBOARD STYLING ===== */

/* Filters Section */
.nami-filters {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.nami-filters:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nami-filters form {
    align-items: flex-end;
}

.nami-filters label {
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 5px;
}

.nami-filters input[type="text"],
.nami-filters input[type="date"],
.nami-filters select {
    padding: 8px 12px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nami-filters input[type="text"]:focus,
.nami-filters input[type="date"]:focus,
.nami-filters select:focus {
    outline: none;
    border-color: #046BD2;
    box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.1);
}

/* Summary Stats Cards */
.nami-stats-summary {
    margin: 30px 0;
}

.stat-box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #046BD2;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* User Details Cards */
.nami-detail-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #F47629;
}

.nami-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nami-detail-card h3 {
    border-bottom: 2px solid #F0F5FA;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.nami-detail-card p {
    margin: 8px 0;
    line-height: 1.5;
}

/* Tables Enhancement */
.nami-users-table .widefat {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

.nami-users-table .widefat thead th {
    background: #1E293B;
    color: white;
    font-weight: 600;
    padding: 15px 12px;
    border: none;
    text-align: center;
}

.nami-users-table .widefat tbody tr {
    transition: background-color 0.3s ease;
}

.nami-users-table .widefat tbody tr:hover {
    background-color: #F0F5FA;
}

.nami-users-table .widefat tbody td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}

/* Section Styling */
.nami-section {
    margin-bottom: 40px;
}

.nami-section h2 {
    color: #1E293B;
    border-bottom: 3px solid #F47629;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Button Enhancements */
.nami-toggle-answers {
    background: #046BD2;
    color: white;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nami-toggle-answers:hover {
    background: #0356a5;
    transform: translateY(-1px);
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nami-users-table .widefat {
        font-size: 14px;
    }
    
    .nami-users-table .widefat th,
    .nami-users-table .widefat td {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    .nami-filters form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .nami-filters input[type="text"],
    .nami-filters input[type="date"],
    .nami-filters select {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .nami-stats-summary {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-box {
        padding: 15px;
    }
    
    .nami-detail-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* Make tables horizontally scrollable on mobile */
    .nami-users-table {
        overflow-x: auto;
    }
    
    .nami-users-table .widefat {
        min-width: 800px;
    }
}
/* Question Search Component */
.question-search-container {
    position: relative;
    width: 100%;
    max-width: 350px;
}

#question-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    direction: rtl;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

#question-search-input:focus {
    outline: none;
    border-color: #F47629;
    box-shadow: 0 0 0 3px rgba(244, 118, 41, 0.1);
}

#question-search-input::placeholder {
    color: #9ca3af;
}

#question-search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    direction: rtl;
}

.search-results-list {
    padding: 0;
}

.search-result-item {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #F0F5FA;
    text-decoration: none;
    color: #334155;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #F0F5FA;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.search-result-number {
    display: inline-block;
    background: #F47629;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-title {
    font-weight: 600;
    color: #1E293B;
    font-size: 14px;
}

.search-result-topic {
    font-size: 12px;
    color: #046BD2;
    margin-bottom: 4px;
}

.search-result-excerpt {
    font-size: 13px;
    color: #334155;
    opacity: 0.8;
    line-height: 1.4;
}

.search-loading,
.search-no-results,
.search-error {
    padding: 20px;
    text-align: center;
    color: #334155;
}

.search-error {
    color: #EF4444;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .question-search-container {
        max-width: 100%;
        margin-top: 10px;
    }

    .course-question-top-nav {
        flex-direction: column;
        align-items: flex-start !important;
    }

    #question-search-results {
        max-height: 350px;
    }

    .search-result-item {
        padding: 10px 12px;
    }
}

/* Question Error Report System */
.report-error-btn {
    transition: all 0.3s ease;
}

.report-error-btn:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#report-error-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#report-error-modal > div {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#report-error-form select,
#report-error-form textarea {
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#report-error-form select:focus,
#report-error-form textarea:focus {
    outline: none;
    border-color: #F47629;
    box-shadow: 0 0 0 3px rgba(244, 118, 41, 0.1);
}

#report-error-form button[type="submit"]:hover {
    background: #e65c00 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(244, 118, 41, 0.3);
}

#cancel-report-btn:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

/* Mobile responsive for report modal */
@media (max-width: 768px) {
    #report-error-modal > div {
        max-width: 95% !important;
        padding: 20px !important;
    }

    #report-error-form button {
        width: 100%;
        margin-bottom: 10px;
    }

    #report-error-form > div:last-child {
        flex-direction: column;
    }
}
