/*
 Theme Name: Astra Child
 Template: astra
*/
/* =========================
   Mobile Fixes – Taxi Shein
   ========================= */

/* إظهار sub-menu في الموبايل */
@media (max-width: 768px) {
  .ast-mobile-menu .sub-menu {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
  }
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f5f5f5;
}

/* Header navigation search field */
.main-header-menu .ast-nav-search-item {
  display: flex;
  align-items: center;
  padding: 0 0.6em;
}
.main-header-menu .ast-nav-search-form {
  margin: 0;
}
.main-header-menu .ast-nav-search-field {
  width: 190px;
  max-width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  line-height: 36px;
}
.main-header-menu .ast-nav-search-field:focus {
  outline: none;
  border-color: rgba(52, 152, 219, 0.75);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.18);
}
@media (max-width: 768px) {
  .ast-mobile-menu .ast-nav-search-item {
    padding: 10px 0;
  }
  .ast-mobile-menu .ast-nav-search-field {
    width: 100%;
  }
}

/* Live search suggestions dropdown */
.ast-nav-search-form {
  position: relative;
}
.ast-nav-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.ast-nav-search-suggest__loading,
.ast-nav-search-suggest__empty {
  padding: 10px 12px;
  font-size: 14px;
  color: #6b7280;
}
.ast-nav-search-suggest__item {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 12px;
  text-decoration: none;
  color: #111827;
}
.ast-nav-search-suggest__item:hover {
  background: rgba(52, 152, 219, 0.08);
}
.ast-nav-search-suggest__title {
  font-size: 14px;
  line-height: 1.2;
}
.ast-nav-search-suggest__type {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #2c3e50;
  text-align: center;
  padding-bottom: 10px;
}

.frage {
  margin-bottom: 25px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}
.frage p {
  font-weight: bold;
  margin-top: 0;
  color: #2c3e50;
}
.option {
  display: block;
  margin: 8px 0;
  padding: 5px;
}
.option:hover {
  background-color: #eef7ff;
}
button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
button:hover {
  background-color: #2980b9;
}
.richtig {
  color: #27ae60;
  font-weight: bold;
  margin-top: 5px;
}
.falsch {
  color: #e74c3c;
  font-weight: bold;
  margin-top: 5px;
}
.counter {
  text-align: center;
  margin-bottom: 20px;
  color: #7f8c8d;
}

/* Quizlet-like quiz UI */
.quizlet-shell {
  max-width: 760px;
  margin: 0 auto;
}

.quizlet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.quizlet-progress-wrap {
  position: relative;
  flex: 1;
  height: 12px;
  background: #e7eaef;
  border-radius: 999px;
  overflow: hidden;
}

.quizlet-progress {
  --progress: 0%;
  width: 100%;
  height: 100%;
  position: relative;
}

.quizlet-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--progress);
  background: #16b57f;
  border-radius: 999px;
  transition: width 0.28s ease;
}

.quizlet-count {
  min-width: 58px;
  text-align: center;
  font-size: 12px;
  color: #5b6474;
  background: #f1f3f6;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
}

.quizlet-card {
  border: 1px solid #e7e9ef;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quizlet-label {
  color: #8a92a3;
  font-size: 12px;
  margin-bottom: 12px;
}

.quizlet-definition {
  color: #212838;
  font-size: 27px;
  line-height: 1.42;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.quizlet-feedback {
  min-height: 18px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.quizlet-feedback.is-correct {
  color: #0f915f;
}

.quizlet-feedback.is-wrong {
  color: #b6414f;
}

.quizlet-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quizlet-answer {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #e5e7ec;
  background: #fff;
  border-radius: 8px;
  padding: 14px 12px;
  text-align: left;
  color: #303648;
  transition: all 0.2s ease;
  margin: 0;
}

.quizlet-answer:hover {
  color: #2d7ff9;
  border-color: #c7d0dd;
  background: #fafbfd;
}

.quizlet-answer-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #d2d8e2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #5e6778;
  flex: none;
}

.quizlet-answer-text {
  font-size: 14px;
  line-height: 1.35;
}

.quizlet-answer.is-correct {
  color: #2d7ff9;
  border-color: #13906a;
  box-shadow: inset 0 0 0 1px #13906a;
  background: #f4fffa;
}

.quizlet-answer.is-correct .quizlet-answer-num {
  border-color: #13906a;
  background: #13906a;
  color: #fff;
}

.quizlet-answer.is-wrong {
  border-color: #d8495b;
  background: #fff7f8;
}

.quizlet-answer.is-muted {
  opacity: 0.48;
}

.quizlet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.quizlet-skip,
.quizlet-next {
  border: none;
  margin: 0;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
}

.quizlet-skip {
  background: transparent;
  color: #5f6780;
}

.quizlet-skip:hover {
  background: #f3f5f9;
}

.quizlet-next {
  background: #2d7ff9;
  color: #fff;
}

.quizlet-next:hover {
  background: #206ce0;
}

.quizlet-next:disabled,
.quizlet-skip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .quizlet-definition {
    font-size: 20px;
  }

  .quizlet-answers {
    grid-template-columns: 1fr;
  }
}

/* Section titles (e.g. Pensionisten – Wohnhäuser, Kultureinrichtungen) */
.section-title {
  color: #2c3e50;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5em 0 0.75em;
  padding: 0.5em 0;
  border-bottom: 2px solid #3498db;
}
.section-title:first-of-type {
  margin-top: 0.5em;
}

.ast-blog-single-element.ast-taxonomy-container.cat-links.default,
.entry-header.ast-blog-single-element.ast-blog-meta-container,
.entry-meta {
  display: none !important;
}

[class*="ast-post-format-"].ast-no-thumb.blog-layout-4 .ast-article-inner {
  transition: all 0.3s ease;
}

.ast-no-thumb.blog-layout-4.ast-article-inner {
  transition: all 0.3s ease;
}
.ast-no-thumb.blog-layout-4.ast-article-inner:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-pdf {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
}

.sub-title {
  color: #e74c3c;
}
