* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  direction: rtl;
}

.container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

.navbar {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

.nav-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 70px !important;
}

.nav-logo {
  display: flex !important;
  align-items: center !important;
  color: white !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

.mainlogo{
  width: auto !important;
  height: 50px !important;
}
.footerlogo {
  width: auto !important;
  height: 70px !important;
  margin-left: 10px !important;
}

.nav-logo span {
  margin-right: 10px !important;
}

.nav-menu {
  display: flex !important;
  gap: 30px !important;
}

.nav-link {
  color: white !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  padding: 10px 15px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-2px) !important;
  color: white !important;
}

.nav-toggle {
  display: none !important;
  flex-direction: column !important;
  cursor: pointer !important;
}

.bar {
  width: 25px !important;
  height: 3px !important;
  background-color: white !important;
  margin: 3px 0 !important;
  transition: 0.3s !important;
  border-radius: 2px !important;
}

.main-content {
  margin-top: 70px !important;
}

.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%) !important;
  color: white !important;
  padding: 80px 0 !important;
  text-align: center !important;
}

.hero-content {
  max-width: 800px !important;
  margin: 0 auto !important;
}

.hero-title {
  font-size: 3rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.hero-title i {
  margin-left: 15px !important;
  color: #fbbf24 !important;
}

.hero-description {
  font-size: 1.2rem !important;
  margin-bottom: 40px !important;
  line-height: 1.8 !important;
  opacity: 0.9 !important;
}

.hero-stats {
  display: flex !important;
  justify-content: center !important;
  gap: 40px !important;
  margin-top: 50px !important;
  flex-wrap: wrap !important;
}

.stat-item {
  text-align: center !important;
}

.stat-item i {
  font-size: 2rem !important;
  color: #fbbf24 !important;
  margin-bottom: 10px !important;
}

.stat-number {
  display: block !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  margin-bottom: 5px !important;
}

.stat-label {
  font-size: 0.9rem !important;
  opacity: 0.8 !important;
}

.main-section {
  padding: 80px 0 !important;
  background-color: white !important;
}

.section-title {
  text-align: center !important;
  font-size: 2.5rem !important;
  color: #1e3a8a !important;
  margin-bottom: 50px !important;
  font-weight: 700 !important;
}

.section-title i {
  margin-left: 15px !important;
  color: #3b82f6 !important;
}

.url-bar {
  text-align: left;
  justify-content: left;
  background: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  border-bottom: none !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 10px 15px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: monospace !important;
}

.security-status {
  margin-right: auto !important;
  font-size: 12px !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
  font-weight: bold !important;
}

.security-status.secure {
  background: #d4edda !important;
  color: #155724 !important;
}

.security-status.insecure {
  background: #f8d7da !important;
  color: #721c24 !important;
}
.quiz-iframe {
  width: 100% !important;
  height: 70vh !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: white !important;
}

.small-hint {
  font-size: 0.9rem !important;
  color: #6c757d !important;
  line-height: 1.5 !important;
}

.rtl-text {
  text-align: right !important;
  direction: rtl !important;
  line-height: 1.7 !important;
}

.card {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px) !important;
}

.card-body {
  padding: 24px !important;
}

.card-title {
  color: #1e3a8a !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  margin-bottom: 15px !important;
}

.btn {
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
}

.btn-quiz {
  min-width: 140px !important;
}

.result-badge {
  font-size: 0.9rem !important;
  padding: 8px 12px !important;
}

.screenshot {
  background: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  border-top: none !important;
  border-radius: 0 0 12px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.alert {
  border-radius: 10px !important;
  padding: 20px !important;
  margin: 15px 0 !important;
  border: 1px solid transparent !important;
  position: relative !important;
  overflow: hidden !important;
}

.alert::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 4px !important;
  height: 100% !important;
  background: currentColor !important;
}

.alert-success {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
  border-color: #16a34a !important;
  color: #15803d !important;
}

.alert-danger {
  background: linear-gradient(135deg, #fef2f2, #fecaca) !important;
  border-color: #dc2626 !important;
  color: #b91c1c !important;
}

.alert-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  border-color: #f59e0b !important;
  color: #d97706 !important;
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important;
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
}

.alert-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.alert-icon {
  font-size: 20px !important;
  font-weight: bold !important;
}

.alert-body {
  line-height: 1.6 !important;
  font-size: 14px !important;
}
.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: white !important;
  border-color: #dc2626 !important;
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
  color: white !important;
}

.btn-outline-primary {
  background: transparent !important;
  color: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

.btn-outline-primary:hover:not(:disabled) {
  background: #3b82f6 !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.btn-outline-secondary {
  color: #6c757d !important;
  border-color: #6c757d !important;
  background-color: transparent !important;
}

.btn-outline-secondary:hover {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: white !important;
}

.btn-outline-warning {
  background: transparent !important;
  color: #f59e0b !important;
  border: 2px solid #f59e0b !important;
}

.btn-outline-warning:hover:not(:disabled) {
  background: #f59e0b !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

.btn-light {
  background: #f8f9fa !important;
  border: 2px solid #e5e7eb !important;
  color: #6b7280 !important;
  font-weight: 500 !important;
}

.btn-light:hover:not(:disabled) {
  background: #e5e7eb !important;
  border-color: #d1d5db !important;
  transform: translateY(-1px) !important;
  color: #6b7280 !important;
}

.btn-success {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: white !important;
  border-color: #16a34a !important;
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #15803d, #166534) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3) !important;
  color: white !important;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a) !important;
  color: white !important;
  border-color: #3b82f6 !important;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1e3a8a, #1e40af) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  color: white !important;
}

.badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.bg-success {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: white !important;
}

.tips-section {
  padding: 80px 0 !important;
  background-color: #f8f9fa !important;
}

.tips-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
  gap: 30px !important;
  margin-top: 50px !important;
}

.tip-card {
  background: white !important;
  border-radius: 15px !important;
  padding: 30px !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  border-top: 4px solid #3b82f6 !important;
}

.tip-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.tip-icon {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a) !important;
  color: white !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  margin-bottom: 20px !important;
}

.tip-title {
  font-size: 1.3rem !important;
  color: #1e3a8a !important;
  margin-bottom: 15px !important;
  font-weight: 600 !important;
}

.tip-description {
  color: #4b5563 !important;
  line-height: 1.6 !important;
  font-size: 1rem !important;
}
.footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
  color: white !important;
  padding: 50px 0 20px !important;
}

.footer-content {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 40px !important;
  margin-bottom: 30px !important;
}

.footer-logo {
  display: flex !important;
  align-items: center !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 15px !important;
}

.footer-logo span {
  margin-right: 10px !important;
}

.footer-description {
  color: #9ca3af !important;
  line-height: 1.6 !important;
}

.footer-title {
  font-size: 1.2rem !important;
  margin-bottom: 20px !important;
  color: #3b82f6 !important;
  font-weight: 600 !important;
}

.footer-links {
  list-style: none !important;
}

.footer-links li {
  margin-bottom: 10px !important;
}

.footer-links a {
  color: #9ca3af !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.footer-links a:hover {
  color: #3b82f6 !important;
}

.social-links {
  display: flex !important;
  gap: 15px !important;
}

.social-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background-color: #374151 !important;
  color: white !important;
  border-radius: 50% !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.social-link:hover {
  background-color: #3b82f6 !important;
  transform: translateY(-2px) !important;
  color: white !important;
}

.footer-bottom {
  border-top: 1px solid #374151 !important;
  padding-top: 20px !important;
  text-align: center !important;
  color: #9ca3af !important;
}

@media (max-width: 1028px) {
  .nav-logo span{
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed !important;
    right: -100% !important;
    top: 70px !important;
    flex-direction: column !important;
    background-color: #1e3a8a !important;
    width: 100% !important;
    text-align: center !important;
    transition: 0.3s !important;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05) !important;
    padding: 20px 0 !important;
  }

  .nav-menu.active {
    right: 0 !important;
  }

  .nav-toggle {
    display: flex !important;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0 !important;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  .hero-title {
    font-size: 2rem !important;
  }

  .hero-stats {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .tips-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    text-align: right !important;
  }

  .quiz-iframe {
    height: 70vh !important;
  }

  .btn-quiz {
    width: 100% !important;
    margin-bottom: 10px !important;
  }

  .d-flex.gap-2 {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .alert {
    padding: 15px !important;
  }

  .alert-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 5px !important;
  }

  .hero-stats {
    gap: 20px !important;
  }

  .stat-item {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 60px 0 !important;
  }

  .hero-title {
    font-size: 1.8rem !important;
  }

  .main-section,
  .tips-section {
    padding: 60px 0 !important;
  }

  .tip-card {
    padding: 20px !important;
  }

  .container {
    padding: 0 15px !important;
  }
}


.quiz-card,
.tip-card {
  will-change: transform !important;
}
/* .frame-card {
  border-bottom: 1px solid black !important;
  background-color: #ffffff00;
  overflow: hidden !important;
} */

.gap-2 {
  gap: 0.5rem;
}
.nav-link,
.btn,
.answer-option {
  will-change: transform !important;
}


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

.quiz-card,
.tip-card {
  animation: fadeIn 0.6s ease-out !important;
}

.nav-link:focus,
.btn:focus,
.answer-option:focus {
  outline: 2px solid #3b82f6 !important;
  outline-offset: 2px !important;
}

@media print {
  .navbar,
  .footer {
    display: none !important;
  }

  .main-content {
    margin-top: 0 !important;
  }

  .main-section,
  .tips-section {
    page-break-inside: avoid !important;
  }
}

.quiz-iframe {
  transition: opacity 0.3s ease !important;
}

.quiz-iframe:not([src]) {
  opacity: 0.5 !important;
}

.btn-quiz:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

#final-card {
  animation: slideIn 0.5s ease-out !important;
}

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

#final-card .card-body {
  padding: 40px !important;
  text-align: center !important;
}

#final-card h3 {
  color: #1e3a8a !important;
  font-size: 2rem !important;
  margin-bottom: 20px !important;
  font-weight: 700 !important;
}

#final-card p {
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 30px !important;
}

code {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  font-size: 0.875em !important;
  font-family: "Courier New", monospace !important;
  border: 1px solid #e2e8f0 !important;
}

hr {
  margin: 20px 0 !important;
  border: 0 !important;
  height: 1px !important;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent) !important;
}

ul {
  padding-right: 1.5rem !important;
}

.small {
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

.text-muted {
  color: #6b7280 !important;
}

[dir="rtl"] .ms-1 {
  margin-right: 0.25rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .me-1 {
  margin-left: 0.25rem !important;
  margin-right: 0 !important;
}

.main-section * {
  transition: all 0.3s ease !important;
}

.rtl-text {
  text-align: right !important;
  direction: rtl !important;
  line-height: 1.7 !important;
}

.small-hint {
  font-size: 0.9rem !important;
  color: #6b7280 !important;
  line-height: 1.6 !important;
  font-style: italic !important;
}




/*Chat Style*/
.chat-container {
    height: 500px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-header {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message.bot .message-avatar {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: white;
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
}

.message.bot .message-content {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.message.user .message-content {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: white;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: white;
    border-radius: 0 0 12px 12px;
}

.input-group-custom {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.message-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 12px 16px;
    resize: none;
    max-height: 100px;
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.attachment-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: white;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attachment-btn:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.typing-indicator {
    display: none;
    padding: 10px 16px;
    background: white;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    max-width: 70px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
}

.file-remove {
    cursor: pointer;
    color: #ef4444;
    font-weight: bold;
}

.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: white;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}