/* President History — scoped from President_history/styles.css (no clash with Bootstrap .card) */
.ph-root {
  --ph-bg: #0b1020;
  --ph-surface: rgba(255, 255, 255, 0.06);
  --ph-text: rgba(255, 255, 255, 0.92);
  --ph-muted: rgba(255, 255, 255, 0.72);
  --ph-muted-2: rgba(255, 255, 255, 0.58);
  --ph-line: rgba(255, 255, 255, 0.14);
  --ph-accent: #7c5cff;
  --ph-accent-2: #2ee6a6;
  --ph-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --ph-radius: 16px;
  --ph-maxw: 1100px;
  color: var(--ph-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 10% 5%, rgba(124, 92, 255, 0.25), transparent 60%),
    radial-gradient(800px 500px at 85% 20%, rgba(46, 230, 166, 0.18), transparent 55%),
    radial-gradient(800px 700px at 30% 90%, rgba(124, 92, 255, 0.16), transparent 60%),
    var(--ph-bg);
  margin: 0 -0.75rem;
  padding: 0 0 3rem;
}

@media (min-width: 576px) {
  .ph-root {
    margin: 0 calc(-1 * var(--bs-gutter-x, 0.75rem));
  }
}

.ph-root a {
  color: inherit;
  text-decoration: none;
}

.ph-hero {
  padding: 2rem 1.125rem 1rem;
}

.ph-hero__inner {
  max-width: var(--ph-maxw);
  margin: 0 auto;
  padding: 2.5rem 1.375rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border-radius: 22px;
  box-shadow: var(--ph-shadow);
  position: relative;
  overflow: hidden;
}

.ph-hero__inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(400px 200px at 20% 10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(320px 220px at 85% 30%, rgba(46, 230, 166, 0.16), transparent 60%);
  pointer-events: none;
}

.ph-hero__kicker {
  margin: 0;
  color: var(--ph-muted-2);
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: relative;
}

.ph-hero__title {
  margin: 0.5rem 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  position: relative;
}

.ph-hero__subtitle {
  margin: 0;
  color: var(--ph-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
}

.ph-hero__cta {
  margin-top: 1.25rem;
  position: relative;
}

.ph-section {
  padding: 1.75rem 1.125rem 4rem;
}

.ph-section__inner {
  max-width: var(--ph-maxw);
  margin: 0 auto;
}

.ph-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 1.125rem;
}

.ph-section__title {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
}

.ph-section__desc {
  margin: 0;
  color: var(--ph-muted-2);
  max-width: 560px;
}

.ph-timeline {
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
  position: relative;
}

.ph-timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(124, 92, 255, 0.65), rgba(46, 230, 166, 0.55));
  opacity: 0.65;
}

.ph-timeline__item {
  position: relative;
  padding-left: 54px;
  margin: 0 0 18px;
}

.ph-timeline__dot {
  position: absolute;
  left: 10px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ph-accent), var(--ph-accent-2));
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.22);
  border: 2px solid rgba(10, 14, 28, 0.85);
}

.ph-card {
  border-radius: var(--ph-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.ph-card__header {
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.ph-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ph-muted-2);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.ph-card__name {
  margin: 8px 0 0;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.ph-card__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
}

.ph-card__photo {
  width: 100%;
  max-width: 320px;
  height: 220px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  background:
    radial-gradient(28px 28px at 30% 30%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.5), rgba(46, 230, 166, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ph-card__photo--big {
  height: 320px;
  background:
    radial-gradient(60px 60px at 30% 25%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(120px 90px at 70% 75%, rgba(46, 230, 166, 0.14), transparent 62%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.55), rgba(46, 230, 166, 0.38));
}

.ph-card__details p {
  margin: 0 0 8px;
  color: var(--ph-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.ph-card__details p strong {
  color: var(--ph-text);
}

.ph-card__details a {
  color: #9ec5fe;
  text-decoration: underline;
}

.ph-card__details a:hover {
  color: #fff;
}

.ph-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.ph-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ph-reveal.is-visible .ph-card {
  border-color: rgba(124, 92, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
}

@media (max-width: 640px) {
  .ph-card__photo,
  .ph-card__photo--big {
    width: 100%;
    max-width: 100%;
    height: 260px;
    border-radius: 16px;
  }
}

@media (min-width: 768px) {
  .ph-card__body {
    flex-direction: row;
    align-items: flex-start;
  }

  .ph-card__photo,
  .ph-card__photo--big {
    width: 260px;
    max-width: 260px;
    height: 260px;
  }
}
