/* Pharma Empower additions on top of the Laborax theme.
   Colours come from the theme variables (theme-style.css :root). */

:root {
  --pe-radius: 20px;
  --pe-shadow: 0 10px 40px rgba(4, 11, 47, 0.06);
}

/* ---------- Logo ---------- */
.ht-site-logo img.pe-logo { height: var(--logo-desktop-height); width: auto; max-width: 230px; }
@media (max-width: 1024px) { .ht-site-logo img.pe-logo { height: var(--logo-tablet-height); } }
@media (max-width: 767px)  { .ht-site-logo img.pe-logo { height: 44px; max-width: 170px; } }
.pe-header-mail { font-size: 34px; color: var(--themeht-primary-color); margin-right: 12px; }

/* Header actions are links/buttons rendered by React */
button.themeht-btn { border: 0; }
.main-nav .sub-menu.show { display: block; }
@media (min-width: 1200px) {
  #menu-main-menu > li > a { white-space: nowrap; }
  /* our header has no phone widget, so the logo + menu group gets more room */
  .elementor-571 .elementor-element.elementor-element-aa8f26b { --width: 80%; }
  .elementor-571 .elementor-element.elementor-element-4fe9c2c { --width: 20%; }
}
@media (min-width: 1200px) and (max-width: 1499px) {
  #menu-main-menu > li > a { padding-left: 10px; padding-right: 10px; }
}

/* Header below 1200px (hamburger mode): logo left, menu button next to the actions on the right */
@media (max-width: 1199px) {
  .elementor-571 .elementor-element.elementor-element-aa8f26b { --width: auto; flex: 1 1 auto; --justify-content: space-between; justify-content: space-between; }
  .elementor-571 .elementor-element.elementor-element-4fe9c2c { --width: auto; flex: 0 0 auto; }
  .elementor-571 .elementor-element.elementor-element-708f91d { margin-left: auto; margin-right: 12px; }
}

/* Hero slider arrows: Swiper injects its own arrow graphic into the buttons, on top of the
   theme's arrow icon – hide Swiper's so each button shows one clean arrow. */
.swiper .swiper-navigation-icon { display: none !important; }
.swiper.banner-slider .swiper-button-prev,
.swiper.banner-slider .swiper-button-next { display: flex; align-items: center; justify-content: center; margin: 0; cursor: pointer; transition: background .2s; }
.swiper.banner-slider .swiper-button-prev:after,
.swiper.banner-slider .swiper-button-next:after { line-height: 1 !important; }
.swiper.banner-slider .swiper-button-disabled { opacity: 1; pointer-events: auto; }
/* On phones the theme lays the arrow tab along the bottom-right edge, where the floating
   "Need help?" button covers it – move it to the bottom-left instead. */
@media (max-width: 767px) {
  .banner-slider .banner-swiper-buttons { right: auto !important; left: 30px; }
}

/* Hero badge: keep "Pharma Empower" on one line */
.banner-slider .banner-text h6 span { white-space: nowrap; }
@media (max-width: 1199px) {
  .elementor-9 .elementor-element.elementor-element-d1b0bfd .banner-content { width: 78%; }
}
@media (max-width: 767px) {
  .elementor-9 .elementor-element.elementor-element-d1b0bfd .banner-content { width: 100%; }
  .banner-slider .banner-text h6 { font-size: 11px; letter-spacing: 1px; line-height: 20px; }
  .banner-slider .banner-content p, .banner-slider .banner-text p { max-width: 100% !important; width: 100% !important; }
  .elementor-571 .elementor-element.elementor-element-aa8f26b { width: 100% !important; flex: 1 1 100% !important; }
  .elementor-571 .elementor-element.elementor-element-34413fa { margin-right: auto; }
}
@media (max-width: 575px) {
  .banner-slider .banner-text h6 span { display: none; }
}

/* Home boxed sections are capped at 1440px by the theme, so on ~1280-1500px screens they
   touched the window edges. Keep at least a 40px margin each side. */
@media (min-width: 1025px) {
  .elementor-9 > .e-con-boxed > .e-con-inner { max-width: min(var(--content-width, 1440px), calc(100% - 80px)) !important; }
}

/* Hero: a little wider text column so headlines wrap less */
.banner-slider .banner-text { width: 100%; max-width: 820px; }
@media (min-width: 1200px) {
  .elementor-9 .elementor-element.elementor-element-d1b0bfd .banner-content { width: 64%; }
}
@media (max-width: 767px) { .banner-slider .hero-heading { font-size: 46px; line-height: 54px; } }

/* ---------- Generic sections ---------- */
/* theme-style.css forces .container to 1440px !important; centre our page sections at 1320px */
.pe-main .container { max-width: 1320px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 24px; padding-right: 24px; }
@media (max-width: 575px) { .pe-main .container { padding-left: 18px; padding-right: 18px; } .pe-main .row.g-5 { --bs-gutter-x: 2.25rem; } }

/* About pillars */
.pe-pillar {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 28px 24px 24px;
  background: var(--themeht-white-color); border-radius: var(--pe-radius); box-shadow: var(--pe-shadow);
  color: var(--themeht-body-color); transition: transform .3s, background-color .3s;
}
.pe-pillar > i { font-size: 46px; line-height: 1; color: var(--themeht-primary-color); margin-bottom: 18px; transition: color .3s; }
.pe-pillar h5 { margin: 0 0 4px; transition: color .3s; }
.pe-pillar-text { font-size: 15px; }
.pe-pillar-no { position: absolute; top: 18px; right: 22px; font-weight: 600; font-size: 14px; color: var(--themeht-border-light-color); }
.pe-pillar-arrow { margin-top: auto; padding-top: 16px; font-size: 20px; color: var(--themeht-primary-color); }
.pe-pillar:hover { transform: translateY(-4px); background: var(--themeht-primary-color); color: rgba(255,255,255,.85); }
.pe-pillar:hover > i, .pe-pillar:hover h5, .pe-pillar:hover .pe-pillar-arrow { color: #fff; }
@media (max-width: 575px) {
  .pe-pillar { padding: 20px 16px 16px; }
  .pe-pillar > i { font-size: 36px; margin-bottom: 12px; }
  .pe-pillar h5 { font-size: 17px; }
  .pe-pillar-text { font-size: 13px; line-height: 20px; }
}
.pe-section { padding: 110px 0; position: relative; }
.pe-section.pt-0 { padding-top: 0; }
@media (max-width: 991px) { .pe-section { padding: 70px 0; } }
.pe-section-lead { max-width: 720px; margin: 15px auto 0; }
.theme-title { margin-bottom: 30px; }
.pe-title-light h2, .pe-dark h2, .pe-dark h3, .pe-dark h4 { color: var(--themeht-white-color); }
/* subtitle pills keep their white background, so keep dark text on them */
.pe-dark .ht-subtitle h6, .pe-title-light .ht-subtitle h6 { color: var(--themeht-text-color); }
.text-white-75 { color: rgba(255, 255, 255, 0.75); }
.lead-text { font-size: 18px; line-height: 30px; color: var(--themeht-text-color); }
.pe-kicker {
  color: var(--themeht-primary-color); text-transform: uppercase; letter-spacing: 2px;
  font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.pe-dark .pe-kicker { color: #7ea2ff; }

/* ---------- Stats ---------- */
.pe-stats { padding: 80px 0; }
@media (max-width: 991px) { .pe-stats { padding: 30px 0 60px; } }
.pe-stats .counter, .pe-dark .counter { height: 100%; }
.pe-dark .counter h6, .pe-dark .counter .counter-desc span { color: var(--themeht-white-color); }

/* ---------- CTA ---------- */
.pe-cta { padding: 0 0 110px; }
.pe-cta-box {
  border-radius: 30px; padding: 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 30px; flex-wrap: wrap; color: rgba(255,255,255,.85);
  background-image: radial-gradient(circle at 90% 10%, rgba(255,255,255,.16), transparent 45%);
}
@media (max-width: 767px) { .pe-cta-box { padding: 36px 24px; } }

/* ---------- Cards ---------- */
.pe-card-link { display: block; height: 100%; }
.pe-card-link .featured-item { height: 100%; }
.featured-item.style-2:not(.text-white) { background: var(--themeht-white-color); padding: 25px; border-radius: var(--pe-radius); }
.service-item .service-subtitle a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pe-mini-card {
  display: flex; gap: 15px; background: var(--themeht-white-color); padding: 20px;
  border-radius: var(--pe-radius); height: 100%; box-shadow: var(--pe-shadow);
}
.pe-mini-card i { font-size: 34px; color: var(--themeht-primary-color); line-height: 1; }
.pe-mini-card p { margin: 0; font-size: 15px; line-height: 24px; }

.pe-image-stack { position: relative; padding: 0 0 60px 60px; }
.pe-image-stack img { border-radius: 30px; }
.pe-image-stack img:first-child { width: 80%; }
.pe-image-stack img:nth-child(2) { position: absolute; left: 0; bottom: 0; width: 55%; border: 8px solid var(--themeht-light-color); }
.pe-image-badge {
  position: absolute; right: 0; bottom: 30px; border-radius: 20px; padding: 22px 28px;
  color: #fff; display: flex; flex-direction: column;
}
.pe-image-badge strong { font-size: 40px; line-height: 1; font-family: var(--themeht-typography-secondary-font-family); }

.pe-quote { border-left: 4px solid var(--themeht-primary-color); padding: 10px 0 10px 30px; }
.pe-quote p { color: #fff; font-size: 24px; line-height: 36px; font-family: var(--themeht-typography-secondary-font-family); margin: 0; }

.pe-marquee-band { padding: 40px 0; overflow: hidden; }

.pe-stage-card, .pe-form-card, .pe-sidebar, .pe-skill-card, .pe-job, .pe-qa, .pe-gate {
  background: var(--themeht-white-color); border-radius: var(--pe-radius); padding: 35px; box-shadow: var(--pe-shadow);
}
@media (max-width: 575px) { .pe-stage-card, .pe-form-card, .pe-sidebar, .pe-gate { padding: 24px; } }
.pe-stage-card { height: 100%; }
.pe-stage-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pe-stage-no { font-size: 48px; font-weight: 600; color: var(--themeht-primary-color); font-family: var(--themeht-typography-secondary-font-family); line-height: 1; }
.pe-stage-head i { font-size: 46px; color: var(--themeht-text-color); }
.pe-stage-who { display: inline-block; color: var(--themeht-primary-color); font-weight: 600; font-size: 14px; margin-bottom: 12px; }

.pe-check-list { list-style: none; padding: 0; margin: 0 0 15px; }
.pe-check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.pe-check-list li::before {
  content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0;
  color: var(--themeht-primary-color); font-size: 18px;
}
.pe-check-list.pe-inline { display: flex; flex-wrap: wrap; gap: 0 30px; }

.pe-timeline { margin: 30px 0; }
.pe-timeline-item { display: flex; gap: 25px; padding: 25px; background: #fff; border-radius: var(--pe-radius); margin-bottom: 15px; box-shadow: var(--pe-shadow); }
.pe-timeline-no {
  flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--themeht-primary-color); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600;
}
.pe-timeline-item p { margin: 0; }
.pe-callout { background: var(--themeht-bg-dark-color); color: rgba(255,255,255,.85); border-radius: var(--pe-radius); padding: 30px; }
.pe-callout h5 { color: #fff; }

.pe-topic-block { padding: 25px 0; border-bottom: 1px solid var(--themeht-border-light-color); }
.pe-topic-block:last-child { border-bottom: 0; }

.pe-sidebar h5 { margin-bottom: 18px; }
.pe-side-links { list-style: none; padding: 0; margin: 0; }
.pe-side-links li a {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: var(--themeht-light-color); margin-bottom: 8px; color: var(--themeht-text-color); font-weight: 500;
}
.pe-side-links li a i { color: var(--themeht-primary-color); font-size: 20px; }
.pe-side-links li.active a, .pe-side-links li a:hover { background: var(--themeht-primary-color); color: #fff; }
.pe-side-links li.active a i, .pe-side-links li a:hover i { color: #fff; }

.pe-portal {
  display: flex; gap: 18px; background: #fff; border-radius: var(--pe-radius); padding: 22px;
  box-shadow: var(--pe-shadow); color: var(--themeht-body-color); transition: transform .3s;
}
.pe-portal:hover { transform: translateY(-4px); color: var(--themeht-body-color); }
.pe-portal > i { font-size: 36px; color: var(--themeht-primary-color); line-height: 1; }
.pe-portal p { margin: 0; font-size: 15px; line-height: 24px; }
.pe-portal h6 i { font-size: 12px; }

/* Gate */
.pe-gate { text-align: center; padding: 50px 30px; }
.pe-gate-icon {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 20px; background: var(--themeht-primary-color);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px;
}

/* Filters & search */
.pe-toolbar { display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.pe-search {
  border: 1px solid var(--themeht-border-light-color); border-radius: 50px; padding: 12px 22px;
  min-width: 280px; background: #fff; outline: none;
}
.pe-search:focus { border-color: var(--themeht-primary-color); }
.portfolio-filter button { margin: 4px; }
.pe-cat {
  display: inline-block; background: var(--themeht-primary-color); color: #fff; border-radius: 30px;
  padding: 3px 12px; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; line-height: 20px;
}

/* News / event cards: the theme reserves 90px on the right for the arrow; on phones
   put the arrow below the text instead so titles get the full width. */
@media (max-width: 575px) {
  .post-card.style-3 .post-desc { padding: 24px 24px 80px; }
  .post-card.style-3 .post-title h4 { font-size: 22px; line-height: 30px; }
}

/* Live news */
.pe-live-card { height: 100%; display: flex; flex-direction: column; }
.pe-live-card .post-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--themeht-light-color); }
.pe-live-card .post-title h4 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pe-live-desc { font-size: 15px; line-height: 24px; margin: 10px 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pe-read-more { font-weight: 600; font-size: 14px; color: var(--themeht-primary-color); }
.pe-read-more i { font-size: 12px; margin-left: 4px; }
.pe-live-status { text-align: center; font-size: 14px; margin: -14px 0 30px; }
.pe-live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #16a34a; margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: pe-pulse 2s infinite;
}
@keyframes pe-pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { .pe-live-dot { animation: none; } }

/* Events */
.pe-event .post-image { position: relative; }
.pe-event-date {
  position: absolute; left: 15px; bottom: 15px; background: #fff; color: var(--themeht-text-color);
  border-radius: 30px; padding: 6px 14px; font-size: 13px; font-weight: 600;
}
.pe-event-text { font-size: 15px; line-height: 24px; margin-top: 10px; }

/* Articles */
.pe-article-img { border-radius: 30px; margin-bottom: 25px; width: 100%; }
.pe-legal h3 { margin-top: 35px; font-size: 26px; }
.pe-legal h5 { margin-top: 20px; }

/* Skill board */
.pe-skill-card { height: 100%; }
.pe-level { font-size: 13px; font-weight: 600; color: var(--themeht-text-color); }
.pe-progress { height: 8px; background: var(--themeht-light-color); border-radius: 10px; overflow: hidden; margin: 15px 0; }
.pe-progress div { height: 100%; background: var(--themeht-primary-color); border-radius: 10px; }
.pe-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pe-tools span { background: var(--themeht-light-color); border-radius: 8px; padding: 3px 10px; font-size: 13px; }
.pe-path { color: var(--themeht-primary-color); font-weight: 500; }
.pe-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.pe-tabs button {
  border: 1px solid var(--themeht-border-light-color); background: #fff; border-radius: 50px;
  padding: 12px 26px; font-weight: 600; color: var(--themeht-text-color);
}
.pe-tabs button.active { background: var(--themeht-primary-color); border-color: var(--themeht-primary-color); color: #fff; }
.pe-skill-stage { margin-bottom: 40px; }
.pe-table { width: 100%; background: #fff; border-radius: var(--pe-radius); overflow: hidden; box-shadow: var(--pe-shadow); border-collapse: collapse; }
.pe-table th { background: var(--themeht-bg-dark-color); color: #fff; padding: 14px 18px; font-weight: 600; }
.pe-table td { padding: 14px 18px; border-top: 1px solid var(--themeht-light-color); vertical-align: top; }

/* Jobs */
.pe-job { display: flex; gap: 20px; height: 100%; }
.pe-job-icon {
  flex: 0 0 60px; height: 60px; border-radius: 16px; background: var(--themeht-light-color);
  display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--themeht-primary-color);
}
.pe-job-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.pe-empty { text-align: center; margin-bottom: 30px; }

/* Forums */
.pe-qa { margin-bottom: 18px; padding: 25px; }
.pe-qa-q, .pe-qa-a { display: flex; gap: 14px; }
.pe-qa-q i { color: var(--themeht-primary-color); font-size: 22px; }
.pe-qa-a { margin-top: 15px; padding: 15px; background: var(--themeht-light-color); border-radius: 14px; }
.pe-qa-a i { color: #16a34a; font-size: 20px; }

/* Sessions */
.pe-session { border-left: 4px solid #94a3b8; background: var(--themeht-light-color); border-radius: 12px; padding: 15px 18px; margin-top: 12px; }
.pe-status-approved, .pe-status-completed { border-color: #16a34a; }
.pe-status-rejected { border-color: #dc2626; }
.pe-status-pending { border-color: #f59e0b; }

/* Forms */
.pe-form-card h4 { margin-bottom: 15px; }
.wpcf7-form-control:disabled { opacity: .7; }
.pe-alert { border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.pe-alert-success { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; }
.pe-alert-error { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }
.pe-form-note { margin: 10px 0 0; font-size: 14px; }
.pe-form-note.ok { color: #86efac; }
.pe-form-note.err { color: #fca5a5; }
.pe-contact-box { margin-top: 30px; }
.pe-contact-box .contact-info li { margin-bottom: 20px; gap: 18px; align-items: center; }
.pe-contact-box .contact-icon { flex: 0 0 auto; }

.pe-auth { text-align: left; }
.pe-auth-logo { display: block; height: 60px; width: auto; margin: 0 auto 20px; }
.pe-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 15px; background: var(--themeht-primary-color);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 600;
}
.pe-404 { font-size: 140px; line-height: 1; color: var(--themeht-primary-color); }

/* ---------- Phone & tablet typography / spacing ---------- */
@media (max-width: 991px) {
  .pe-section .theme-title h2, .pe-cta-box h2 { font-size: 38px; line-height: 46px; }
  .page-title { padding-top: 170px; }
  .page-title h1 { font-size: 46px; line-height: 54px; margin-bottom: 70px; }
}
@media (max-width: 575px) {
  .pe-section { padding: 60px 0; }
  .pe-section .theme-title h2, .pe-cta-box h2 { font-size: 30px; line-height: 38px; }
  .theme-title { margin-bottom: 22px; }
  .lead-text { font-size: 16px; line-height: 27px; }
  .page-title { padding-top: 140px; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; }
  .page-title h1 { font-size: 34px; line-height: 42px; margin-bottom: 60px; }
  /* breadcrumb: only Home + current page on phones */
  .page-breadcrumb .breadcrumb-item:not(:first-child):not(.active) { display: none; }
  .page-breadcrumb .breadcrumb { flex-wrap: nowrap; max-width: 100%; }
  .breadcrumb-item.active { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; display: block; line-height: 26px; }
  /* theme feature cards are very tall on phones */
  .featured-item.style-1 { padding: 28px 24px; }
  .featured-item.style-1 .featured-icon { margin-bottom: 18px; }
  .featured-item.style-1 .featured-icon i { font-size: 48px; }
  .featured-item.style-1 .featured-title h4 { font-size: 22px; }
  .featured-item.style-2 .featured-title h4 { font-size: 20px; }
  .pe-stage-card, .pe-form-card, .pe-sidebar, .pe-skill-card, .pe-job, .pe-qa, .pe-gate { padding: 22px 18px; }
  .pe-timeline-item { gap: 16px; padding: 20px 18px; }
  .pe-timeline-no { flex-basis: 42px; height: 42px; font-size: 18px; }
  .pe-timeline-item h4 { font-size: 20px; }
  .pe-image-stack { padding: 0 0 40px 30px; }
  .pe-image-badge { padding: 14px 18px; bottom: 10px; }
  .pe-image-badge strong { font-size: 28px; }
  .pe-quote { padding-left: 20px; }
  .pe-quote p { font-size: 20px; line-height: 30px; }
  .pe-cta { padding-bottom: 60px; }
  .pe-toolbar { margin-bottom: 28px; }
  .pe-search { min-width: 0; width: 100%; }
  .portfolio-filter { display: flex; flex-wrap: wrap; gap: 8px; }
  .portfolio-filter button { margin: 0; flex: 1 1 auto; }
  .pe-tabs button { flex: 1 1 100%; }
  .pe-job { flex-direction: column; gap: 14px; }
  .pe-404 { font-size: 96px; }
}

/* ---------- Faster mobile menu (theme waits ~1.5s before the panel appears) ---------- */
@media (max-width: 1199px) {
  .main-nav, .main-nav.menu-active, .ht-mobile-menu-bg, .menu-active .ht-mobile-menu-bg {
    transition: all 350ms ease !important; transition-delay: 0ms !important;
  }
  .main-nav.menu-active { box-shadow: -20px 0 60px rgba(2, 5, 23, .25); }
  .menu-active .ht-mobile-menu-bg { opacity: .55; }
}

/* ---------- Footer on phones: Explore + Academy side by side ---------- */
@media (max-width: 767px) {
  .elementor-586 .elementor-element.elementor-element-06baf3f { flex-direction: row !important; flex-wrap: wrap !important; gap: 30px 20px !important; }
  .elementor-586 .elementor-element.elementor-element-9a10545,
  .elementor-586 .elementor-element.elementor-element-26f7738 { width: calc(50% - 10px) !important; flex: 0 0 calc(50% - 10px); }
  .elementor-586 .elementor-element.elementor-element-3d866bc { width: 100% !important; flex: 0 0 100%; }
  .footer-menu li a { font-size: 15px; }
}

/* ---------- Very small phones: long emails and long button labels must wrap ---------- */
.contact-info li { max-width: 100%; }
.contact-details { min-width: 0; }
.contact-details a, .contact-details span { overflow-wrap: anywhere; }
.themeht-btn { max-width: 100%; }
@media (max-width: 400px) {
  .themeht-btn .btn-text { white-space: normal; text-align: left; }
}

/* ---------- Help assistant – predefined Q&A (floating, bottom right) ---------- */
.scroll-top { right: 34px; bottom: 100px; }
.pe-chat { position: fixed; right: 24px; bottom: 24px; z-index: 10001; font-family: var(--themeht-typography-body-font-family); }
.pe-chat-fab {
  height: 56px; min-width: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 30px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--themeht-primary-color); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; float: right;
  box-shadow: 0 10px 30px rgba(19, 76, 247, .4); transition: transform .2s, box-shadow .2s, background .2s;
}
.pe-chat-fab i { font-size: 22px; line-height: 1; }
.pe-chat-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(19, 76, 247, .5); }
.pe-chat.is-open .pe-chat-fab { padding: 0; width: 56px; justify-content: center; background: var(--themeht-bg-dark-color); }
.pe-chat-fab::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 56px; height: 56px; border-radius: 30px; pointer-events: none;
  animation: pe-chat-ring 2.6s ease-out infinite; box-shadow: 0 0 0 0 rgba(19, 76, 247, .45);
}
.pe-chat.is-open .pe-chat-fab::after { display: none; }
@keyframes pe-chat-ring { 0% { box-shadow: 0 0 0 0 rgba(19,76,247,.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(19,76,247,0); } }

.pe-chat-nudge {
  position: absolute; right: 0; bottom: 70px; width: max-content; max-width: 260px; text-align: left; padding: 12px 34px 12px 16px;
  background: #fff; color: var(--themeht-text-color); border: 1px solid var(--themeht-border-light-color); border-radius: 16px 16px 4px 16px;
  box-shadow: 0 12px 32px rgba(4, 11, 47, .15); font-size: 14px; line-height: 1.4; cursor: pointer; animation: pe-chat-in .3s ease-out;
}
.pe-chat-nudge strong { display: block; color: var(--themeht-primary-color); }
.pe-chat-nudge-x { position: absolute; top: 4px; right: 10px; font-size: 18px; color: #94a3b8; line-height: 1; padding: 2px; }

.pe-chat-panel {
  position: absolute; right: 0; bottom: 72px; width: 380px; height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(4, 11, 47, .28); border: 1px solid rgba(4,11,47,.06);
  animation: pe-chat-in .22s cubic-bezier(.2,.8,.2,1); transform-origin: bottom right;
}
@keyframes pe-chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.pe-chat-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; color: #fff;
  background: radial-gradient(circle at 90% 0, rgba(255,255,255,.18), transparent 45%), linear-gradient(120deg, #0b1023, #134CF7);
}
.pe-chat-avatar { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pe-chat-avatar img { width: 30px; height: 30px; }
.pe-chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pe-chat-title strong { font-size: 16px; font-family: var(--themeht-typography-secondary-font-family); font-weight: 600; }
.pe-chat-title small { font-size: 12px; color: rgba(255,255,255,.78); display: flex; align-items: center; gap: 6px; }
.pe-chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.pe-chat-icon { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #fff; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pe-chat-icon:hover { background: rgba(255,255,255,.15); }

.pe-chat-body { flex: 1; overflow-y: auto; padding: 16px; background: #f6f7fb; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.pe-msg { display: flex; }
.pe-msg-user { justify-content: flex-end; }
.pe-bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; word-wrap: break-word; overflow-wrap: anywhere; }
.pe-msg-bot .pe-bubble { background: #fff; color: var(--themeht-text-color); border: 1px solid #e8ebf3; border-bottom-left-radius: 4px; }
.pe-msg-user .pe-bubble { background: var(--themeht-primary-color); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.pe-bubble p { margin: 0 0 8px; }
.pe-bubble p:last-child, .pe-bubble ul:last-child, .pe-bubble ol:last-child { margin-bottom: 0; }
.pe-bubble ul, .pe-bubble ol { margin: 0 0 8px; padding-left: 20px; }
.pe-bubble li { margin-bottom: 3px; }
.pe-bubble a { color: var(--themeht-primary-color); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pe-bubble code { background: #eef1f7; padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.pe-bubble-note { background: #fff8eb !important; border-color: #fde7c2 !important; }
.pe-bubble-error { background: #fef2f2 !important; border-color: #fecaca !important; color: #991b1b !important; }
.pe-chat-h { margin-top: 4px !important; }

.pe-chat-options { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 4px; }
.pe-chat-options button {
  text-align: left; border: 1px solid #d9e2fd; background: #fff; color: var(--themeht-primary-color); border-radius: 14px;
  padding: 7px 12px; font-size: 13px; font-weight: 500; line-height: 1.35; cursor: pointer; transition: background .15s, border-color .15s;
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
}
.pe-chat-options button:hover { background: #eef3ff; border-color: #b9caf9; }
.pe-chat-options button.has-icon { background: #f3f6ff; }
.pe-chat-options button i { font-size: 14px; }

.pe-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.pe-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: pe-typing 1.2s infinite ease-in-out; }
.pe-typing i:nth-child(2) { animation-delay: .15s; }
.pe-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pe-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.pe-chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #edf0f6; background: #fff; }
.pe-chat .pe-chat-input input {
  flex: 1; height: 42px; padding: 0 14px; margin: 0; border: 1px solid #dfe4ee; border-radius: 14px;
  font: 14px/1.4 var(--themeht-typography-body-font-family); color: var(--themeht-text-color); background: #f8f9fc; outline: none; box-shadow: none;
}
.pe-chat .pe-chat-input input:focus { border-color: var(--themeht-primary-color); background: #fff; box-shadow: 0 0 0 3px rgba(19,76,247,.12); }
.pe-chat-send {
  width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 12px; background: var(--themeht-primary-color); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer;
}
.pe-chat-send:disabled { background: #c7d2f0; cursor: not-allowed; }
.pe-chat-foot { margin: 0; padding: 0 14px 10px; background: #fff; font-size: 11px; color: #8a94a6; text-align: center; line-height: 1.4; }
.pe-chat-foot a { color: inherit; text-decoration: underline; }

@media (max-width: 575px) {
  .pe-chat { right: 16px; bottom: 16px; }
  .scroll-top { right: 24px; bottom: 86px; }
  .pe-chat-fab { height: 52px; min-width: 52px; padding: 0 18px 0 16px; }
  .pe-chat-fab::after { width: 52px; height: 52px; }
  .pe-chat.is-open .pe-chat-fab { display: none; }
  .pe-chat-panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
  .pe-chat-nudge { bottom: 64px; }
}
/* keep floating buttons out of the way while the phone menu or the side panel is open */
body.menu-active .pe-chat, body.menu-show .pe-chat,
body.menu-active .scroll-top, body.menu-show .scroll-top { visibility: hidden; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .pe-chat-fab::after, .pe-typing i, .pe-chat-panel, .pe-chat-nudge { animation: none; }
}

/* ---------- Keyboard focus ---------- */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--themeht-primary-color); outline-offset: 2px;
}

/* ---------- Loader ---------- */
.pe-loader { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 0; color: var(--themeht-text-color); }
.pe-spinner {
  width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--themeht-border-light-color);
  border-top-color: var(--themeht-primary-color); animation: pe-spin .8s linear infinite;
}
@keyframes pe-spin { to { transform: rotate(360deg); } }

/* ---------- Scroll reveal (added by useReveal only to off-screen items) ---------- */
.pe-reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease-out, transform .7s ease-out; }
.pe-reveal.is-visible { opacity: 1; transform: none; }
.row > .pe-reveal:nth-child(3n+2) { transition-delay: .1s; }
.row > .pe-reveal:nth-child(3n+3) { transition-delay: .2s; }

/* ---------- Mobile menu panel extras ---------- */
body.pe-no-scroll { overflow: hidden !important; }
.pe-mnav-head { padding: 24px 24px 8px; }
.pe-mnav-head img { height: 44px; width: auto; }
.pe-mnav-foot { padding: 24px; border-top: 1px solid var(--themeht-border-light-color); margin-top: 10px; }
.pe-mnav-foot span { display: block; font-size: 13px; color: var(--themeht-body-color); }
.pe-mnav-foot a { font-weight: 600; color: var(--themeht-primary-color); word-break: break-all; }

/* ---------- Side panel backdrop ---------- */
.pe-sidenav-backdrop { position: fixed; inset: 0; background: rgba(2, 5, 23, .5); z-index: 9998; }

/* ---------- Ticker ---------- */
.pe-ticker {
  display: flex; align-items: stretch; background: var(--themeht-white-color); border-top: 1px solid var(--themeht-border-light-color);
  border-bottom: 1px solid var(--themeht-border-light-color); overflow: hidden;
}
.pe-ticker-badge {
  flex: 0 0 auto; background: var(--themeht-primary-color); color: #fff; font-weight: 600; padding: 14px 22px;
  display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; z-index: 1;
}
.pe-ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.pe-ticker-inner { display: flex; white-space: nowrap; animation: pe-ticker 60s linear infinite; }
.pe-ticker:hover .pe-ticker-inner { animation-play-state: paused; }
.pe-ticker-item { padding: 0 40px; color: var(--themeht-text-color); position: relative; }
.pe-ticker-item strong { color: var(--themeht-primary-color); margin-right: 4px; }
.pe-ticker-item::after { content: "✦"; position: absolute; right: -6px; color: var(--themeht-primary-color); }
@keyframes pe-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pe-ticker-inner { animation: none; } }

/* ---------- Admin ---------- */
.pe-admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pe-admin-login .pe-form-card { width: 100%; max-width: 440px; }
.pe-admin { display: flex; min-height: 100vh; background: var(--themeht-light-color); }
.pe-admin-nav { width: 260px; flex: 0 0 260px; padding: 25px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.pe-admin-logo { height: 46px; width: auto; margin-bottom: 30px; }
.pe-admin-nav nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pe-admin-nav nav button {
  background: transparent; border: 0; color: rgba(255,255,255,.75); text-align: left; padding: 11px 14px; border-radius: 10px; font-weight: 500;
}
.pe-admin-nav nav button i { margin-right: 10px; }
.pe-admin-nav nav button.active, .pe-admin-nav nav button:hover { background: var(--themeht-primary-color); color: #fff; }
.pe-admin-user { color: rgba(255,255,255,.8); font-size: 14px; margin-top: 20px; word-break: break-all; }
.pe-admin-main { flex: 1; padding: 35px; min-width: 0; }
.pe-admin-main > h2 { font-size: 32px; line-height: 40px; margin-bottom: 25px; }
.pe-admin-card { background: #fff; border-radius: 16px; padding: 25px; margin-bottom: 25px; box-shadow: var(--pe-shadow); }
.pe-admin-item { border: 1px solid var(--themeht-border-light-color); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.pe-pre { white-space: pre-wrap; }
.pe-check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.pe-stat-tile {
  width: 100%; border: 0; background: #fff; border-radius: 16px; padding: 22px; text-align: left; box-shadow: var(--pe-shadow);
  display: flex; flex-direction: column; gap: 4px; transition: transform .2s;
}
.pe-stat-tile:hover { transform: translateY(-3px); }
.pe-stat-tile i { font-size: 24px; color: var(--themeht-primary-color); }
.pe-stat-tile strong { font-size: 32px; color: var(--themeht-text-color); }
.badge.pe-badge-pending { background: #f59e0b; }
.badge.pe-badge-approved, .badge.pe-badge-completed { background: #16a34a; }
.badge.pe-badge-rejected { background: #dc2626; }
@media (max-width: 991px) {
  .pe-admin { flex-direction: column; }
  .pe-admin-nav { width: 100%; flex: none; height: auto; position: static; }
  .pe-admin-nav nav { flex-direction: row; flex-wrap: wrap; }
  .pe-admin-main { padding: 20px; }
}
