/* CMS extras for adibenglish — keep template CSS intact */

/* Header: logo + menu + buttons on one row */
body .navbar {
  flex-wrap: nowrap;
}

body .navbar > .container.adib-topbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

body .navbar .logo-a {
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

body .navbar .logo-a img.adib-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
}

body .navbar .brand-text {
  min-width: 0;
}

body .navbar .brand-name {
  width: auto !important;
  min-width: 0 !important;
  text-align: start !important;
  text-align-last: start !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

body .navbar .left-menu {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

body .navbar .adib-cta-btn,
body .navbar .adib-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

@media screen and (min-width: 1201px) {
  body .navbar .menu {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 12px;
    margin-left: 12px;
  }

  body .navbar .menu > ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
  }

  body .navbar .menu > ul > li > a {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media screen and (max-width: 1400px) and (min-width: 1201px) {
  body .navbar .menu a {
    font-size: 0.75rem;
  }

  body .navbar .brand-name {
    font-size: 14.5px;
  }

  body .navbar .brand-name-en {
    font-size: 9.5px;
    letter-spacing: 1px;
  }
}

.adib-menu-actions {
  display: none;
}

@media screen and (max-width: 1200px) {
  body .navbar .left-menu .adib-cta-btn,
  body .navbar .left-menu .adib-portal-btn {
    display: none !important;
  }

  body .navbar .adib-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 13px 28px;
  }

  body .navbar .adib-menu-actions .adib-cta-btn,
  body .navbar .adib-menu-actions .adib-portal-btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  body .navbar .adib-menu-actions span {
    display: inline;
  }
}

@media screen and (min-width: 1201px) {
  body .navbar .adib-menu-actions {
    display: none !important;
  }
}

.adib-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.adib-heart {
  color: #e11d48;
  margin-right: 0.25rem;
}

.footer-socials.adib-footer-badges img {
  height: 48px;
  width: auto;
}

a.teacher-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.course-level-item {
  text-decoration: none;
  color: inherit;
}

.event-list-info h4 a,
.article-card-body h3 a,
.news-list-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.news-list-card-img,
.article-card-img,
.adib-teacher-card-img {
  display: block;
}

.adib-teacher-detail-img img {
  object-fit: cover;
}

.adib-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.adib-empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted, #5b6b7c);
}

.adib-empty-state i {
  font-size: 2.4rem;
  color: var(--primary-color, #0a3d6e);
  margin-bottom: 0.85rem;
  display: block;
}

.adib-empty-state p {
  margin-bottom: 1.25rem;
}

.adib-reset-filter {
  margin-top: 1rem;
}

.adib-money {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  direction: rtl;
  unicode-bidi: isolate;
}

.adib-money__num {
  direction: ltr;
  unicode-bidi: isolate;
}

.adib-rich-text h3,
.course-content-section h3,
.news-detail-body h2 {
  margin: 1.5rem 0 0.75rem;
}

.adib-rich-text p,
.news-detail-body p,
.about-content p {
  line-height: 1.9;
}

.adib-generic-page {
  padding-bottom: 3rem;
}

.adib-comments-empty {
  margin: 0 0 1.25rem;
  color: var(--text-muted, #5b6b7c);
}

.adib-captcha {
  margin-bottom: 1rem;
}

.adib-captcha img,
.adib-captcha .dntCaptchaImage {
  max-width: 100%;
  border-radius: 8px;
}

.news-detail-hero-img video {
  width: 100%;
  display: block;
  border-radius: inherit;
}

.category-list-item.active {
  color: var(--primary-color, #0a3d6e);
  font-weight: 700;
}

.map-wrap.adib-map-iframe {
  padding: 0;
  overflow: hidden;
  min-height: 280px;
}

.map-wrap.adib-map-iframe iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.adib-pagination {
  margin: 1.5rem 0 2.5rem;
}

.adib-pagination hr,
.adib-pagination .row > div:last-child {
  display: none;
}

.adib-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.adib-pagination .page-item {
  list-style: none;
}

.adib-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border-radius: 10px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: var(--primary-color, #0a3d6e);
  text-decoration: none;
  font-weight: 600;
}

.adib-pagination .page-item.active .page-link,
.adib-pagination .page-link:hover {
  background: var(--primary-color, #0a3d6e);
  color: #fff;
  border-color: var(--primary-color, #0a3d6e);
}

.swal2-popup,
.swal2-title,
.swal2-html-container,
.swal2-confirm,
.swal2-cancel {
  font-family: IRANYekanX, Tahoma, sans-serif !important;
}

@media (max-width: 991px) {
  .adib-teachers-list .course-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .adib-portal-btn span {
    display: none;
  }
}
