.atlas-view-page {
  max-width: 1500px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: inherit;
  animation: fadeInUp 0.6s ease-out both;
}
.atlas-view-page ::selection {
  background: rgba(37, 99, 235, 0.15);
}
.atlas-view-page .atlas-header {
  margin-bottom: 32px;
}
.atlas-view-page .atlas-header .back-to-atlas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #2c7be5;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.atlas-view-page .atlas-header .back-to-atlas:hover {
  text-decoration: underline;
  transform: translateX(-3px);
}
.atlas-view-page .atlas-header .title-atlas {
  font-size: 25px;
}
.atlas-view-page .atlas-header .custom-class-title h1 {
  font-size: 34px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  margin: 0;
}
.atlas-view-page .atlas-header .custom-class-title {
  font-size: 34px !important;
  font-weight: 700 !important;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.2;
}
.atlas-view-page .atlas-header .custom-class-title i {
  color: #e63946;
  font-size: 28px;
}
.atlas-view-page .atlas-content {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.atlas-view-page .atlas-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.05);
}
.atlas-view-page .atlas-content .atlas-description {
  font-size: 17px;
  line-height: 1.85;
  color: #374151;
}
@media (max-width: 768px) {
  .atlas-view-page .atlas-content .atlas-description {
    font-size: 15px;
  }
}
.atlas-view-page .atlas-content .atlas-description p {
  margin-bottom: 20px;
}
.atlas-view-page .atlas-content .atlas-description h2,
.atlas-view-page .atlas-content .atlas-description h3 {
  margin-top: 30px;
  margin-bottom: 14px;
  color: #111827;
  position: relative;
  padding-left: 16px;
  line-height: 1.3;
}
.atlas-view-page .atlas-content .atlas-description h2::before,
.atlas-view-page .atlas-content .atlas-description h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: #2563eb;
  border-radius: 2px;
}
.atlas-view-page .atlas-content .atlas-description ul {
  padding-left: 26px;
  margin-bottom: 24px;
}
.atlas-view-page .atlas-content .atlas-description li {
  margin-bottom: 10px;
}
.atlas-view-page .atlas-content .atlas-description a {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.atlas-view-page .atlas-content .atlas-description a:hover {
  color: #1d4ed8;
}
@media (max-width: 768px) and (max-width: 768px) {
  .atlas-view-page .atlas-header .custom-class-title {
    font-size: 26px;
  }
  .atlas-view-page .atlas-content {
    padding: 24px;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= FAQ ================= */
.atlas-faq h3 {
  cursor: pointer;
  background: #f8fafc;
  border-radius: 14px;
  padding: 18px 52px 18px 20px;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-top: 10px !important;
  position: relative;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.atlas-faq h3::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #2563eb;
  transition: transform 0.3s ease;
}
.atlas-faq h3.active {
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25);
}
.atlas-faq h3.active::after {
  transform: translateY(-50%) rotate(45deg);
}
.atlas-faq .faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 20px;
}
.atlas-faq .faq-answer p,
.atlas-faq .faq-answer ul {
  margin-bottom: 16px;
}
.atlas-faq .faq-answer.open {
  padding: 16px 20px 24px;
  max-height: 1000px;
}

/* ================= ARTICLE ================= */
#atlas-article i.fa,
#atlas-article i.fas,
#atlas-article i.far,
#atlas-article i.fab {
  color: #2563eb;
  margin-right: 6px;
}
#atlas-article h1 {
  font-size: 25px;
  line-height: 1.3;
}
@media (max-width: 768px) {
  #atlas-article h1 {
    font-size: 20px;
  }
}
#atlas-article h2 {
  font-size: 22px;
  line-height: 1.35;
}
@media (max-width: 768px) {
  #atlas-article h2 {
    font-size: 18px;
  }
}
#atlas-article h3 {
  font-size: 16px;
  line-height: 1.4;
}

/* ================= SIDEBAR ================= */
.atlas-sidebar {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
}
.atlas-sidebar .atlas-sidebar-title {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}
.atlas-sidebar .atlas-units-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.atlas-sidebar .atlas-units-list .atlas-unit-item {
  margin-bottom: 10px;
}
.atlas-sidebar .atlas-units-list .atlas-unit-item a {
  font-weight: 500;
  text-decoration: none;
  color: #0d6efd;
}
.atlas-sidebar .atlas-units-list .atlas-unit-item a:hover {
  text-decoration: underline;
}
.atlas-sidebar .atlas-units-list .atlas-unit-item .unit-plan {
  display: inline-block;
  font-size: 12px;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f1f1;
}

/* ================= SOCIAL ================= */
.social-media div {
  margin-bottom: 20px;
  flex-shrink: 0;
  color: #212529;
  font-size: 20px;
  font-weight: 700;
}

.social-media-links {
  margin-bottom: 30px;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 15px;
}
@media (max-width: 992px) {
  .social-media-links {
    width: auto;
    justify-content: center;
  }
}
.social-media-links .social-media-link {
  width: 330px;
  height: 25px;
  color: #212529;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.social-media-links .social-media-link:hover {
  opacity: 0.8;
}
.social-media-links .social-media-link span {
  font-size: 17px;
  font-weight: 500;
}
.social-media-links .social-media-link .social-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  object-fit: contain;
}

/* ================= OWNED UNIT ================= */
div.owned-unit {
  margin-bottom: 40px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
}
@media (max-width: 992px) {
  div.owned-unit {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
div.owned-unit strong {
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}
div.owned-unit a {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--red);
  transition: all 0.2s ease-in-out;
}
div.owned-unit a:hover {
  color: var(--figmaBlue);
}

/* ================= PREMIUM ================= */
.atlas-view-page .premium-medical-facilities {
  padding: 20px !important;
  background: #f4f8ff;
  border: 1px solid #e1e9ff;
  border-radius: 12px;
}
.atlas-view-page .premium-medical-facilities .title {
  font-size: 22px !important;
  color: #1a1a2e;
  margin-top: 0;
  margin-bottom: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.atlas-view-page .premium-medical-facilities .title i {
  color: #0d6efd;
  font-size: 20px;
}
.atlas-view-page .premium-medical-facilities .medical-facility-wrapper {
  padding: 0 !important;
}

.atlas-view-page .premium-medical-facilities .atlas-clinic-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  padding: 12px;
  text-decoration: none !important;
  color: inherit;
  transition: all 0.25s ease;
  height: 100%;
}
.atlas-view-page .premium-medical-facilities .atlas-clinic-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.12);
  transform: translateY(-2px);
  text-decoration: none !important;
  color: inherit;
}
.atlas-view-page .premium-medical-facilities .atlas-clinic-card:hover .atlas-clinic-card__cta {
  color: #0d6efd;
}
.atlas-view-page .premium-medical-facilities .atlas-clinic-card:hover .atlas-clinic-card__cta i {
  transform: translateX(3px);
}
.atlas-view-page .premium-medical-facilities .atlas-clinic-card .atlas-clinic-card__img {
  flex: 0 0 72px !important;
  width: 72px !important;
  max-width: 72px !important;
  height: 72px !important;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f4fa;
}
.atlas-view-page .premium-medical-facilities .atlas-clinic-card .atlas-clinic-card__img img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  object-fit: contain !important;
  display: block;
  border-radius: 8px;
  padding: 4px !important;
  border: none !important;
  aspect-ratio: auto !important;
}
.atlas-view-page .premium-medical-facilities .atlas-clinic-card .atlas-clinic-card__body {
  flex: 1;
  min-width: 0;
}
.atlas-view-page .premium-medical-facilities .atlas-clinic-card .atlas-clinic-card__body h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 6px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.atlas-view-page .premium-medical-facilities .atlas-clinic-card .atlas-clinic-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: #6c7a93;
  transition: color 0.2s ease;
}
.atlas-view-page .premium-medical-facilities .atlas-clinic-card .atlas-clinic-card__cta i {
  font-size: 11px;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

/* ================= VERIFIED ================= */
.custom-class-title {
  font-size: 18px;
  font-weight: 600;
}

.title-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verified-icon {
  color: #28a745;
  font-size: 15px;
}

.verified-by {
  display: block;
  font-size: 11px;
  color: #6c757d;
  margin-top: 2px;
}

.verified-link {
  color: #28a745;
  font-weight: 500;
  text-decoration: none;
}
.verified-link:hover {
  text-decoration: underline;
}

.class-custom-font-size {
  margin-top: 5px;
  font-size: 18px !important;
  color: #28a745 !important;
}

.verified-wrapper {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.post-verified {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  max-width: 630px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-verified:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.post-verified::before {
  content: "Verificat de";
  display: block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
}
.post-verified .verified-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.post-verified a {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  line-height: 1.2;
}
.post-verified a:hover {
  text-decoration: underline;
}
.post-verified .verified-icon {
  margin-left: auto;
  font-size: 16px;
  color: #22c55e;
}

@media (max-width: 768px) {
  .post-verified {
    max-width: 100%;
    padding: 14px;
  }
  .post-verified .verified-avatar {
    width: 46px;
    height: 46px;
  }
}
/* ================= DISCLAIMER ================= */
.medical-disclaimer {
  margin-top: 40px;
  padding: 18px 22px;
  border-left: 5px solid #f59e0b;
  background: linear-gradient(180deg, #fff7ed, #fffbf5);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: #92400e;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.medical-disclaimer i {
  font-size: 18px;
  color: #f59e0b;
  margin-top: 2px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .medical-disclaimer {
    font-size: 13px;
    padding: 16px;
  }
}

.atlas-meta {
  margin-bottom: 30px;
  border-top: 1px dashed #e5e7eb;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.atlas-meta strong {
  font-size: 15px;
  color: #111827;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.atlas-meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.atlas-meta li a {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}
.atlas-meta li a:hover {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.atlas-view-page .featured-wrapper {
  position: relative;
  display: flex;
  justify-content: left;
}
@media (max-width: 992px) {
  .atlas-view-page .featured-wrapper {
    margin-top: 30px;
  }
}
.atlas-view-page .featured-image-box {
  width: 50%;
  margin-bottom: 20px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}
.atlas-view-page .featured-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
@media (max-width: 570px) {
  .atlas-view-page .featured-image-box {
    height: 220px;
    border-radius: 16px;
  }
}

.atlas-view-page .featured-wrapper {
  float: left;
  margin: 20px 30px 20px 20px;
  max-width: 320px;
}
@media (max-width: 992px) {
  .atlas-view-page .featured-wrapper {
    float: none;
    margin: auto;
    max-width: max-content;
  }
}
.atlas-view-page .featured-image-box {
  width: 100%;
}
