/* =====================================================================
   QuickAid Healthcare – custom layer
   Loaded after the theme CSS. 1) New hero  2) Compact, consistent layout
   ===================================================================== */

:root {
  --qa-navy: #00236e;
  --qa-navy-2: #001a55;
  --qa-blue: #007eff;
  --qa-text: #5b6175;
  --qa-radius: 18px;
}

/* ---------------------------------------------------------------------
   1. HERO
   --------------------------------------------------------------------- */
.qa-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--qa-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 60%, #0a3a9e 0%, var(--qa-navy) 55%, var(--qa-navy-2) 100%);
  background-size: 18.5% 200px, 18.5% 200px, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
  min-height: 720px;
  color: #fff;
}

.qa-hero__inner {
  position: relative;
  min-height: 720px;
  padding-top: 70px;
}

.qa-hero__plus {
  position: absolute;
  top: 110px;
  left: 2%;
  font-size: 120px;
  line-height: 1;
  font-weight: 800;
  color: rgba(0, 126, 255, 0.25);
  pointer-events: none;
}

.qa-hero__kicker {
  position: relative;
  z-index: 3;
  display: table;
  margin: 0 auto;
  padding: 7px 18px 7px 34px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.qa-hero__kicker:before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #2ee59d;
  box-shadow: 0 0 0 4px rgba(46, 229, 157, 0.25);
}

/* Big two-line headline: line 1 sits behind the photo, line 2 in front */
.qa-hero__title {
  margin: 18px 0 0;
  padding: 0;
  text-align: center;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -2px;
  font-size: clamp(56px, 9.6vw, 150px);
}

.qa-hero__title span {
  display: block;
  position: relative;
}

.qa-hero__line1 {
  z-index: 1;
}

.qa-hero__line2 {
  z-index: 3;
  padding-left: 26%;
  text-shadow: 0 6px 30px rgba(0, 20, 70, 0.35);
}

.qa-hero__photo {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 470px;
  max-width: 44%;
  transform: translateX(-50%);
  pointer-events: none;
}

.qa-hero__heart {
  position: absolute;
  z-index: 3;
  top: 120px;
  right: 3%;
  width: 84px;
  animation: qaPulse 1.6s ease-in-out infinite;
}

@keyframes qaPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Patients pill */
.qa-hero__badge {
  position: absolute;
  z-index: 4;
  top: 318px;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 26px 12px 14px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.qa-hero__avatars {
  display: flex;
}

.qa-hero__avatars img,
.qa-hero__avatars span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  object-position: top;
  background: #dfe9ff;
  margin-left: -14px;
}

.qa-hero__avatars img:first-child {
  margin-left: 0;
}

.qa-hero__avatars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--qa-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.qa-hero__badge strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  color: #fff;
}

.qa-hero__badge small {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* Bottom corners */
.qa-hero__info {
  position: absolute;
  z-index: 4;
  left: 15px;
  bottom: 44px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 330px;
}

.qa-hero__info i {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--qa-blue);
  font-size: 22px;
  color: #fff;
}

.qa-hero__info h4 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.qa-hero__info a,
.qa-hero__info p {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.qa-hero__info a:hover {
  color: #fff;
}

.qa-hero__cta {
  position: absolute;
  z-index: 4;
  right: 15px;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.qa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 40px;
  font-size: 17px;
  font-weight: 600;
  color: #fff !important;
  background: var(--qa-blue);
  box-shadow: 0 10px 30px rgba(0, 126, 255, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.qa-btn:hover {
  background: #0066d6;
  transform: translateY(-2px);
}

.qa-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
  padding: 12px 28px;
  font-size: 15px;
}

.qa-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero – tablet */
@media (max-width: 1199px) {
  .qa-hero__badge { left: 2%; top: 290px; }
  .qa-hero__heart { right: 4%; width: 72px; }
  .qa-hero__photo { width: 420px; }
}

/* Hero – mobile: stack everything */
@media (max-width: 991px) {
  .qa-hero,
  .qa-hero__inner { min-height: 0; }
  .qa-hero__inner {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .qa-hero__plus { display: none; }
  .qa-hero__title { letter-spacing: -1px; }
  .qa-hero__line2 { padding-left: 0; }
  .qa-hero__heart { top: 60px; right: 4%; width: 52px; }
  .qa-hero__badge,
  .qa-hero__info,
  .qa-hero__cta {
    position: relative;
    inset: auto;
    margin-top: 22px;
  }
  .qa-hero__cta { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .qa-hero__info { max-width: none; }
  .qa-hero__photo {
    position: relative;
    left: auto;
    transform: none;
    width: 300px;
    max-width: 80%;
    margin: 26px auto 0;
    order: 10;
  }
}

@media (max-width: 575px) {
  .qa-hero__kicker { font-size: 11px; letter-spacing: 0.5px; padding: 6px 14px 6px 28px; max-width: 100%; }
  .qa-hero__kicker:before { left: 12px; }
  .qa-hero__heart { display: none; }
  .qa-hero__title { font-size: 46px; margin-top: 14px; }
  .qa-hero__info h4 { font-size: 19px; }
  .qa-hero__info a, .qa-hero__info p { font-size: 15px; }
  .qa-hero__badge { padding: 10px 18px 10px 12px; }
  .qa-hero__avatars img, .qa-hero__avatars span { width: 40px; height: 40px; }
  .qa-btn { padding: 13px 26px; font-size: 16px; }
}

/* ---------------------------------------------------------------------
   2. COMPACT, CONSISTENT LAYOUT (desktop/laptop)
   --------------------------------------------------------------------- */
@media (min-width: 992px) {
  /* Section rhythm: ~35% less vertical padding */
  .about-section                { padding: 80px 0; }
  .services-section             { padding: 150px 0 60px; }
  .portfolio-section            { padding: 80px 0 70px; }
  .service-section              { padding: 80px 0 64px; }
  .testimonial-section          { padding: 130px 0 80px; }
  .team-section                 { padding: 80px 0 60px; }
  .blog-section                 { padding: 80px 0; }
  .style-3.about-section        { padding: 80px 0; }
  .mediic-appoinment            { padding: 70px 0; }
  .mediic-section               { padding: 80px 0; }
  .faq-section .tab_container   { padding: 70px 0 70px; }
  .tab_container                { padding-top: 60px; }
  .footer-section               { padding-top: 110px; }

  /* Section headings */
  .mediic-section-title h1 {
    font-size: 44px;
    line-height: 1.15;
  }
  .mediic-section-title { padding-bottom: 36px; }

  /* Inner-page banner */
  .breatcome-section { height: 300px; }
  .breatcome-content h1 { font-size: 46px; }
}

/* Typography – applies everywhere */
.mediic-desc p,
.mediic-description p,
.m_v-ssion-desc p,
.testi-desc p,
.service-content p,
.profile_quote p {
  line-height: 1.7;
}

.mediic-desc p { padding: 16px 0 14px; }

.mediic-description p + p { margin-top: 14px; }

.mediic-title h2 {
  font-size: 34px;
  line-height: 1.2;
}

.accordion-content h2 { font-size: 26px; }

.accordion-content p { color: var(--qa-text); }

/* Service detail sidebar: cleaner list */
.mediic-category-box .mediic-service li a {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
}

/* Cards: unified radius */
.service-single-box,
.team-single-box,
.blog-single-box,
.mediic-single-box,
.mediic-category-box,
.mission-vission-single-box,
.testimonial-single-slide,
.testi-single-box {
  border-radius: var(--qa-radius);
}

@media (max-width: 991px) {
  .mediic-section-title h1 { font-size: 32px; line-height: 1.2; }
  .breatcome-section { height: 220px; }
  .breatcome-content h1 { font-size: 32px; }
  .mediic-title h2 { font-size: 26px; }
}

/* ---------------------------------------------------------------------
   3. MOBILE HEADER: replace template "mediic" wordmark with QuickAid logo
   --------------------------------------------------------------------- */
.mean-container .mean-bar::before {
  content: "" !important;
  position: absolute;
  left: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 38px;
  border-radius: 8px;
  background: #fff url(../../logo.webp) no-repeat center / 132px auto;
}

/* Mobile/tablet: compact section rhythm */
@media (max-width: 991px) {
  .about-section,
  .style-3.about-section,
  .portfolio-section,
  .service-section,
  .team-section,
  .blog-section,
  .mediic-section,
  .mediic-appoinment { padding-top: 56px; padding-bottom: 56px; }
  .faq-section .tab_container,
  .tab_container { padding-top: 40px; padding-bottom: 20px; }
  .mediic-section-title { padding-bottom: 26px; }
}

/* Long FAQ questions must not run under the +/- icon */
.accordion li a,
.accordion2 li a {
  padding-right: 56px !important;
}
