/* Tajulwaqar visual identity refresh — 2026-09-09 */
:root {
  --taj-emerald: #0d594f;
  --taj-emerald-deep: #073b36;
  --taj-ink: #071f20;
  --taj-gold: #c99b43;
  --taj-gold-soft: #e8cf91;
  --taj-ivory: #fbf8f1;
  --taj-mist: #eef4f1;
  --taj-white: #ffffff;
  --taj-radius: 18px;
  --taj-shadow: 0 18px 50px rgba(7, 31, 32, .12);
}

body {
  color: var(--taj-ink);
  background: var(--taj-ivory);
}

a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }

.header {
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 8px 28px rgba(7, 31, 32, .07);
}

.header__logo img {
  display: block;
  width: 142px !important;
  height: 48px !important;
  max-width: 100%;
  object-fit: contain !important;
}

.header-flex {
  flex-wrap: nowrap !important;
  gap: 12px;
}

.header__left,
.header__right {
  flex: 0 0 auto;
}

.header__middle {
  flex: 1 1 auto;
  min-width: 0;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.header__right .header-controls,
.header__right .header-action,
.header__right .header__action {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.header__right .header__action .btn {
  min-height: 40px;
  margin: 0 !important;
  padding: 0 13px !important;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.taj-top-language {
  position: relative;
  flex: 0 0 auto;
  color: var(--taj-ink);
}

.taj-top-language summary {
  display: inline-flex;
  min-width: 72px;
  min-height: 42px;
  padding: 8px 11px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(13, 89, 79, .28);
  border-radius: 12px;
  background: #fff;
  color: var(--taj-emerald-deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.taj-top-language summary::-webkit-details-marker { display: none; }
.taj-top-language summary:hover { border-color: var(--taj-emerald); background: var(--taj-mist); }
.taj-top-language summary .icon--globe { width: 19px; height: 19px; fill: currentColor; }
.taj-top-language summary .icon--arrow { width: 10px; height: 10px; transition: transform .2s ease; }
.taj-top-language[open] summary .icon--arrow { transform: rotate(180deg); }

.taj-top-language__menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 1000;
  min-width: 190px;
  padding: 12px;
  border: 1px solid rgba(7, 31, 32, .10);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--taj-shadow);
}

body[dir="rtl"] .taj-top-language__menu { right: auto; left: 0; }
.taj-top-language__menu strong { display: block; margin: 0 6px 8px; color: #65706d; font-size: 12px; }
.taj-top-language__menu ul { margin: 0; padding: 0; list-style: none; }
.taj-top-language__menu li a {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--taj-ink);
  font-weight: 700;
  text-decoration: none;
}
.taj-top-language__menu li a:hover,
.taj-top-language__menu li.is--active a { background: var(--taj-mist); color: var(--taj-emerald); }

@media (min-width: 769px) {
  .header-controls__item.taj-existing-language-control { display: none !important; }
}

@media (max-width: 768px) {
  .header__logo img { width: 126px !important; height: 42px !important; }
  .taj-top-language summary { min-width: 54px; min-height: 40px; padding: 7px 9px; }
  .taj-top-language summary .icon--arrow { display: none; }
}

.btn,
button[type="submit"],
input[type="submit"] {
  border-radius: 12px !important;
  font-weight: 700;
  letter-spacing: .01em;
}

.btn--primary,
button[type="submit"],
input[type="submit"] {
  background: var(--taj-emerald) !important;
  border-color: var(--taj-emerald) !important;
  color: #fff !important;
}

.btn--primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--taj-emerald-deep) !important;
  border-color: var(--taj-emerald-deep) !important;
}

/* Homepage hero: compact copy directly on the photograph. */
body.home-index .slideshow-content.taj-hero-content {
  width: min(560px, calc(100% - 48px)) !important;
  max-width: 560px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  text-align: left !important;
}

body.home-index .taj-hero-content::before {
  content: "";
  position: absolute;
  inset: -55px -90px -55px -140px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 42% 50%, rgba(7,31,32,.78) 0%, rgba(7,31,32,.50) 48%, transparent 74%);
}

body.home-index .taj-hero-kicker {
  margin: 0 0 12px !important;
  color: var(--taj-gold-soft) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase;
}

body.home-index .taj-hero-title {
  max-width: 540px;
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: clamp(34px, 3.4vw, 52px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
  text-shadow: 0 3px 24px rgba(0,0,0,.25);
}

body.home-index .taj-hero-description {
  max-width: 470px;
  margin: 0 0 24px !important;
  color: rgba(255,255,255,.9) !important;
  font-size: clamp(16px, 1.25vw, 19px) !important;
  line-height: 1.55 !important;
}

body.home-index .taj-hero-actions { gap: 12px !important; }

body.home-index .taj-hero-action {
  min-height: 48px !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  font-size: 15px !important;
}

body.home-index .taj-hero-action--primary {
  background: var(--taj-gold) !important;
  border-color: var(--taj-gold) !important;
  color: var(--taj-ink) !important;
}

/* Subject cards: artwork fills the tile, copy floats over a calm gradient. */
body.home-index .subject {
  position: relative !important;
  min-height: 245px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(201,155,67,.28) !important;
  border-radius: var(--taj-radius) !important;
  background: var(--taj-ink) !important;
  box-shadow: 0 14px 35px rgba(7,31,32,.13) !important;
  isolation: isolate;
}

body.home-index .subject::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,31,32,.12) 0%, rgba(7,31,32,.58) 52%, rgba(7,31,32,.34) 100%);
  pointer-events: none;
}

body.home-index .subject__media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

body.home-index .subject__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transform: scale(1.01);
  transition: transform .45s ease !important;
}

body.home-index .subject__media img[src*="/image/show/42/16/"] { content: url('/images/tajulwaqar/subject-hifz-v2.jpg'); }
body.home-index .subject__media img[src*="/image/show/42/28/"] { content: url('/images/tajulwaqar/subject-arabic-kids-v2.jpg'); }
body.home-index .subject__media img[src*="/image/show/42/17/"] { content: url('/images/tajulwaqar/subject-recitation-v2.jpg'); }
body.home-index .subject__media img[src*="/image/show/42/22/"] { content: url('/images/tajulwaqar/subject-advanced-arabic-v2.jpg'); }
body.home-index .subject__media img[src*="/image/show/42/18/"] { content: url('/images/tajulwaqar/subject-tajweed-v2.jpg'); }
body.home-index .subject__media img[src*="/image/show/42/27/"] { content: url('/images/tajulwaqar/subject-islamic-studies-v2.jpg'); }

body.home-index .subject:hover .subject__media img { transform: scale(1.07); }

body.home-index .subject__name {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 18px 10px 22px !important;
  text-align: center !important;
}

body.home-index .subject-title {
  display: block !important;
  max-width: 100% !important;
  color: #fff !important;
  font-size: clamp(15px, 1.35vw, 19px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -.015em !important;
  white-space: nowrap !important;
}

body.home-index .subject-count {
  display: block !important;
  margin-top: 5px !important;
  color: var(--taj-gold-soft) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body.home-index .subject__action { position: absolute !important; inset: 0 !important; z-index: 3 !important; }

/* Find Tutors: search-first layout, refined filters and profile cards. */
body.teachers-index .section--listing { background: linear-gradient(180deg, var(--taj-mist), #fff 32%) !important; }

body.teachers-index .page-title {
  max-width: 820px;
  margin-inline: auto;
  color: var(--taj-ink) !important;
  font-size: clamp(30px, 3.2vw, 46px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.03em;
}

body.teachers-index .filter-panel {
  overflow: visible;
  border: 1px solid rgba(13,89,79,.13) !important;
  border-radius: var(--taj-radius) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: var(--taj-shadow) !important;
}

body.teachers-index .filter-item__field,
body.teachers-index .filter-item__trigger,
body.teachers-index .search-form-cover {
  border-color: rgba(13,89,79,.16) !important;
  border-radius: 11px !important;
  background: #fff !important;
}

body.teachers-index .box.box-list {
  overflow: hidden;
  border: 1px solid rgba(13,89,79,.11) !important;
  border-radius: var(--taj-radius) !important;
  background: #fff !important;
  box-shadow: 0 12px 34px rgba(7,31,32,.08) !important;
}

body.teachers-index .box.box-list:hover { transform: translateY(-2px); box-shadow: var(--taj-shadow) !important; }
body.teachers-index .avtar { overflow: hidden; border: 3px solid rgba(201,155,67,.45); }
body.teachers-index .avtar img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* Apply to Teach: retain the useful form, present it as a compact premium card. */
body.teacherrequest-index .section-full { position: relative; isolation: isolate; }
body.teacherrequest-index .section-full::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7,31,32,.82) 0%, rgba(7,31,32,.48) 45%, rgba(7,31,32,.08) 75%);
}

body.teacherrequest-index .slideshow-content {
  z-index: 1 !important;
  width: min(470px, calc(100% - 40px)) !important;
  max-width: 470px !important;
  padding: 28px !important;
  border: 1px solid rgba(232,207,145,.36) !important;
  border-radius: var(--taj-radius) !important;
  background: rgba(7,31,32,.76) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.25) !important;
  -webkit-backdrop-filter: blur(9px) !important;
  backdrop-filter: blur(9px) !important;
  text-align: left !important;
}

body.teacherrequest-index .slideshow-content h1 {
  margin-bottom: 8px !important;
  color: #fff !important;
  font-size: clamp(32px, 3vw, 44px) !important;
  line-height: 1.08 !important;
}

body.teacherrequest-index .slideshow-content > p { color: rgba(255,255,255,.84) !important; font-size: 16px !important; }
body.teacherrequest-index .form-register { margin-top: 18px !important; }
body.teacherrequest-index .form-register input:not([type="checkbox"]):not([type="hidden"]),
body.teacherrequest-index .form-register select {
  height: 50px !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.96) !important;
}

body.teacherrequest-index .service {
  height: calc(100% - 24px);
  margin-bottom: 24px !important;
  padding: 22px !important;
  border: 1px solid rgba(13,89,79,.11) !important;
  border-radius: var(--taj-radius) !important;
  background: #fff !important;
  box-shadow: 0 12px 34px rgba(7,31,32,.07) !important;
}

body.teacherrequest-index .service__media { flex: 0 0 104px !important; width: 104px !important; }
body.teacherrequest-index .service__media img { width: 104px !important; height: 104px !important; object-fit: contain !important; }
body.teacherrequest-index .service__content h3 { color: var(--taj-emerald-deep) !important; font-size: 20px !important; }
body.teacherrequest-index .service__content p,
body.teacherrequest-index .service__content p * { color: #405553 !important; }

body.teacherrequest-index img[src*="1714973652-1695559538Asset43100.jpg"] { content: url('/images/tajulwaqar/benefit-earn-money.png'); }
body.teacherrequest-index img[src*="1714973683-1695559728Asset44100.jpg"] { content: url('/images/tajulwaqar/benefit-work-anywhere.png'); }
body.teacherrequest-index img[src*="1714973711-1695559798Asset46100.jpg"] { content: url('/images/tajulwaqar/benefit-teach-schedule.png'); }
body.teacherrequest-index img[src*="1714973748-1695559950Asset45100.jpg"] { content: url('/images/tajulwaqar/benefit-manage-students.png'); }
body.teacherrequest-index img[src*="1714973780-1700103736Asset38100.jpg"] { content: url('/images/tajulwaqar/benefit-find-students.png'); }
body.teacherrequest-index img[src*="1714973807-1700103749Asset37100.jpg"] { content: url('/images/tajulwaqar/benefit-safety.png'); }
body.teacherrequest-index img[src*="1714973267-1695560407Asset36100.jpg"] { content: url('/images/tajulwaqar/process-register.png'); }
body.teacherrequest-index img[src*="1714973557-1700104853Asset40100.jpg"] { content: url('/images/tajulwaqar/process-complete-profile.png'); }
body.teacherrequest-index img[src*="1714973474-1700104932Asset46100.jpg"] { content: url('/images/tajulwaqar/process-start-teaching.png'); }

/* Replace the old watermarked editorial image with the new academy artwork. */
body.content-index img[src*="1783257744-watermarkedimg17676808274305109911.png"] {
  content: url('/images/tajulwaqar/about-learning-banner-2000x900.jpg');
  width: 100% !important;
  height: auto !important;
  max-height: 560px;
  object-fit: cover !important;
  border-radius: var(--taj-radius) !important;
  box-shadow: var(--taj-shadow);
}

/* Blog and content pages. */
.section--blog-banner .slideshow-content,
.blog-banner .slideshow-content {
  width: min(560px, calc(100% - 40px)) !important;
  padding: 24px !important;
  border-radius: var(--taj-radius) !important;
  background: rgba(7,31,32,.70) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}

.blog-card,
.article-card,
.post-card {
  overflow: hidden;
  border: 1px solid rgba(13,89,79,.10) !important;
  border-radius: var(--taj-radius) !important;
  background: #fff !important;
  box-shadow: 0 12px 34px rgba(7,31,32,.08) !important;
}

.blog-card img,
.article-card img,
.post-card img { width: 100% !important; object-fit: cover !important; }

.footer { background: var(--taj-ink) !important; }
.footer a:hover { color: var(--taj-gold-soft) !important; }

/* Arabic / RTL identity: mirrored storytelling, native alignment and spacing. */
html[dir="rtl"] body,
body[dir="rtl"] {
  font-family: "Tajawal", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  text-align: right;
}

html[dir="rtl"] body.home-index .taj-hero-content,
body[dir="rtl"].home-index .taj-hero-content {
  right: 5vw !important;
  left: auto !important;
  text-align: right !important;
}

html[dir="rtl"] body.home-index .taj-hero-content::before,
body[dir="rtl"].home-index .taj-hero-content::before {
  inset: -55px -140px -55px -90px;
  background: radial-gradient(ellipse at 58% 50%, rgba(7,31,32,.78) 0%, rgba(7,31,32,.50) 48%, transparent 74%);
}

html[dir="rtl"] body.home-index .section-slideshow picture img,
body[dir="rtl"].home-index .section-slideshow picture img {
  transform: scaleX(-1);
}

html[dir="rtl"] body.home-index .subject__name,
body[dir="rtl"].home-index .subject__name {
  align-items: center !important;
  text-align: center !important;
}

html[dir="rtl"] body.teacherrequest-index .section-full::after,
body[dir="rtl"].teacherrequest-index .section-full::after {
  background: linear-gradient(270deg, rgba(7,31,32,.82) 0%, rgba(7,31,32,.48) 45%, rgba(7,31,32,.08) 75%);
}

html[dir="rtl"] body.teacherrequest-index .slideshow-content,
body[dir="rtl"].teacherrequest-index .slideshow-content { text-align: right !important; }

html[dir="rtl"] body.teacherrequest-index .section-full picture img,
body[dir="rtl"].teacherrequest-index .section-full picture img { transform: scaleX(-1); }

html[dir="rtl"] body.teachers-index .page-title,
body[dir="rtl"].teachers-index .page-title,
html[dir="rtl"] body.teachers-index .filter-panel,
body[dir="rtl"].teachers-index .filter-panel { text-align: right; }

html[dir="rtl"] .service--horizontal,
body[dir="rtl"] .service--horizontal { direction: rtl; text-align: right; }

html[dir="rtl"] .btn,
body[dir="rtl"] .btn { letter-spacing: 0; }

@media (max-width: 767px) {
  body.home-index .slideshow-content.taj-hero-content {
    width: calc(100% - 32px) !important;
    padding: 0 !important;
  }
  html[dir="rtl"] body.home-index .slideshow-content.taj-hero-content,
  body[dir="rtl"].home-index .slideshow-content.taj-hero-content {
    right: 16px !important;
    left: auto !important;
  }
  body.home-index .taj-hero-title { font-size: 34px !important; }
  body.home-index .taj-hero-description { font-size: 16px !important; }
  body.home-index .taj-hero-actions { flex-wrap: wrap; }
  body.home-index .taj-hero-action { width: 100%; justify-content: center; }
  body.home-index .subject { min-height: 220px !important; }
  body.teacherrequest-index .slideshow-content { padding: 22px !important; }
  body.teacherrequest-index .service { display: block !important; }
  body.teacherrequest-index .service__media { margin-bottom: 14px; }
}
