/* Shared styles for Ameera Academic service & career detail pages */

.legacy-content {
  --svc-ink: #3f3648;
  --svc-muted: #5a5263;
}

.legacy-content .single-service,
.legacy-content > .service-hero {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.academics-breadcrumb {
  max-width: 980px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
  font-size: var(--text-xs, 0.8rem);
  color: var(--svc-muted);
  line-height: 1.5;
}

.academics-breadcrumb a {
  color: #9b4f78;
  text-decoration: none;
  font-weight: 600;
}

.academics-breadcrumb a:hover {
  text-decoration: underline;
}

.single-service {
  max-width: 980px;
  margin: 1.5rem auto;
  padding: 1.25rem;
}

.legacy-content > .service-hero,
.single-service .service-hero {
  width: min(100% - 2.5rem, 980px);
  margin: 1.25rem auto 0;
}

.legacy-content > .service-hero .service-card,
.single-service .service-hero .service-card,
.service-hero .service-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 251, 0.96));
  border: 1px solid rgba(95, 71, 112, 0.08);
  box-shadow: 0 16px 40px rgba(95, 71, 112, 0.07);
  text-align: left;
}

.service-hero .service-card h1 {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--svc-ink);
}

.service-hero .service-card .lead,
.single-service .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--svc-muted);
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

.service-hero .service-card > p:not(.lead) {
  margin: 0;
  color: var(--svc-muted);
  line-height: 1.7;
  max-width: 42rem;
}

.service-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.service-actions .btn-primary,
.service-actions a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: #684e61;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(104, 78, 97, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}

.service-actions .btn-primary:hover,
.service-actions a.btn-primary:hover {
  background: #4f394a;
  transform: translateY(-2px);
}

.service-actions .btn-secondary,
.service-actions a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #4e3e4d;
  border: 1px solid rgba(104, 78, 97, 0.18);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.service-actions .btn-secondary:hover,
.service-actions a.btn-secondary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.legacy-content > .service-details,
.service-details {
  width: min(100% - 2.5rem, 980px);
  margin: 1.25rem auto 2.5rem;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(95, 71, 112, 0.07);
  box-shadow: 0 12px 30px rgba(95, 74, 110, 0.05);
}

.service-image {
  overflow: hidden;
  border-radius: 16px;
  background: #f4eef5;
}

.service-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

.service-info {
  min-width: 0;
}

.service-info h2,
.service-info h3,
.section-head h2 {
  color: var(--svc-ink);
  margin-top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.015em;
}

.service-info h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

.service-info h3 {
  margin-top: 1.35rem;
  font-size: 1.2rem;
}

.service-info p {
  color: var(--svc-muted);
  line-height: 1.7;
}

.service-info ul,
.section-head ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  line-height: 1.75;
  color: var(--svc-muted);
}

.service-info li + li {
  margin-top: 0.35rem;
}

@media (max-width: 720px) {
  .legacy-content > .service-hero,
  .single-service .service-hero,
  .legacy-content > .service-details,
  .service-details {
    width: min(100% - 1.5rem, 980px);
  }

  .service-hero .service-card,
  .single-service .service-hero .service-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .service-details {
    grid-template-columns: 1fr;
  }

  .service-image img {
    max-height: 240px;
  }

  .service-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .service-actions .btn-primary,
  .service-actions .btn-secondary,
  .service-actions a.btn-primary,
  .service-actions a.btn-secondary {
    width: 100%;
  }
}
