/* ============================================================
   AxessPharma Plugin — frontend shared styles
   (Jobs, Pharmacies, Audience toggle, etc.)
   ============================================================ */

/* --- Chips & badges --- */
.ax-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(53, 53, 53, .08);
  color: #353535;
  font-size: 12px;
  font-weight: 600;
  font-family: "Lato", sans-serif;
  letter-spacing: -0.01em;
}
.ax-chip--primary {
  background: rgba(0,110,150, .12);
  color: #005471;
}

/* --- Buttons --- */
.ax-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "Lato", sans-serif;
  letter-spacing: -0.005em;
  transition: all .25s cubic-bezier(.2, .8, .2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.ax-btn-primary {
  background: #006E96;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,110,150, .3);
}
.ax-btn-primary:hover {
  background: #005471;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,84,113, .35);
}
.ax-btn-ghost {
  background: #fff;
  color: #353535;
  border: 1px solid #E0E0E0;
}
.ax-btn-ghost:hover {
  border-color: #006E96;
  color: #006E96;
}

/* --- Alerts --- */
.ax-alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin: 18px 0;
  font-size: 0.95rem;
}
.ax-alert--success {
  background: rgba(0,110,150, .1);
  color: #005471;
  border: 1px solid rgba(0,110,150, .25);
}
.ax-alert--error {
  background: rgba(192, 0, 0, .08);
  color: #a00;
  border: 1px solid rgba(192, 0, 0, .25);
}

/* ============================================================
   JOBS
   ============================================================ */
.ax-jobs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  padding: 18px;
  background: #FAFAFA;
  border-radius: 14px;
}
.ax-jobs-filters input[type="search"],
.ax-jobs-filters select {
  padding: 10px 14px;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 0.92rem;
  background: #fff;
  color: #353535;
  flex: 1 1 180px;
}
.ax-jobs-filters input[type="search"] { flex: 2 1 280px; }

.ax-jobs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.ax-job-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #EDEDED;
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
  gap: 10px;
}
.ax-job-card:hover {
  border-color: #006E96;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,84,113, .12);
}
.ax-job-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.ax-job-card__head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  color: #353535;
  letter-spacing: -0.01em;
}
.ax-job-card__city {
  font-size: 0.82rem;
  color: #8B8B8B;
  white-space: nowrap;
}
.ax-job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ax-job-card__excerpt {
  color: #5A5A5A;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 6px 0 0;
}
.ax-job-card__cta {
  margin-top: auto;
  padding-top: 8px;
  color: #006E96;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: "Lato", sans-serif;
}

/* Single job detail */
.ax-job-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  margin: 30px 0;
  align-items: start;
}
.ax-job-detail__facts {
  background: #FAFAFA;
  padding: 26px;
  border-radius: 18px;
  position: sticky;
  top: 100px;
}
.ax-job-detail__facts h4 {
  margin: 0 0 18px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #006E96;
}
.ax-job-detail__facts dl {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ax-job-detail__facts dt {
  font-size: 0.78rem;
  color: #8B8B8B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.ax-job-detail__facts dd {
  font-size: 0.95rem;
  color: #353535;
  margin: 0;
  font-weight: 500;
}
.ax-job-detail__facts .ax-btn { width: 100%; justify-content: center; }

.ax-benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 16px 0 28px;
}
.ax-benefits-list li {
  padding: 10px 16px;
  background: rgba(0,110,150, .06);
  border-left: 3px solid #006E96;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: #353535;
}

@media (max-width: 900px) {
  .ax-job-detail { grid-template-columns: 1fr; }
  .ax-job-detail__facts { position: static; }
  .ax-benefits-list { grid-template-columns: 1fr; }
}

/* --- Application form --- */
.ax-apply-form {
  margin-top: 22px;
  padding: 28px;
  background: #FAFAFA;
  border-radius: 18px;
}
.ax-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-bottom: 18px;
}
.ax-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ax-form-grid label.full { grid-column: 1 / -1; }
.ax-form-grid label.ax-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #5A5A5A;
  line-height: 1.5;
}
.ax-form-grid label.ax-consent input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
}
.ax-form-grid span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #353535;
  letter-spacing: -0.005em;
}
.ax-form-grid input,
.ax-form-grid select,
.ax-form-grid textarea {
  padding: 12px 14px;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  background: #fff;
  width: 100%;
}
.ax-form-grid input:focus,
.ax-form-grid select:focus,
.ax-form-grid textarea:focus {
  border-color: #006E96;
  outline: 2px solid rgba(0,110,150, .15);
}
@media (max-width: 700px) {
  .ax-form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PHARMACIES
   ============================================================ */
.ax-pharmacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 30px 0;
}
.ax-pharmacy-card {
  background: #fff;
  padding: 22px;
  border: 1px solid #EDEDED;
  border-radius: 14px;
  transition: all .25s ease;
}
.ax-pharmacy-card:hover {
  border-color: #006E96;
  box-shadow: 0 8px 20px rgba(0,84,113, .1);
}
.ax-pharmacy-card h3 {
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #353535;
}
.ax-pharmacy-card p {
  margin: 0 0 8px;
  color: #5A5A5A;
  font-size: 0.9rem;
}

/* ============================================================
   NEWS (RSS Mediacom — matches Premium model 2 .art-* style)
   ============================================================ */
.ax-news { margin: 40px 0; }
.ax-news__head { max-width: 720px; margin-bottom: 40px; }
.ax-news__head .ax-eyebrow { margin-bottom: 12px; }
.ax-news__title {
  font-family: "Lato", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.ax-news__subtitle { color: #5A5A5A; line-height: 1.6; }
.ax-news__grid {
  display: grid;
  gap: 24px;
}
.ax-news__grid--1 { grid-template-columns: 1fr; }
.ax-news__grid--2 { grid-template-columns: repeat(2, 1fr); }
.ax-news__grid--3 { grid-template-columns: repeat(3, 1fr); }
.ax-news__grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .ax-news__grid--3, .ax-news__grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ax-news__grid--2, .ax-news__grid--3, .ax-news__grid--4 { grid-template-columns: 1fr; }
}

.ax-news__card {
  cursor: pointer;
  background: transparent;
  border-radius: 12px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.ax-news__card[data-ax-reveal] { opacity: 0; transform: translateY(20px); }
.ax-news__card.is-revealed { opacity: 1; transform: translateY(0); }
.ax-news__card:hover { transform: translateY(-4px); }

.ax-news__link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.ax-news__img {
  aspect-ratio: 5 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #F0F0F1;
  position: relative;
}
.ax-news__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.ax-news__card:hover .ax-news__img img {
  transform: scale(1.05);
}
.ax-news__img--placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, .15);
}

.ax-news__body { padding: 0 4px; }
.ax-news__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: #8B8B8B;
  margin-bottom: 8px;
  font-family: "Lato", sans-serif;
}
.ax-news__meta--lg { font-size: 0.9rem; margin-bottom: 12px; }
.ax-news__cat {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(0,110,150, .12);
  color: #005471;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ax-news__h3 {
  font-family: "Lato", sans-serif;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: #353535;
  transition: color .2s ease;
}
.ax-news__card:hover .ax-news__h3 { color: #005471; }
.ax-news__excerpt {
  font-size: 0.88rem;
  color: #5A5A5A;
  line-height: 1.55;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ax-news__by {
  font-size: 0.78rem;
  color: #8B8B8B;
  font-style: italic;
  margin-top: auto;
  display: block;
}

/* Featured (single highlight) */
.ax-news-featured {
  margin: 60px 0;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #EDEDED;
}
.ax-news-featured__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
}
.ax-news-featured__text h2 {
  font-family: "Lato", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  margin: 12px 0 14px;
  line-height: 1.2;
}
.ax-news-featured__text p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5A5A5A;
  margin: 0 0 16px;
}
.ax-news-featured__by {
  font-size: 0.85rem;
  color: #8B8B8B;
  font-style: italic;
  margin: 0 0 24px;
}
.ax-news-featured__img {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  display: block;
}
.ax-news-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.ax-news-featured__img:hover img { transform: scale(1.04); }
@media (max-width: 800px) {
  .ax-news-featured__inner { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
}

.ax-news-empty {
  text-align: center;
  padding: 40px;
  color: #8B8B8B;
  background: #FAFAFA;
  border-radius: 12px;
}

/* Audience toggle (used in nav via shortcode) */
.ax-audience-toggle {
  display: inline-flex;
  background: #F6F6F6;
  padding: 4px;
  border-radius: 999px;
  border: 1.5px solid #E8E8E8;
  gap: 2px;
}
.ax-audience-toggle button {
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: "Lato", sans-serif;
  color: #5A5A5A;
  border: none;
  background: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.ax-audience-toggle button.is-active {
  background: #006E96;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,110,150, .4);
}
.ax-audience-toggle button:not(.is-active):hover { color: #353535; }
@media (max-width: 560px) {
  .ax-audience-toggle button { padding: 7px 14px; font-size: 0.78rem; }
}
