/* Quran Course Plugin Frontend Styles with Brand Colors */

:root {
  --cmfq-primary: #b8ad78;
  --cmfq-secondary: #aaa676;
  --cmfq-dark: #000000;
  --cmfq-light: #ffffff;
  --cmfq-bg-light: #fafaf7;
  --cmfq-border: #e0e0e0;
  --cmfq-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --cmfq-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* RTL Support */


/* #main {
  direction: rtl;
  text-align: right;
} */

 html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
} */

.cmfq-courses-wrapper {
  margin: 40px 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.cmfq-no-courses {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--cmfq-bg-light);
  border-radius: 8px;
  color: var(--cmfq-dark);
}

/* Course Card Refinement */
.cmfq-course-card {
  background: var(--cmfq-light);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--cmfq-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.cmfq-course-card:hover {
  box-shadow: var(--cmfq-shadow-hover);
  transform: translateY(-5px);
}

.cmfq-card-header {
  height: 120px;
  background: linear-gradient(135deg, var(--cmfq-primary) 0%, var(--cmfq-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cmfq-course-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.cmfq-course-icon .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: var(--cmfq-light);
}

.cmfq-card-content {
  padding: 25px;
  flex-grow: 1;
  text-align: center;
}

.cmfq-course-title {
  margin: 0 0 15px;
  font-size: 22px;
  font-weight: 700;
  color: var(--cmfq-dark);
  line-height: 1.2;
}

.cmfq-course-details {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.cmfq-card-footer {
  padding: 0 25px 25px;
  border-top: none;
}

.cmfq-register-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--cmfq-dark);
  color: var(--cmfq-light);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cmfq-register-btn:hover {
  background: var(--cmfq-primary);
  color: var(--cmfq-dark);
  transform: scale(1.02);
}

/* Added styles for disabled enrolled button state */
.cmfq-enrolled-btn {
  background: #90ee90 !important;
  color: var(--cmfq-dark) !important;
  cursor: not-allowed !important;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cmfq-enrolled-btn:hover {
  background: #90ee90 !important;
  color: var(--cmfq-dark) !important;
  transform: none !important;
}

.cmfq-enrolled-btn:disabled {
  cursor: not-allowed;
}

/* Card Footer */

.cmfq-btn,
.cmfq-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--cmfq-primary);
  color: var(--cmfq-dark);
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  text-align: center;
}

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

.cmfq-btn-primary {
  background: linear-gradient(135deg, var(--cmfq-primary) 0%, var(--cmfq-secondary) 100%);
  color: var(--cmfq-dark);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cmfq-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(184, 173, 120, 0.3);
}

.cmfq-btn-secondary {
  background: #f0f0f0;
  color: var(--cmfq-dark);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cmfq-btn-secondary:hover {
  background: #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Modal Polish */
.cmfq-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.cmfq-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.cmfq-modal-content {
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  border: none;
  background-color: var(--cmfq-light);
  margin: auto;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
	margin-top:3%;
}

.cmfq-modal-content > div:not(.cmfq-step-progress):not(.cmfq-modal-close) {
  padding: 30px 40px 40px;
}

.cmfq-modal-header-refine {
  background: var(--cmfq-dark);
  padding: 30px;
  color: var(--cmfq-light);
  text-align: center;
}

.cmfq-modal-close {
  color: black;
  opacity: 0.7;
  top: 0px;
  left: 0px;
  position: absolute;
  font-size: 28px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.cmfq-modal-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cmfq-dark);
}

/* Step Progress Indicator */
.cmfq-step-container-padding {
  padding: 30px 40px 40px;
}

.cmfq-step-progress {
  margin-bottom: 30px;
  background: #f8f8f8;
  padding: 15px 30px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cmfq-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cmfq-progress-circle {
  border: 2px solid #ddd;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cmfq-progress-step.cmfq-progress-active .cmfq-progress-circle {
  border-color: var(--cmfq-primary);
  background: var(--cmfq-primary);
  color: var(--cmfq-dark);
  box-shadow: 0 0 0 4px rgba(184, 173, 120, 0.2);
}

.cmfq-progress-step.cmfq-progress-completed .cmfq-progress-circle {
  border-color: var(--cmfq-secondary);
  background: var(--cmfq-secondary);
  color: white;
}

.cmfq-progress-label {
  font-size: 12px;
  color: #666;
  text-align: center;
  font-weight: 500;
}

.cmfq-progress-step.cmfq-progress-active .cmfq-progress-label {
  color: var(--cmfq-primary);
  font-weight: bold;
}

.cmfq-progress-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 10px;
  margin-bottom: 20px;
}

/* Step Container */
/* Fixed step display to show only one step at a time */
.cmfq-step {
  display: none;
  padding: 0 40px 40px 40px;
}

.cmfq-step:first-of-type {
  padding-top: 30px;
}

.cmfq-step.cmfq-step-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.cmfq-step[style*="display: block"] {
  display: block;
  animation: fadeIn 0.3s ease;
}

.cmfq-step h2 {
  margin: 0 0 20px;
  color: var(--cmfq-dark);
  font-size: 24px;
  font-weight: 700;
}

.cmfq-step h3 {
  margin: 25px 0 15px;
  color: var(--cmfq-dark);
  font-size: 16px;
  font-weight: 600;
}

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

.cmfq-modal h2 {
  margin: 0 0 20px;
  color: var(--cmfq-dark);
  font-size: 24px;
}

.cmfq-course-overview {
  background: var(--cmfq-bg-light);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--cmfq-primary);
  margin-bottom: 20px;
}

.cmfq-course-overview h3 {
  margin: 0 0 12px;
  color: var(--cmfq-primary);
  font-size: 18px;
}

.cmfq-course-overview p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* Course Details in Modal */
.cmfq-course-details-container {
  background: var(--cmfq-bg-light);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
  border-left: 4px solid var(--cmfq-primary);
}

html[dir="rtl"] .cmfq-course-details-container {
  border-left: none;
  border-right: 4px solid var(--cmfq-primary);
}

.cmfq-course-title-box {
  background: white;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid var(--cmfq-border);
  font-size: 18px;
  font-weight: 600;
  color: var(--cmfq-dark);
  word-wrap: break-word;
}

.cmfq-course-category-box {
  background: white;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  border: 1px solid var(--cmfq-primary);
  font-size: 14px;
  color: var(--cmfq-primary);
}

.cmfq-course-detail-item {
  background: white;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 10px;
  border-left: 3px solid var(--cmfq-secondary);
}

html[dir="rtl"] .cmfq-course-detail-item {
  border-left: none;
  border-right: 3px solid var(--cmfq-secondary);
}

.cmfq-course-detail-item p {
  margin: 0;
  color: #333;
  line-height: 1.8;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

html[dir="rtl"] .cmfq-course-detail-item p {
  text-align: right;
  direction: rtl;
}

html[dir="ltr"] .cmfq-course-detail-item p {
  text-align: left;
  direction: ltr;
}

/* Days Selection */
.cmfq-days-selection {
  margin-bottom: 20px;
}

.cmfq-day-group {
  background: var(--cmfq-bg-light);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid var(--cmfq-primary);
}

.cmfq-day-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--cmfq-dark);
}

.cmfq-day-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--cmfq-primary);
}

.cmfq-slots-list {
  display: none;
  padding-left: 28px;
  margin-top: 10px;
}

.cmfq-slot-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: color 0.2s ease;
}

.cmfq-slot-label:hover {
  color: var(--cmfq-primary);
}

.cmfq-slot-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--cmfq-primary);
}

/* Form Inputs Refinement */
.cmfq-form-group {
  margin-bottom: 20px;
}

.cmfq-form-group label {
  display: block;
  font-weight: 600;
  color: var(--cmfq-dark);
  font-size: 14px;
  margin-bottom: 6px;
}

.cmfq-form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--cmfq-border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
  font-family: inherit;
}

html[dir="rtl"] .cmfq-form-input {
  text-align: right;
}

html[dir="ltr"] .cmfq-form-input {
  text-align: left;
}

/* Added select styling to match form inputs */
select.cmfq-form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

select.cmfq-form-input:focus {
  outline: none;
  border-color: var(--cmfq-primary);
  box-shadow: 0 0 0 3px rgba(184, 173, 120, 0.1);
}

.cmfq-form-input:focus {
  outline: none;
  border-color: var(--cmfq-primary);
  box-shadow: 0 0 0 3px rgba(184, 173, 120, 0.1);
}

.cmfq-logged-in-message {
  background: var(--cmfq-bg-light);
  padding: 15px;
  border-radius: 4px;
  border-left: 4px solid var(--cmfq-primary);
  margin-bottom: 20px;
}

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

.cmfq-step-actions .cmfq-btn {
  flex: 1;
  margin: 0;
}

/* Dashboard */
.cmfq-dashboard {
  margin: 30px 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.cmfq-dashboard-header {
      background: linear-gradient(135deg, #afa15f 0%, #bcb55b 100%);
  color: var(--cmfq-dark);
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cmfq-dashboard-header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
	color:#fff;
}

/* Improved Tab Navigation */
.cmfq-dashboard-tabs {
  border-bottom: 1px solid var(--cmfq-border);
  background: var(--cmfq-bg-light);
  padding: 0;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmfq-tabs-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  width: 100%;
}

.cmfq-tabs-nav li {
  margin: 0;
  flex: 1;
	padding-bottom:0;
}

.cmfq-tab-link {
  display: block;
  padding: 18px 20px;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.cmfq-tab-link:hover {
  color: var(--cmfq-primary);
  background: rgba(184, 173, 120, 0.05);
}

.cmfq-tab-link.cmfq-tab-active {
  color: var(--cmfq-dark);
  border-bottom-color: var(--cmfq-primary);
  font-weight: 600;
}

/* Tab Content */
.cmfq-tab-content {
  display: none;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
	        background-color: #fffded;
}

@media (min-width: 768px) {
  .cmfq-tab-content {
    padding: 40px;
  }
}

.cmfq-tab-content.cmfq-tab-active {
  display: block;
}

.cmfq-tab-content h2 {
  margin: 0 0 25px;
  font-size: 24px;
  color: var(--cmfq-dark);
  border-bottom: 3px solid var(--cmfq-primary);
  padding-bottom: 15px;
  font-weight: 700;
	display:none;
}

.cmfq-personal-info-box {
  background: var(--cmfq-bg-light);
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid var(--cmfq-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cmfq-personal-info-box p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmfq-personal-info-box p:last-child {
  margin-bottom: 0;
}

.cmfq-personal-info-box strong {
  color: var(--cmfq-primary);
  min-width: 100px;
  font-weight: 700;
}

/* Change Password Form */

.cmfq-change-password-form {
  max-width: 500px;
	display:flex;
	flex-direction:column;
	width:500px;
  background: var(--cmfq-bg-light);
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid var(--cmfq-primary);
	margin-left:25%;
}

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

.cmfq-change-password-form .cmfq-form-group label {
  font-weight: 600;
  color: var(--cmfq-dark);
  margin-bottom: 8px;
  display: block;
}

.cmfq-change-password-form .cmfq-btn {
  width: 100%;
  margin-top: 10px;
}

/* Dashboard Footer */
.cmfq-dashboard-footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--cmfq-border);
  background: var(--cmfq-bg-light);
}

.cmfq-logout-link {
  color: #ff6b6b;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cmfq-logout-link:hover {
  color: #ff5252;
  text-decoration: underline;
}

/* Login Container */
.cmfq-login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 40px 20px;
}

.cmfq-login-box {
  background: white;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

.cmfq-login-box h2 {
  text-align: center;
  margin: 0 0 30px;
  font-size: 28px;
  color: var(--cmfq-dark);
  font-weight: 700;
}

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

.cmfq-login-box .cmfq-btn {
  width: 100%;
  margin-top: 10px;
}

.cmfq-no-account {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.cmfq-explore-link {
  color: var(--cmfq-primary);
  text-decoration: none;
  font-weight: 600;
}

.cmfq-explore-link:hover {
  text-decoration: underline;
}

/* Added Course Details List View Styling */
.cmfq-course-details-container {
  margin-bottom: 25px;
  border: 1px solid var(--cmfq-border);
  border-radius: 12px;
  overflow: hidden;
}

.cmfq-course-details-scroll {
  max-height: 300px;
  overflow-y: auto;
	text-align:right;
  padding: 20px;
  background: var(--cmfq-bg-light);
}

.cmfq-course-detail-item {
  margin: 0 0 15px 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--cmfq-border);
  font-size: 14px;
  line-height: 1.6;
	padding-right:10px !important;
}

.cmfq-course-detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cmfq-course-detail-item strong {
  color: var(--cmfq-primary);
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Modal Step Progress refinement */

/* Step styling - only one visible at a time */
.cmfq-step-active {
  display: block;
}

/* Improved Login and Logout Button Styling */
.cmfq-auth-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.cmfq-auth-buttons .cmfq-btn {
  margin: 0;
  padding: 5px 20px;
  font-size: 13px;
	width:auto !important;
}

.cmfq-btn-primary,
.cmfq-btn-secondary {
  display: inline-block;
  width: auto;
}

.cmfq-user-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--cmfq-dark);
  white-space: nowrap;
}

.cmfq-course-title-box {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--cmfq-primary);
  padding: 12px 0;
  border-bottom: 2px solid var(--cmfq-primary);
  margin-bottom: 15px;
}

.cmfq-course-detail-item {
  display: block;
  padding: 2px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.cmfq-course-detail-item:last-child {
  border-bottom: none;
}

.cmfq-course-detail-item p {
  margin: 0;
  padding: 0;
}



.cmfq-user-name {
  font-size: 14px;
  color: var(--cmfq-dark);
  font-weight: 500;
}

.cmfq-btn-logout {
  background: #464646;
  color: white;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cmfq-btn-logout:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 107, 107, 0.3);
}
/* Firefox */
.cmfq-modal-content {
  scrollbar-width: thin;
  scrollbar-color: #c7c7c7 transparent;
}

/* Chrome, Edge, Safari */
.cmfq-modal-content::-webkit-scrollbar {
  width: 8px;
}

.cmfq-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.cmfq-modal-content::-webkit-scrollbar-thumb {
  background-color: #c7c7c7;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.cmfq-modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #9e9e9e;
}
/* Added select styling to match form inputs */
select.cmfq-form-input {
  appearance: none;

  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
	color:#515050 !important;
}

select.cmfq-form-input:focus {
  outline: none;
  border-color: var(--cmfq-primary);
  box-shadow: 0 0 0 3px rgba(184, 173, 120, 0.1);
}
/* Added styles for disabled enrolled button state */
.cmfq-enrolled-btn {
  background: #c2c2c2 !important;
  color: var(--cmfq-dark) !important;
  cursor: not-allowed !important;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cmfq-enrolled-btn:hover {
  background: #90ee90 !important;
  color: var(--cmfq-dark) !important;
  transform: none !important;
}

.cmfq-enrolled-btn:disabled {
  cursor: not-allowed;
}

/* Category Tabs Styling */
.cmfq-category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--cmfq-border);
  padding-bottom: 0;
}

html[dir="rtl"] .cmfq-category-tab {
  margin-right: 0;
  margin-left: 0;
}

html[dir="ltr"] .cmfq-category-tab {
  margin-left: 0;
  margin-right: 0;
}

.cmfq-category-tab {
  background: transparent;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cmfq-category-tab:hover {
  color: var(--cmfq-primary);
  background: rgba(184, 173, 120, 0.05);
}

.cmfq-category-tab.cmfq-tab-active {
  color: var(--cmfq-dark);
  border-bottom-color: var(--cmfq-primary);
  font-weight: 700;
}

.cmfq-category-content {
  display: contents;
}

/* Improved Student Dashboard Design */
