@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

body {
  font-family: "Tajawal", sans-serif;


}

input[type="text"], input[type="email"], input[type="date"], select, textarea {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 15px 18px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    background-color: #f8f9fa !important;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important; */
}

label {
    font-size: 0.95rem !important;
    color: #2d8655 !important;
}

.user-menu a.active {
    background-color: #2d8655;
    color: #fff;
    border-radius: 18px;
    border: 0;
}

.user-menu a {
    font-size: 21px;
    padding: 17px;
}




.secand-btn {
    border: 2px solid #198754;
    border-radius: 39px;
    padding: 9px 27px;
    background: #39855617;
    color: #198754;
    font-weight: 800;
}








select {
  width: 200px;
  padding: 8px 30px 8px 10px;
  font-size: 16px;
  direction: rtl;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* سهم مخصص على اليسار */
  background-image: linear-gradient(45deg, transparent 50%, #555 50%),
                    linear-gradient(135deg, #555 50%, transparent 50%);
  background-position: left 10px center, left 15px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* ===== Exam Pricing Section (RTL) ===== */
.pricing-section { direction: rtl; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

.pricing-card {
  border: 1px solid #e9ecef;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.pricing-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pricing-card__title { color: #2d8655; font-weight: 600; }
.pricing-card__desc { margin: 0; font-size: .9rem; }

.option-toggle {
  width: 18px;
  height: 18px;
  accent-color: #2d8655;
  cursor: pointer;
}

.price-badge {
  border-radius: 20px;
  padding: 6px 10px;
  font-size: .9rem;
  font-weight: 600;
}

.price-badge--sar { background: #e6f4ea; color: #256b49; border: 1px solid #cce9d6; }
.price-badge--usd { background: #fff3cd; color: #8a6d3b; border: 1px solid #ffe49b; }

.pricing-summary {
  margin-top: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 14px 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #2d8655;
}

.summary-label { color: #274635; }
.summary-value {
  background: #e6f4ea;
  color: #256b49;
  border: 1px solid #cce9d6;
  border-radius: 10px;
  padding: 6px 12px;
}

.summary-note {
  margin-top: 6px;
  font-size: .85rem;
  color: #6c757d;
}

/* Variants and selected states */
.pricing-card.base {
  border-color: #cce9d6;
  background: #f9fefb;
}

.pricing-card.option { border-color: #e9ecef; }
.pricing-card.option .pricing-card__header { gap: 8px; }
.pricing-card__title i { color: #2d8655; }

/* Highlight selected option using sibling selector */
.pricing-card.option label .option-toggle:checked ~ .price-badge {
  background: #2d8655;
  color: #fff;
  border-color: #2d8655;
}
.pricing-card.option label .option-toggle:checked ~ .pricing-card__title {
  color: #256b49;
}

.pricing-card.option label .option-toggle:focus-visible {
  outline: 2px solid #2d8655;
  outline-offset: 2px;
}

/* ===== Empty State (My Courses) ===== */
.empty-state {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  display: flex;
  gap: 16px;
  align-items: center;
}
.empty-state__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #256b49;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.empty-state__content { flex: 1; }
.empty-state__title {
  color: #274635;
  font-weight: 800;
  margin: 0 0 6px;
}
.empty-state__desc { color: #6b7280; margin: 0 0 10px; }
.empty-state__cta { display: flex; gap: 10px; }
.empty-state__cta .btn { border-radius: 12px; padding: 10px 16px; }
/* Accreditation Card Preview */
.accred-preview { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width: 900px) { .accred-preview { grid-template-columns: 1fr; } }

.accred-card { position:relative; border-radius:16px; overflow:hidden; border:1px solid #e2e8f0; box-shadow:0 10px 24px rgba(0,0,0,0.06); background: linear-gradient(135deg,#f8fafc,#e6f4ea); min-height: 220px; padding: 14px; }
.accred-front { background: linear-gradient(135deg,#f8fafc,#e6f4ea); }
.accred-back { background: linear-gradient(135deg,#f9fafb,#eef2ff); }

.accred-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.accred-header .brand { display:flex; align-items:center; gap:8px; color:#274635; font-weight:700; }
.accred-header .brand img { width:28px; height:28px; }
.accred-header .label { color:#6b7280; font-size:0.82rem; }

.accred-field { display:flex; flex-direction:column; margin-top:8px; }
.accred-label { font-size:0.8rem; color:#6b7280; }
.accred-value { font-size:1.05rem; color:#274635; font-weight:700; }

.accred-row { display:flex; gap:12px; align-items:flex-start; margin-top:10px; }
.accred-qr { width:88px; height:88px; border:1px dashed #cce9d6; border-radius:8px; background: repeating-linear-gradient(45deg,#cce9d6 0 6px, #e6f4ea 6px 12px); }
.accred-holo { flex:1; height:88px; border-radius:8px; background: radial-gradient(circle at 30% 30%, #a7f3d0, #d1fae5, #f8fafc); border:1px solid #cce9d6; }

.accred-footer { display:flex; justify-content:space-between; align-items:center; margin-top:12px; color:#256b49; }
.accred-id { font-weight:700; }
.accred-exp { background:#e6f4ea; color:#256b49; border:1px solid #cce9d6; border-radius:10px; padding:4px 10px; }

.accred-back .terms { color:#374151; font-size:0.88rem; line-height:1.7; }
.accred-barcode { height:42px; background: repeating-linear-gradient(90deg,#111 0 6px,#eee 6px 10px); border-radius:6px; margin-top:12px; }

/* Accreditation profile row */
.accred-profile { display:flex; align-items:center; gap:12px; margin:8px 0 6px; }
.avatar { width:56px; height:56px; border-radius:50%; overflow:hidden; border:2px solid #cce9d6; display:flex; align-items:center; justify-content:center; background:#e6f4ea; color:#256b49; font-weight:700; }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.avatar-fallback { display:none; width:100%; height:100%; align-items:center; justify-content:center; }
.profile-name { font-size:1.1rem; color:#274635; font-weight:700; }

.accred-fields { display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
@media (max-width: 600px) { .accred-fields { grid-template-columns: 1fr; } }
        .navbar-expand-lg .navbar-nav .nav-link {
            padding: 12px 16px;
        }
