/* ==========================================================
   Pharma theme – MAIPS 2026 (Virtual International Conference) home page
   Loaded after style.css / responsive.css; all rules are
   scoped with the "ph-" prefix so the template stays intact.
   ========================================================== */

:root {
  --ph-brand-900: #3a0b1f;
  --ph-brand-800: #561130;
  --ph-brand-700: #7d1a43;
  --ph-brand-500: #ad2f5b;
  --ph-gold: #f2c46d;
  --ph-gold-soft: #fbefd6;
  --ph-tint: #fbf5f2;
  --ph-navy: #2a1a3a;
  --ph-accent: #e5a21f;
  --ph-accent-dark: #c4850a;
  --ph-ink: #2b1520;
  --ph-muted: #7a5e68;
  --ph-line: #eedfe1;
  --ph-radius: 16px;
  --ph-shadow: 0 18px 40px -18px rgba(58, 11, 31, 0.35);
  --ph-font: 'Plus Jakarta Sans', 'Roboto', sans-serif;
  --ph-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.2'/%3E%3C/svg%3E");
}

.ph-page,
.ph-page p,
.ph-page h1,
.ph-page h2,
.ph-page h3,
.ph-page h4 {
  font-family: var(--ph-font);
}

/* ---------- Header ---------- */
.ph-header.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}
.ph-header.header.sticky {
  position: fixed;
  padding: 10px 0;
  background: rgba(58, 11, 31, 0.96);
  border-bottom-color: transparent;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.45);
}
.ph-header .ph-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ph-header .ph-logo {
  min-width: 0;
}
.ph-header .ph-logo img {
  max-height: 58px;
  width: auto;
  max-width: 100%;
}
.ph-header.sticky .ph-logo img {
  max-height: 46px;
}

/* ---------- Buttons ---------- */
.ph-btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--ph-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1;
  text-transform: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ph-btn:hover,
.ph-btn:focus {
  text-decoration: none;
  transform: translateY(-2px);
}
.ph-btn-accent {
  color: #fff;
  background: var(--ph-accent);
  box-shadow: 0 12px 24px -10px rgba(229, 162, 31, 0.7);
}
.ph-btn-accent:hover,
.ph-btn-accent:focus {
  color: #fff;
  background: var(--ph-accent-dark);
}
.ph-btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.ph-btn-ghost:hover,
.ph-btn-ghost:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.ph-btn-sm {
  height: 42px;
  padding: 0 22px;
  font-size: 14px;
}

/* ---------- Hero (centred, full-width photo behind a wine veil) ---------- */
.ph-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--ph-brand-900);
  padding: 150px 0 140px;
}
.ph-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}
.ph-hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(86, 17, 48, 0.7) 0%, rgba(58, 11, 31, 0.9) 75%),
    linear-gradient(180deg, rgba(58, 11, 31, 0.35) 0%, rgba(58, 11, 31, 0.8) 100%);
}
.ph-hero:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--ph-hex);
  background-size: 56px 100px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 80%);
  mask-image: radial-gradient(ellipse at center, transparent 30%, #000 80%);
}
.ph-hero .container {
  position: relative;
  z-index: 2;
}

/* floating capsules – on the outer edges, clear of the centred text */
.ph-capsule {
  position: absolute;
  z-index: 2;
  width: 96px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  opacity: 0.95;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
  animation: ph-float 7s ease-in-out infinite;
  pointer-events: none;
}
.ph-capsule:before,
.ph-capsule:after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
}
.ph-capsule:before {
  left: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6e4e9 100%);
}
.ph-capsule:after {
  right: 0;
  background: linear-gradient(180deg, var(--ph-accent) 0%, #b07508 100%);
}
.ph-capsule-1 {
  top: 26%;
  left: 6%;
  transform: rotate(-32deg);
}
.ph-capsule-2 {
  bottom: 24%;
  right: 7%;
  width: 70px;
  height: 25px;
  transform: rotate(24deg);
  animation-delay: -3s;
  opacity: 0.85;
}
.ph-capsule-2:after {
  background: linear-gradient(180deg, var(--ph-gold) 0%, #d39a3a 100%);
}
@keyframes ph-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.ph-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.ph-acronym {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--ph-brand-900);
  background: linear-gradient(90deg, var(--ph-accent) 0%, #ffc561 100%);
  box-shadow: 0 10px 20px -10px rgba(229, 162, 31, 0.8);
}
.ph-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(242, 196, 109, 0.18);
  border: 1px solid rgba(242, 196, 109, 0.55);
}
.ph-badge i {
  color: var(--ph-gold);
}

.ph-hero-kicker {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.ph-hero-title {
  max-width: 900px;
  margin: 0 auto 28px;
  font-size: 52px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.ph-hero-title span {
  display: block;
  color: #ffd58a;
}

.ph-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.ph-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.ph-meta li i {
  color: var(--ph-accent);
}

/* countdown */
.ph-countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.ph-count {
  width: 92px;
  padding: 14px 6px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--ph-accent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ph-count strong {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.ph-count small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.ph-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- Conference days strip ---------- */
.ph-days {
  position: relative;
  z-index: 5;
  margin-top: -64px;
  padding: 0;
  background: linear-gradient(180deg, transparent 0 64px, #fff 64px);
}
.ph-day-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px;
  border-radius: var(--ph-radius);
  background: #fff;
  box-shadow: var(--ph-shadow);
  border: 1px solid var(--ph-line);
}
.ph-day-no {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, var(--ph-brand-500) 0%, var(--ph-brand-700) 100%);
}
.ph-day-no b {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
}
.ph-day-no i {
  font-size: 26px;
  color: #fff;
}
.ph-day-card-fee .ph-day-no {
  background: linear-gradient(145deg, #ffc561 0%, var(--ph-accent-dark) 100%);
}
.ph-day-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--ph-ink);
}
.ph-day-card small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ph-muted);
}
.ph-day-card small i {
  margin-right: 3px;
  color: var(--ph-brand-500);
}
.ph-day-card-fee small i {
  color: var(--ph-accent-dark);
}

/* ---------- Organisers ---------- */
.ph-hosts {
  padding: 48px 0 52px;
  background: #fff;
}
.ph-hosts-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
}
.ph-host {
  text-align: center;
}
.ph-host-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 24px;
  color: var(--ph-brand-700);
  background: var(--ph-tint);
  box-shadow: inset 0 0 0 1px var(--ph-line);
}
.ph-host-icon-alt {
  color: var(--ph-accent-dark);
  background: #fff4e2;
  box-shadow: inset 0 0 0 1px #fbe1b8;
}
.ph-host small {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ph-brand-500);
}
.ph-host strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--ph-ink);
}
.ph-host > span:not(.ph-host-icon) {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ph-muted);
}
.ph-host-sep {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
}
.ph-host-sep:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dashed var(--ph-line);
}
.ph-host-sep i {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  color: #fff;
  background: var(--ph-brand-700);
}

/* ---------- Registration ---------- */
.ph-register {
  position: relative;
  padding: 56px 0 48px;
  background: var(--ph-tint);
  color: var(--ph-ink);
}
.ph-section-head {
  margin-bottom: 28px;
}
.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ph-brand-500);
}
.ph-eyebrow:before {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--ph-accent);
}
.ph-section-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ph-brand-900);
}

/* registration pass (ticket-style summary) */
.ph-pass {
  position: sticky;
  top: 96px;
  border-radius: var(--ph-radius);
  background: #fff;
  box-shadow: var(--ph-shadow);
}
.ph-pass-top {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 26px;
  border-radius: var(--ph-radius) var(--ph-radius) 0 0;
  color: #fff;
  background: linear-gradient(150deg, var(--ph-brand-500) 0%, var(--ph-brand-700) 55%, var(--ph-brand-900) 100%);
}
.ph-pass-top:after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--ph-hex);
  background-size: 56px 100px;
  pointer-events: none;
}
.ph-pass-top > * {
  position: relative;
  z-index: 1;
}
.ph-pass-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.ph-pass-title {
  margin: 2px 0 14px;
  font-size: 20px;
  font-weight: 800;
  color: #ffc561;
}
.ph-fee {
  margin: 0 0 8px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}
.ph-fee-note {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ph-brand-900);
  background: var(--ph-gold-soft);
}
.ph-pass-cut {
  position: relative;
  height: 26px;
}
.ph-pass-cut:before,
.ph-pass-cut:after {
  content: '';
  position: absolute;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ph-tint);
}
.ph-pass-cut:before { left: -13px; }
.ph-pass-cut:after { right: -13px; }
.ph-pass-list {
  position: relative;
  margin: 0;
  padding: 10px 28px 28px;
  list-style: none;
}
.ph-pass-list:before {
  content: '';
  position: absolute;
  top: -13px;
  left: 22px;
  right: 22px;
  border-top: 2px dashed var(--ph-line);
}
.ph-pass-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ph-ink);
}
.ph-pass-list li:last-child {
  margin-bottom: 0;
}
.ph-pass-list li i {
  flex: 0 0 18px;
  margin-top: 4px;
  color: var(--ph-brand-500);
}

/* form */
.ph-form-card {
  height: 100%;
  padding: 32px 34px 28px;
  border-radius: var(--ph-radius);
  background: #fff;
  box-shadow: var(--ph-shadow);
  border: 1px solid var(--ph-line);
  border-top: 4px solid var(--ph-brand-500);
}
.ph-form-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ph-brand-900);
}
.ph-form-card .ph-form-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--ph-muted);
}
.ph-form-card label {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ph-ink);
}
.ph-form-card .form-group {
  margin-bottom: 20px;
}
.ph-form-card .form-control {
  height: 50px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--ph-ink);
  background: #fdf9f7;
  border: 1px solid var(--ph-line);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ph-form-card .form-control::placeholder {
  color: #b9a2aa;
}
.ph-form-card .form-control:focus {
  background: #fff;
  border-color: var(--ph-brand-500);
  box-shadow: 0 0 0 4px rgba(173, 47, 91, 0.15);
  outline: none;
}
.ph-form-card form {
  margin: 0;
}
.ph-form-card .text-center br {
  display: none;
}
.ph-form-card .text-center {
  margin-top: 4px;
}
.ph-form-card input[type="submit"].btn {
  width: 100%;
  max-width: 320px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  font-family: var(--ph-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, var(--ph-brand-700) 0%, var(--ph-brand-500) 100%);
  box-shadow: 0 14px 26px -12px rgba(125, 26, 67, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ph-form-card input[type="submit"].btn:hover,
.ph-form-card input[type="submit"].btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -12px rgba(125, 26, 67, 0.9);
}

/* ---------- Footer ---------- */
.ph-footer {
  padding: 22px 0;
  background: var(--ph-brand-900);
  border-top: 4px solid var(--ph-accent);
}
.ph-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.ph-footer p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.7);
}
.ph-footer .ph-footer-name strong {
  color: #ffc561;
}

.ph-page .BackTo {
  display: none;
  background: var(--ph-brand-500);
  box-shadow: 0 10px 20px -8px rgba(58, 11, 31, 0.6);
}

/* ---------- Status modals ---------- */
.ph-modal .modal-dialog {
  margin-top: 14vh;
}
.ph-modal .modal-content {
  border: 0;
  border-radius: var(--ph-radius);
  overflow: hidden;
  box-shadow: var(--ph-shadow);
}
.ph-modal .modal-body {
  padding: 36px 30px 30px;
  text-align: center;
}
.ph-modal p {
  color: var(--ph-ink);
  font-size: 16px;
  line-height: 1.6;
}
.ph-modal .ph-modal-link {
  display: inline-block;
  margin-top: 14px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ph-brand-700);
}
.ph-modal .ph-modal-link:hover {
  color: var(--ph-brand-500);
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .ph-hero-title { font-size: 44px; }
  .ph-capsule { display: none; }
}
@media (max-width: 991px) {
  .ph-hero { padding: 130px 0 120px; }
  .ph-hero-title { font-size: 38px; }
  .ph-pass { position: relative; top: auto; margin-bottom: 24px; }
}
@media (max-width: 767px) {
  .ph-header .ph-logo img { max-height: 42px; }
  .ph-hero { padding: 110px 0 110px; }
  .ph-hero-title { font-size: 30px; }
  .ph-hero-kicker { font-size: 16px; }
  .ph-days .col-md-4 { margin-bottom: 14px; }
  .ph-days .row { margin-bottom: -14px; }
  .ph-hosts { padding: 40px 0; }
  .ph-hosts-grid { grid-template-columns: 1fr; gap: 18px; }
  .ph-host-sep { width: auto; height: 36px; }
  .ph-host-sep:before { top: 50%; bottom: auto; left: 0; right: 0; border-left: 0; border-top: 1px dashed var(--ph-line); }
  .ph-section-title { font-size: 28px; }
  .ph-register { padding: 40px 0 28px; }
  .ph-form-card { padding: 28px 20px; }
  .ph-pass-top { padding: 24px 22px; }
  .ph-pass-list { padding: 10px 22px 24px; }
  .ph-footer-inner { justify-content: center; text-align: center; }
}
@media (max-width: 575px) {
  .ph-meta li { font-size: 14px; }
  .ph-countdown { gap: 8px; }
  .ph-count { width: 70px; padding: 10px 4px; }
  .ph-count strong { font-size: 24px; }
  .ph-count small { font-size: 10px; letter-spacing: 1px; }
  .ph-btn { height: 46px; padding: 0 22px; }
  .ph-btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
}
@media (max-width: 399px) {
  .ph-header .ph-btn-sm { padding: 0 14px; }
  .ph-header .ph-btn-sm i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-capsule { animation: none; }
  .ph-btn, .ph-form-card input[type="submit"].btn { transition: none; }
}

.ph-page sup {
  font-size: 60%;
  top: -0.6em;
}
.ph-meta li span,
.ph-pass-list li span {
  display: inline;
}
