@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2933;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: var(--page-bg);
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: var(--pattern-size, auto);
}

/* ========================================
   ðŸŽ¨ EASY COLOR CUSTOMIZATION
   Change these variables to update colors site-wide!
   ======================================== */
:root {
  /* HEADER COLOR */
  --header-color: #bc3c39;
  /* â† Dark gold */

  /* PAGE BACKGROUND - just the image URL or color */
  --page-bg: url('../img/background_pattern2.png');
  --pattern-size: 200px;
  /* â† Scale pattern (100px=small, 300px=large, auto=original) */

  /* Alternative backgrounds (uncomment one to use): */
  /* --page-bg: #e5e9f0;  /* Solid light gray */
  /* --page-bg: #1a1a2e;  /* Dark mode */
  /* --page-bg: url('../img/background4.png');  /* Different image */

  /* ACCENT COLORS */
  --accent-color: #0fa092;
  /* Teal accent */
  --gold-color: #fbb736;
  /* Gold accent */
}

/* Make wrappers transparent so page background shows through */


.pkp_structure_content,
.pkp_structure_page {
  background: transparent !important;
}

/* ========================================
   HEADER CUSTOMIZATION (DUAL LAYOUT)
   ======================================== */

/* Apply header color using CSS variable */
.pkp_structure_head,
.pkp_structure_head .pkp_head_wrapper,
.pkp_structure_head .pkp_site_nav_menu,
.pkp_structure_head .pkp_navigation_primary_wrapper,
.pkp_structure_head .pkp_navigation_primary_row,
.pkp_structure_head .pkp_navigation_primary,
.pkp_structure_head ul,
.pkp_structure_head nav,
.pkp_site_nav_menu,
.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_navigation_primary_wrapper,
.pkp_navigation_search_wrapper,
.pkp_navigation_user_wrapper,
.pkp_navigation_primary,
.pkp_navigation_user,
ul.pkp_navigation_primary,
ul.pkp_navigation_user,
ul#navigationPrimary,
ul.dropdown-menu {
  background: var(--header-color) !important;
  background-color: var(--header-color) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* --- MOBILE HEADER (Default) --- */

.pkp_head_wrapper {
  width: 100% !important;
  max-width: none !important;
  padding: 0.75rem 0 !important;
}

.pkp_site_name_wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0 1rem !important;
  position: relative;
}

/* Mockup Hamburger styling */
.pkp_site_nav_toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background: transparent !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 4px !important;
  padding: 0 !important;
  cursor: pointer;
}

.pkp_site_nav_toggle_icon {
  width: 20px;
  height: 2px;
  background: #ffffff;
  position: relative;
}

.pkp_site_nav_toggle_icon::before,
.pkp_site_nav_toggle_icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: #ffffff;
  left: 0;
}

.pkp_site_nav_toggle_icon::before { top: -6px; }
.pkp_site_nav_toggle_icon::after { top: 6px; }

/* Centered Branding Stack (Mobile) */
.pkp_site_name {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  flex-grow: 1;
}

.pkp_site_name .is_img img {
  max-height: 50px !important;
  width: auto;
  margin-bottom: 0.25rem;
}

.journal-title {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  color: #ffffff !important;
  text-transform: uppercase;
  line-height: 1.2 !important;
}

.aortic-brand-link {
  display: block;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  margin-bottom: -2px;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Mobile Utils (Search/User icons) */
.aortic_mobile_utils {
  display: flex !important;
  gap: 1rem;
  align-items: center;
}

.aortic_mobile_utils a {
  color: #ffffff !important;
  font-size: 1.25rem !important;
}

/* Mobile Menu Drawer */
.pkp_site_nav_menu {
  display: none !important; /* Hidden by default on mobile */
  background: var(--header-color) !important;
  width: 100% !important;
  padding: 1rem 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* MOBILE ONLY: Zero pkp_container padding + cascade width:100% edge-to-edge */
@media (max-width: 991px) {
  /* The <nav> carries .pkp_container which adds padding: 0 2em.
     Zero it so nav items span the full screen width on mobile. */
  .pkp_site_nav_menu.pkp_container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  /* Cascade width:100% down through every level of the nav structure */
  .aortic_nav_row,
  .pkp_navigation_primary_wrapper,
  .pkp_navigation_primary,
  .pkp_navigation_primary > li {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

.pkp_site_nav_menu.pkp_site_nav_menu--nav-open {
  display: block !important;
}

/* Mobile nav - vertical accordion */
.pkp_navigation_primary {
  flex-direction: column !important;
  padding: 0 !important;
  gap: 0 !important;
}

/* li is a block with relative for the absolute-positioned chevron */
.pkp_navigation_primary > li {
  display: block !important;
  position: relative !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pkp_navigation_primary > li > a {
  display: block !important;
  text-align: center !important;
  padding: 0.85rem 3rem !important; /* extra side padding for chevron room */
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Submenu ul is a normal block child — spans full width automatically */
.pkp_navigation_primary > li > ul {
  width: 100% !important;
}

/* ===========================
   Nav list reset (bullets + link color)
   OJS default LESS is not loaded so we supply these ourselves
   =========================== */
.pkp_navigation_primary,
.pkp_navigation_user,
.pkp_nav_list,
.pkp_nav_list ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

/* Mobile top-level nav links: white text */
.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a:visited,
.pkp_navigation_primary > li > a:link {
  color: #ffffff !important;
  text-decoration: none !important;
}
/* --- DESKTOP HEADER (Restored "Before" State) --- */

@media (min-width: 992px) {
  .pkp_head_wrapper {
    padding: 1.5rem 0 !important;
  }

  .pkp_site_nav_toggle,
  .aortic_mobile_utils {
    display: none !important;
  }

  .pkp_site_name_wrapper {
    justify-content: center !important;
    padding: 0 !important;
  }

  .pkp_site_name {
    flex-direction: row !important;
    gap: 1.5rem !important;
  }

  .pkp_site_name .is_img img {
    max-height: 100px !important;
  }

  .aortic-brand-link {
    font-size: 3.5rem !important;
    display: inline !important;
    margin-bottom: 0;
  }

  .journal-title {
    font-size: 3.5rem !important;
    white-space: normal;
  }

  /* Desktop Nav Bar Row */
  .pkp_site_nav_menu {
    display: block !important;
    position: static !important;
    padding: 0 !important;
    border-top: none !important;
  }
  /* NOTE: .pkp_container on the <nav> already provides padding: 0 2em + max-width: 1232px.
     Do NOT override it here — mobile zeroes it in its own @media block above. */

  .aortic_nav_row {
    max-width: 1200px;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;   /* no horizontal padding — pkp_container's 2em handles this */
  }

  .pkp_navigation_primary {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
    gap: clamp(0.3rem, 0.75vw, 0.9rem) !important;
    align-items: center !important;
  }

  .pkp_navigation_primary > li {
    display: block !important;     /* reset from mobile flex */
    flex-wrap: unset !important;
    border-bottom: none !important;
    position: relative !important;
  }

  .pkp_navigation_primary > li > a {
    display: flex !important;
    align-items: center !important;
    font-size: clamp(0.6rem, 0.8vw, 0.8rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }

  .pkp_navigation_primary li a {
    border-bottom: none !important;
    padding: 0.4rem 0 !important;
  }

  .aortic_nav_utilities {
    display: flex !important;
    align-items: center !important;
    gap: 1rem;
    margin-left: 1.2rem;  /* gap between last nav item (Contact) and search */
    flex-shrink: 0;       /* don't compress — let the nav items compress instead */
  }

  .aortic_nav_search .pkp_search input {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-right: none !important;               /* fuses with button */
    border-radius: 4px 0 0 4px !important;       /* rounded left only */
    padding: 0.4rem 1rem !important;
    color: #ffffff !important;
    width: 160px !important;
  }

  .aortic_nav_search .pkp_search__controls {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
  }

  .aortic_nav_search .pkp_search button {
    background: rgba(255,255,255,0.95) !important;
    color: var(--header-color) !important;
    border-radius: 0 4px 4px 0 !important;
    padding: 0 1rem !important;              /* no top/bottom — align-self:stretch fills height */
    align-self: stretch !important;          /* exactly matches input field height */
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }

  .aortic_nav_search .pkp_search input {
    border-radius: 4px 0 0 4px !important;  /* rounded left, flat right */
  }

  .pkp_navigation_user_wrapper {
    display: flex;
    align-items: center;
  }

  .aortic-user-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .aortic-user-icon-link:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: #ffffff;
    transform: scale(1.08);
  }

  .aortic-user-icon {
    font-size: 1.1rem;
    line-height: 1;
    filter: brightness(0) invert(1);
  }

  /* Logged-in user dropdown styles */
  .pkp_navigation_user_wrapper .pkp_navigation_user {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .pkp_navigation_user_wrapper .pkp_navigation_user a {
    color: #ffffff !important;
    font-size: 1.5rem !important;
  }
}

/* Mobile utilities: search bar + user icon on one horizontal row */
@media (max-width: 991px) {
  .aortic_nav_utilities {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.6rem 1rem !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
  }

  .aortic_nav_search {
    flex: 1 !important;
  }

  .aortic_nav_search .pkp_search__controls {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
  }

  .aortic_nav_search .pkp_search input {
    flex: 1 !important;
    min-width: 0 !important;
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 4px 0 0 4px !important;
    color: #fff !important;
    padding: 0.4rem 0.7rem !important;
    font-size: 0.85rem !important;
  }

  .aortic_nav_search .pkp_search input::placeholder {
    color: rgba(255,255,255,0.6) !important;
  }

  .aortic_nav_search .pkp_search button {
    background: rgba(255,255,255,0.9) !important;
    color: var(--header-color) !important;
    border: none !important;
    border-radius: 0 4px 4px 0 !important;
    padding: 0.4rem 0.7rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  .pkp_navigation_user_wrapper {
    flex-shrink: 0 !important;
  }

  .pkp_navigation_user_wrapper a {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    display: block !important;
  }
}

/* ========================================
   HERO SECTION (MOCKUP REFINEMENT)
   ======================================== */

.aortic-hero {
  /* Vibrant Teal Gradient from Mockup */
  background: linear-gradient(165deg, #12b0a1 0%, #0d9488 45%, #149db8 100%);
  color: #ffffff;
  margin: 0 -1.5rem 2rem;
  padding: 4rem 2rem 5rem;
  border-radius: 24px 24px 0 0;
  box-shadow: inset 0 -40px 60px rgba(0,0,0,0.05);
}

.aortic-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Centered section headings used by Browse by Collection, Why Publish, etc. */
.aortic-section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.aortic-section-header h2 {
  margin-bottom: 0.5rem;
}
.aortic-section-header p {
  color: #555;
  margin: 0;
}

.aortic-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 500;
}

.aortic-hero-title {
  font-size: clamp(1.75rem, 5vw, 3.25rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 3rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase;
}

.aortic-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .aortic-hero-cta {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
}

.aortic-btn {
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  min-width: 220px;
}

.aortic-btn-primary {
  background: #ffffff !important;
  color: #0d9488 !important;
  border: 2px solid #ffffff !important;
}

.aortic-btn-primary:hover {
  background: rgba(255,255,255,0.9) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.aortic-btn-outline {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

.aortic-btn-outline:hover {
  background: #ffffff !important;
  color: #0d9488 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Mission, features, programmes */

.aortic-mission,
.aortic-programmes {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  text-align: center;
}

.aortic-mission h2,
.aortic-programmes h2 {
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.aortic-features {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.aortic-feature,
.aortic-programme-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* CTA band */

.aortic-cta {
  background: #0f172a;
  color: #ffffff;
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  margin: 3rem 0;
}

/* Center the CTA buttons only */
.aortic-cta .aortic-hero-cta {
  justify-content: center;
}

/* ===========================
   Issues slider (HORIZONTAL & CINEMATIC)
   =========================== */

/* Higher specificity to beat any OJS defaults */
body .aortic-section.aortic-current-issue {
  position: relative !important;
  margin: 1.25rem -1.5rem !important;
  padding: 0.5rem 2rem !important;
  /* Narrower (less tall) */
  overflow: hidden !important;
  background-color: #0f172a !important;
  /* Fallback dark */
  z-index: 1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blurred background via pseudo-element */
body .aortic-section.aortic-current-issue::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url('../img/background3.png') !important;
  background-size: cover !important;
  background-position: center !important;
  filter: blur(0px) brightness(0.6) !important;
  z-index: -1 !important;
  opacity: 1 !important;
}

body .aortic-issue-header {
  position: relative !important;
  z-index: 10 !important;
  max-width: 1200px !important;
  margin: 0 auto 0.25rem !important;
  /* Reduced margin */
  padding: 0 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

body .aortic-issue-header h2 {
  letter-spacing: 0.12em !important;
  font-size: 1.05rem !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
  margin: 0 !important;
}

body .aortic-link {
  font-size: 0.85rem !important;
  color: #fbb736 !important;
  /* Gold */
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}

body .aortic-link:hover {
  color: #ffffff !important;
  animation: aorticBounce 0.5s ease infinite alternate;
}

@keyframes aorticBounce {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-4px);
  }
}

/* Swiper container */
body .aortic-issue-swiper {
  position: relative !important;
  z-index: 10 !important;
  max-width: 1300px !important;
  margin: 0 auto !important;
  padding: 0 4rem !important;
  overflow: visible !important;
}

/* ===========================
   Issue Card (Vertical, for Swiper carousel)
   Template classes: aortic-issue-card / -cover / -meta / -title / -date / -summary
   =========================== */

body .aortic-issue-card {
  display: flex !important;
  flex-direction: column !important;
  background: rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45) !important;
  height: 100% !important;
}

body .aortic-issue-cover {
  flex-shrink: 0;
  width: 100% !important;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1e293b;
}

body .aortic-issue-cover a {
  display: block;
  width: 100%;
  height: 100%;
}

body .aortic-issue-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

body .aortic-issue-cover img:hover {
  transform: scale(1.04) !important;
}

body .aortic-issue-meta {
  padding: 1rem 1.1rem !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
}

body .aortic-issue-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

body .aortic-issue-title a {
  color: #ffffff !important;
  text-decoration: none !important;
}

body .aortic-issue-title a:hover {
  color: #fbb736 !important;
}

body .aortic-issue-date {
  font-size: 0.8rem !important;
  color: #fbb736 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 !important;
}

body .aortic-issue-summary {
  font-size: 0.82rem !important;
  color: rgba(255,255,255,0.7) !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  flex: 1 !important;
}

body .cover-overlay {
  display: none !important;
}

body .btn-view {
  background: #fbb736 !important;
  color: #000 !important;
  padding: 0.9rem 2.2rem !important;
  border-radius: 4px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  text-decoration: none !important;
  box-shadow: 0 8px 16px rgba(251, 183, 54, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 0.9rem !important;
}

body .btn-view:hover {
  background: #ffffff !important;
  color: #fbb736 !important;
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 15px 30px rgba(251, 183, 54, 0.6) !important;
}

/* Swiper navigation tweaks */
body .aortic-issue-swiper .swiper-button-prev,
body .aortic-issue-swiper .swiper-button-next {
  width: 56px !important;
  height: 56px !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

body .aortic-issue-swiper .swiper-button-prev:hover,
body .aortic-issue-swiper .swiper-button-next:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-pdf {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  padding: 0.9rem 2rem !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  text-decoration: none !important;
}

/* Swiper nav buttons */
.aortic-issue-swiper .swiper-button-prev,
.aortic-issue-swiper .swiper-button-next {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.aortic-issue-swiper .swiper-button-prev:hover,
.aortic-issue-swiper .swiper-button-next:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.aortic-issue-swiper .swiper-button-prev::after,
.aortic-issue-swiper .swiper-button-next::after {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
}



/* ===========================
   Header nav layout + user profile icon
   =========================== */

/* Header bar: centered layout */
.pkp_head_wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Logo/title block - centered */
.pkp_site_name_wrapper {
  flex: 0 0 auto;
  margin: 0 auto;
  text-align: center;
}

/* Nav/search/profile cluster - all on one row, centered */
.pkp_site_nav_menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  background: transparent !important;
  width: 100%;
}

/* Inner nav container - keeps nav + search + user grouped and centered */
.aortic_nav_center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  width: 100%;
}

/* Primary nav + search in a single row */
.pkp_navigation_primary_row {
  display: flex;
  align-items: center;
}

/* Primary nav list in a row */
#navigationPrimary.pkp_navigation_primary {
  display: flex;
  flex-wrap: nowrap;
  /* keep Current | Archives | About on one line */
  align-items: center;
  gap: 1.25rem;
  /* slightly smaller gap to save space */
  margin: 0;
  padding: 0;
}


/* Space between nav items and Search - on same row */
.pkp_navigation_search_wrapper {
  margin-left: 1.5rem;
  display: inline-flex;
  align-items: center;
}

/* User wrapper next to Search - on same row */
.pkp_navigation_user_wrapper {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* Top-level user menu list - single icon trigger with dropdown */
.pkp_navigation_user_wrapper>ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  position: relative;
}

/* All list items hidden by default, stacked for dropdown */
.pkp_navigation_user_wrapper>ul>li {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0f172a;
  min-width: 10rem;
  z-index: 50;
}

/* First item is always visible as the icon trigger */
.pkp_navigation_user_wrapper>ul>li:first-child {
  display: block !important;
  position: relative !important;
  background: transparent !important;
  min-width: 36px !important;
  /* MATCH ICON WIDTH - KILL 10REM DEAD SPACE */
  width: 36px !important;
}

/* First item link becomes the circular profile icon trigger */
.pkp_navigation_user_wrapper>ul>li:first-child>a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  background-image: url('../img/user-icon.svg');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 120% 120% !important;
  /* Filled look */
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

/* Hover effect on icon */
.pkp_navigation_user_wrapper>ul>li:first-child>a:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* Hide task count bubble inside the icon */
.pkp_navigation_user_wrapper .task_count {
  display: none;
}

/* Bridge gap between icon and dropdown to prevent flicker */
.pkp_navigation_user_wrapper>ul::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 36px;
  height: 12px;
  background: transparent;
  display: none;
}

.pkp_navigation_user_wrapper>ul:hover::after {
  display: block;
}

/* On hover of the ul, show ALL items as dropdown */
.pkp_navigation_user_wrapper>ul:hover>li {
  display: block;
}

/* Create a unified dropdown panel using the first dropdown item */
.pkp_navigation_user_wrapper>ul:hover>li:first-child {
  position: relative;
  background: transparent;
}

/* Position all items EXCEPT first as dropdown panel items */
.pkp_navigation_user_wrapper>ul:hover>li:not(:first-child) {
  position: absolute;
  right: 0;
  background: #0f172a;
  min-width: 10rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  padding: 0.5rem 0;
}

/* First non-icon item (Register = 2nd item) */
.pkp_navigation_user_wrapper>ul:hover>li:nth-child(2) {
  top: calc(100% + 8px);
  border-radius: 0.5rem 0.5rem 0 0;
  padding-bottom: 0;
}

/* Second non-icon item (Login = 3rd item) */
.pkp_navigation_user_wrapper>ul:hover>li:nth-child(3) {
  top: calc(100% + 8px + 2.25rem);
  border-radius: 0 0 0.5rem 0.5rem;
  padding-top: 0;
}

/* Style dropdown text links */
.pkp_navigation_user_wrapper>ul:hover>li:not(:first-child)>a {
  display: block;
  padding: 0.6rem 1rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: #e2f3ff !important;
  text-decoration: none !important;
  /* Kill Underlines */
  background: none;
  background-image: none;
  border: none;
  width: auto;
  height: auto;
  text-indent: 0;
  border-radius: 0;
}

.pkp_navigation_user_wrapper>ul:hover>li:not(:first-child)>a:hover {
  background: #1e293b;
}

/* ===========================
   JS-Generated User Menu (Register/Login dropdown)
   =========================== */

/* Wrapper li created by JS */
.pkp_user_menu_wrapper {
  position: relative;
  display: block !important;
}

/* Icon trigger (the profile circle) */
.pkp_user_icon_trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  background-image: url('../img/user-icon.svg');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 85% 85% !important;
  /* Filled look */
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
}

.pkp_user_icon_trigger:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

/* Dropdown ul created by JS */
.pkp_user_dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 10rem;
  background: #0f172a;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  list-style: none;
  margin: 0;
  display: none;
  z-index: 50;
}

/* Show dropdown on hover */
.pkp_user_menu_wrapper:hover .pkp_user_dropdown,
.pkp_user_menu_wrapper:focus-within .pkp_user_dropdown {
  display: block;
}

/* Dropdown items */
.pkp_user_dropdown li {
  margin: 0;
  padding: 0;
}

.pkp_user_dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: #e2f3ff !important;
  text-decoration: none !important;
  /* Kill Underlines */
}

.pkp_user_dropdown a:hover {
  background: #1e293b;
}

/* Nested dropdown menus (for logged-in user with dashboard/profile/logout) */
.pkp_navigation_user_wrapper li ul {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 12rem;
  background: #0f172a;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  list-style: none;
  margin: 0;
  display: none;
  z-index: 50;
}

/* Show nested dropdown on hover / focus */
.pkp_navigation_user_wrapper li:hover>ul,
.pkp_navigation_user_wrapper li:focus-within>ul {
  display: block;
}

/* Items inside nested dropdown */
.pkp_navigation_user_wrapper li ul a {
  display: block;
  padding: 0.35rem 1rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: #e2f3ff !important;
  text-decoration: none !important;
  /* Kill Underlines */
}

.pkp_navigation_user_wrapper li ul a:hover {
  background: #1e293b;
}


/* ===========================
   Primary nav dropdowns
   =========================== */

/* All li need relative positioning for absolute child dropdowns */
.pkp_navigation_primary li {
  position: relative;
}

/* HIDE all submenus by default */
.pkp_navigation_primary li.has_children > ul {
  display: none !important;
  /* No position/top here - desktop lets Popper handle positioning via inline styles */
  min-width: 210px !important;
  background: #8b1f1e !important;
  padding: 0.4rem 0 !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45) !important;
  z-index: 2000 !important;
  list-style: none !important;
  margin: 0 !important;
}

/* Desktop: reveal on hover. ::after bridge closes any visual gap. */
@media (min-width: 992px) {
  .pkp_navigation_primary li.has_children {
    position: relative;
    /* NO padding-bottom - that caused vertical misalignment */
  }

  /* Invisible hitbox below the li: cursor crossing the gap keeps :hover alive */
  .pkp_navigation_primary li.has_children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
    pointer-events: auto;
  }

  .pkp_navigation_primary li.has_children > ul {
    position: absolute !important;
    top: calc(100% + 2px) !important;
    left: 0 !important;
    transform: none !important;
  }

  .pkp_navigation_primary li.has_children:hover > ul,
  .pkp_navigation_primary li.has_children:focus-within > ul,
  .pkp_navigation_primary li.has_children > ul.show {
    display: block !important;
  }
}

/* Submenu link styles */
.pkp_navigation_primary li.has_children > ul li a {
  display: block !important;
  padding: 0.6rem 1.1rem !important;
  color: rgba(255,255,255,0.92) !important;
  font-size: 0.88rem !important;
  border-bottom: none !important;
  border-left: none !important;
  white-space: nowrap;
  text-decoration: none !important;
}
.pkp_navigation_primary li.has_children > ul li a:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

/* Mobile: accordion - submenu spans full width, integrated look */
@media (max-width: 991px) {
  .pkp_navigation_primary li.has_children.nav-open > ul {
    display: block !important;
    position: static !important;
    background: rgba(0,0,0,0.12) !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    border-left: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    transform: none !important;
  }

  .pkp_navigation_primary li.has_children.nav-open > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    display: block !important;
    width: 100% !important;
  }

  .pkp_navigation_primary li.has_children.nav-open > ul li a {
    display: block !important;
    text-align: center !important;         /* centered like parent items */
    padding: 0.7rem 1rem !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.82) !important;
    white-space: normal !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Chevron toggle button - mobile only (hidden on desktop via JS) */
.aortic-submenu-toggle {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.55rem;
  line-height: 1;
  /* Absolutely positioned at right edge, vertically centered in the <li> row */
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 0.3rem;
  transition: transform 0.22s ease;
  z-index: 1;
}
.pkp_navigation_primary li.has_children > a {
  /* a is display:block and fills full width - no flex needed */
}
.has_children.nav-open > .aortic-submenu-toggle {
  /* Must include translateY(-50%) or the button jumps */
  transform: translateY(-50%) rotate(180deg);
}

/* ===========================
   Responsive tweaks
   =========================== */

@media (max-width: 900px) {
  .pkp_head_wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .aortic-hero-title {
    font-size: 1.7rem;
  }

  .aortic-features {
    grid-template-columns: 1fr;
  }

  .aortic-programmes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .aortic-programmes-grid {
    grid-template-columns: 1fr;
  }
}

/* Visually hide screen-reader-only text (keep it accessible) */
.pkp_screen_reader {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* Skip links: hide off-screen until focused */
.cmp_skip_to_content a {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

html {
  background: #e5e9f0;
  /* soft grey behind the pattern */
}


.pkp_structure_page {
  background: transparent;
}

.cmp_skip_to_content a:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #ffffff;
  color: #004c6d;
  z-index: 1000;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Map page
   =========================== */

/* Map page: hide breadcrumbs + default page title */
.pkp_page_map .cmp_breadcrumbs,
.pkp_page_map .page_title,
.pkp_structure_main h1:first-child,
.aortic-page .page h1:first-child {
  display: none;
}

/* Map page layout */
.aortic-page-map .aortic-map-section {
  max-width: 1100px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.5rem 3rem;
}

/* Map canvas + image */
.aortic-map-canvas {
  position: relative;
  max-width: 900px;
  margin: 1.5rem auto 0;
}

.aortic-map-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Bubbles positioned over countries */
.aortic-map-bubble {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #b35c00;
  /* dark orange text */
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);

  /* NEW: clickable */
  pointer-events: auto;
  cursor: pointer;
}

/* Results list under the map */
.aortic-map-results {
  max-width: 900px;
  margin: 2rem auto 3rem;
  padding: 1.75rem 1.75rem 2.25rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.aortic-map-results h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.aortic-map-results-country-label {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
}

.aortic-map-results-placeholder {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.aortic-map-results-empty {
  margin: 0;
  font-size: 0.95rem;
  color: #9ca3af;
  font-style: italic;
}

.aortic-map-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aortic-map-results-item {
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
}

.aortic-map-results-item:first-child {
  border-top: none;
}

.aortic-map-results-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.aortic-map-results-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0 0 0.25rem;
}

.aortic-map-results-link {
  font-size: 0.8rem;
  color: #b35c00;
  text-decoration: none;
}

.aortic-map-results-link:hover {
  text-decoration: underline;
}

/* ===========================
   Generic page card (login, register, profile, etc.)
   =========================== */

/* Standardize standard OJS page containers to be transparent/flat, 
   the .aortic-page div inside will provide the card look */
.pkp_page_login .pkp_structure_main,
.pkp_page_register .pkp_structure_main,
.pkp_page_user .pkp_structure_main {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ===========================
   Header Fixes - Single Color & Layout
   =========================== */

/* Force single header color - uses CSS variable */
.pkp_structure_head,
.pkp_structure_head .pkp_head_wrapper,
.pkp_structure_head .pkp_site_nav_menu,
.pkp_structure_head .pkp_navigation_primary_wrapper,
.pkp_structure_head .pkp_navigation_primary_row,
.pkp_structure_head .pkp_navigation_primary,
.pkp_structure_head ul,
.pkp_structure_head nav {
  background: var(--header-color) !important;
}

/* Base Card Styles for standard OJS pages - Applied to .aortic-page to match index style */
.aortic-page-register,
.aortic-page-login,
.pkp_page_user .aortic-page {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  /* Flush with red bar */
  padding: 1rem 2.5rem 0 !important;
  /* Bottom padding handled by buttons buffer */
  background: rgba(249, 250, 251, 0.98);
  border-radius: 24px 24px 0 0;
  /* Flat bottom to hit bar */
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  position: relative;
  z-index: 5;
}

/* Ensure the red bar follows the card immediately */
.aortic-page-register+.pkp_structure_footer_wrapper .aortic-body-end-accent,
.aortic-page-login+.pkp_structure_footer_wrapper .aortic-body-end-accent {
  margin-top: 0 !important;
}

/* Clean up standard OJS main container to allow our custom card logic */
.pkp_page_login .pkp_structure_main,
.pkp_page_register .pkp_structure_main,
.pkp_page_user .pkp_structure_main {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.pkp_site_nav_menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

/* Navigation wrapper inline */
.pkp_navigation_primary_wrapper {
  display: inline-flex !important;
  align-items: center !important;
}

/* Search wrapper inline next to nav */
.pkp_navigation_search_wrapper {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 1.5rem !important;
}

/* User profile wrapper inline next to search */
.pkp_navigation_user_wrapper {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 1rem !important;
}

/* ===========================
   Global Page Title Hero
   =========================== */

/* Ensure content cards snap to the top so hero touches edges */
.aortic-page,
.aortic-page-static,
.pkp_structure_main {
  padding-top: 0 !important;
}

/* Style the standard OJS page title as a hero block */
.page_title,
.pkp_structure_main h1:first-child,
.aortic-page .page h1:first-child {
  background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
  color: #ffffff !important;
  margin: 0 -1.5rem 2.5rem !important;
  padding: 3rem 2.5rem 2.5rem !important;
  border-radius: 24px 24px 0 0 !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: left;
  display: block;
}

/* Breadcrumbs styled as "eyebrows" labels inside the hero */
.cmp_breadcrumbs {
  margin: 0 -1.5rem 0 !important;
  padding: 1.5rem 2.5rem 0.5rem !important;
  background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
  border-radius: 24px 24px 0 0 !important;
}

.cmp_breadcrumbs ol,
.cmp_breadcrumbs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.cmp_breadcrumbs li,
.cmp_breadcrumbs a,
.cmp_breadcrumbs .separator {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  text-decoration: none !important;
}

.cmp_breadcrumbs .current,
.cmp_breadcrumbs li:last-child {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Snap title to breadcrumbs if both exist */
.cmp_breadcrumbs+.page_title,
.cmp_breadcrumbs+h1,
.cmp_breadcrumbs+.pkp_structure_main h1,
.cmp_breadcrumbs+.pkp_structure_main .page_title {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  padding-top: 0.5rem !important;
  margin-top: 0 !important;
}

/* Global Scroll Fix - ensure entire page is always scrollable */
html,
body {
  min-height: 100vh !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  display: block !important;
}

.pkp_structure_page,
.pkp_structure_content {
  height: auto !important;
  min-height: 1px !important;
}

.pkp_structure_footer_wrapper {
  display: block !important;
  clear: both !important;
  background-color: #004c6d !important;
  margin-top: 0 !important;
}

.aortic-body-end-accent {
  background: #d32f2f !important;
  height: 48px !important;
  margin: 1.5rem -1.5rem 0 !important;
  border-radius: 0 0 24px 24px;
  display: block !important;
  position: relative;
  z-index: 10;
}

/* ===========================
   Footer Redesign (Combined)
   =========================== */

/* Contact inner grid - controlled via class, not inline style */
.aortic-contact-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
}

@media (max-width: 850px) {
  .aortic-contact-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .aortic-contact-inner > div {
    text-align: center;
  }
  .aortic-footer-col {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 520px;
  }
}

/* ===========================
   Registration & Login Refinement
   =========================== */

/* Add excitement to the registration portal */
.aortic-page-register .pkp_structure_main::before {
  content: "Start your journey with AJCR. Join a global community dedicated to African-led cancer research and health equity.";
  display: block;
  background: #f8fafc;
  border-left: 6px solid #0fa092;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  font-size: 1.15rem;
  color: #1e293b;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Shared Red accent bar at the bottom of the main content area */
.aortic-body-end-accent {
  background: #d32f2f !important;
  height: 48px !important;
  margin: 0 !important;
  /* No gaps */
  width: 100% !important;
  display: block !important;
  position: relative;
  z-index: 10;
  border-radius: 0 !important;
}

/* Ensure the structural content has no bottom margin pushing the bar away */
.pkp_structure_content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Modernize OJS Forms (.cmp_form) */
.aortic-page-register fieldset,
.aortic-page-login fieldset,
.cmp_form fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 0 2.5rem 0 !important;
}

.aortic-page-register legend,
.aortic-page-login legend,
.cmp_form legend {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #0fa092 !important;
  display: block !important;
  width: 100% !important;
  margin-bottom: 1.5rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 1rem !important;
  float: none !important;
  text-transform: none !important;
}

/* Form Layout & Row Spacing */
.cmp_form .section,
.cmp_form .fields {
  margin-bottom: 1.75rem !important;
}

.cmp_form label {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  color: #475569 !important;
  font-size: 0.95rem !important;
  margin-bottom: 0.65rem !important;
  display: block !important;
}

/* Premium Inputs - be extremely aggressive with selectors */
.cmp_form input[type="text"],
.cmp_form input[type="password"],
.cmp_form input[type="email"],
.cmp_form select,
.cmp_form textarea {
  width: 100% !important;
  max-width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 1rem 1.25rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  color: #1e293b !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.cmp_form input:focus,
.cmp_form select:focus,
.cmp_form textarea:focus {
  border-color: #0fa092 !important;
  box-shadow: 0 0 0 4px rgba(15, 160, 146, 0.1) !important;
  outline: none !important;
  background: #ffffff !important;
}

/* Select arrows fix */
.cmp_form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1.2rem !important;
  padding-right: 3rem !important;
}

/* Checkboxes & Radios - Improved Spacing */
.cmp_form .optin,
.cmp_form .checkbox {
  margin-bottom: 1rem !important;
}

.cmp_form input[type="checkbox"],
.cmp_form input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  accent-color: #0fa092 !important;
  cursor: pointer !important;
  margin-right: 0.75rem !important;
  /* Slightly more gap */
  vertical-align: middle !important;
}

/* Complex Reordering: Interests above ALL checkboxes */
.cmp_form.register {
  display: flex !important;
  flex-direction: column !important;
}

/* Break open the fieldsets so we can reorder their children relative to each other */
.cmp_form.register fieldset {
  display: contents !important;
}

/* Complex Reordering: Interests above ALL checkboxes */
.cmp_form.register {
  display: flex !important;
  flex-direction: column !important;
}

/* Break open ALL containers so we can reorder their children form-wide */
.cmp_form.register fieldset,
.cmp_form.register .section,
.cmp_form.register .fields {
  display: contents !important;
}

/* Order the children */
.cmp_form.register>*:not(.reviewer_interests):not(#reviewerInterests):not(.optin):not(.buttons) {
  order: 1 !important;
  /* Standard fields top */
}

/* Specific targeting for standard field wrappers that might still be direct flex items */
.cmp_form.register .section,
.cmp_form.register .fields {
  order: 1 !important;
}

/* Target the interests field to be #2 - ABOVE checkboxes */
.cmp_form.register .reviewer_interests,
.cmp_form.register #reviewerInterests {
  order: 10 !important;
  margin-bottom: 2rem !important;
  display: block !important;
  width: 100% !important;
}

/* Target ALL checkboxes (Consent + Reviewer Opt-in) to be #3 */
.cmp_form.register .optin,
.cmp_form.register .checkbox,
.cmp_form.register label:has(input[type="checkbox"]) {
  order: 20 !important;
  margin-bottom: 1.25rem !important;
  display: flex !important;
  align-items: flex-start !important;
  width: 100% !important;
}

/* Buttons always last with a large buffer below them (inside the card) */
.cmp_form.register .buttons,
.aortic-page-login .buttons {
  order: 30 !important;
  margin-top: 3rem !important;
  padding-bottom: 8rem !important;
  /* This creates the buffer inside the card */
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

/* Reviewer Opt-in fix for spacing */
.cmp_form.register .optin-reviewer {
  margin-top: 0 !important;
}

/* Buttons Transformation */
.cmp_form button,
.cmp_form .buttons button,
.cmp_form button[type="submit"] {
  background: #d32f2f !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  padding: 1rem 3.5rem !important;
  border: none !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3) !important;
  margin-top: 1.5rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.cmp_form button:hover {
  background: #b71c1c !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4) !important;
}

/* Secondary links (Login instead / Forgot password) */
.cmp_form .buttons a,
.cmp_form a[href*="login"],
.cmp_form a[href*="register"] {
  color: #0fa092 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  margin-left: 1rem !important;
  text-decoration: underline !important;
}

.cmp_form a:hover {
  color: #0d9488 !important;
}

@media (max-width: 850px) {
  .aortic-combined-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    gap: 3rem !important;
  }

  .aortic-footer-v-sep {
    width: 60% !important;
    height: 6px !important;
    margin: 0 auto !important;
    flex-shrink: 0;
  }

  .aortic-footer-col {
    min-width: 100% !important;
  }
}

/* =========================================
   ISSUE CARD PLACEHOLDER STYLES (from archive.html)
   ========================================= */
.issue-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  /* Ensure consistent height */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.issue-card:hover {
  transform: translateY(-10px);
  border-color: #0fa092;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.issue-cover {
  height: 240px;
  background: #1e293b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.issue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: blur(2px);
}

.cover-overlay {
  position: absolute;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 1rem;
}

.cover-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.cover-vol {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.issue-details {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.issue-year {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0fa092;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.issue-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.issue-meta {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.issue-actions {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}

/* Ensure buttons inside issue-card behave correctly */
.issue-card .btn-action {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: inline-block;
  line-height: 1.2;
}

.issue-card .btn-view {
  background: #1e293b;
  color: #fff;
}

.issue-card .btn-view:hover {
  background: #0f172a;
}

.issue-card .btn-pdf {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.issue-card .btn-pdf:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Swiper Slide Sizing Fix */
.aortic-issue-swiper .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
}

.aortic-issue-swiper .issue-card {
  width: 100%;
}

/* =========================================
   WHY SUBMIT SECTION (Replaces Flip Cards)
   ========================================= */
.aortic-submit-benefits {
  padding: 2rem 0;
}

.submit-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: #0fa092;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.benefit-card.highlight {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border-color: #0fa092;
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.benefit-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.benefit-card p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* =========================================
   COMPACT MEMBERSHIP & DATA CTA
   ========================================= */
.aortic-cta-compact {
  background: #1e293b;
  border-radius: 24px;
  padding: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

@media (max-width: 900px) {
  .aortic-cta-compact {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem;
  }
}

.aortic-cta-compact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

.cta-text-side {
  flex: 2;
  z-index: 2;
}

.cta-data-side {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 280px;
  text-align: center;
  z-index: 2;
}

.aortic-cta-compact h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.aortic-cta-compact p {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Data Tracker Styles */
.tracker-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #0fa092;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tracker-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  display: block;
}

.btn-cta-primary {
  background: #d32f2f;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-cta-primary:hover {
  background: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

/* =========================================
   FLIP CARDS (Programmes Section)
   ========================================= */
.aortic-programmes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}

.flip-card {
  background-color: transparent;
  height: 320px;
  border-radius: 24px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 24px;
  box-sizing: border-box;
}

.flip-card-front {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.flip-card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.flip-card-front h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.flip-card-front p {
  color: #64748b;
  font-size: 1rem;
}

.flip-card-back {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  transform: rotateY(180deg);
  border: 1px solid #1e293b;
}

.flip-card-back h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0fa092;
}

.flip-card-back p {
  color: #e2e8f0;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-flip-action {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0fa092;
  color: white;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-flip-action:hover {
  background: #0d9488;
  transform: scale(1.05);
}

/* =========================================
   MEMBERSHIP CTA BANNER
   ========================================= */
.aortic-cta-membership {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  border-radius: 32px;
  padding: 5rem 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.aortic-cta-membership::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
}

.aortic-cta-membership h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: white;
}

.aortic-cta-membership p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.btn-cta-white {
  background: white;
  color: #d32f2f;
  padding: 1.25rem 3rem;
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  background: #f8fafc;
}

/* Updated Read More Link Style */
.aortic-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0fa092;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s;
  padding: 0.5rem 0;
}

.aortic-read-more-btn:hover {
  color: #0d9488;
  gap: 0.75rem;
  /* Slight movement animation */
}

.aortic-read-more-btn svg {
  transition: transform 0.2s;
}

/* =========================================
   SCIENTIFIC ACCORDION (Why Submit)
   ========================================= */
.aortic-scientific-accordion {
  max-width: 900px;
  margin: 0 auto 4rem auto;
  border-top: 1px solid #e2e8f0;
}

.scientific-details {
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.scientific-details[open] {
  background: #f8fafc;
}

.scientific-summary {
  padding: 1.5rem 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  color: #1e293b;
  font-weight: 500;
}

.scientific-summary::-webkit-details-marker {
  display: none;
}

.scientific-summary::after {
  content: "+";
  font-size: 1.5rem;
  color: #94a3b8;
  font-weight: 300;
  transition: transform 0.3s;
}

.scientific-details[open] .scientific-summary::after {
  transform: rotate(45deg);
  color: #d32f2f;
}

.scientific-content {
  padding: 0 1rem 1.5rem 1rem;
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  max-width: 800px;
}

/* =========================================
   AUTHOR SPOTLIGHT (Dynamic)
   ========================================= */
.aortic-author-spotlight {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  margin: 4rem 0;
  display: flex;
  align-items: stretch;
  min-height: 350px;
}

@media (max-width: 900px) {
  .aortic-author-spotlight {
    flex-direction: column;
  }
}

.spotlight-image-side {
  flex: 1;
  background: #1e293b;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.spotlight-image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.spotlight-text-side {
  flex: 1.5;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-label {
  display: inline-block;
  background: #d32f2f;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.spotlight-name {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.spotlight-affil {
  font-size: 1rem;
  color: #0fa092;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: block;
}

.spotlight-bio {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-spotlight-link {
  color: #1e293b;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid #d32f2f;
  align-self: flex-start;
  padding-bottom: 2px;
  transition: all 0.2s;
}

.btn-spotlight-link:hover {
  color: #d32f2f;
}

/* =========================================
   COLLECTIONS GRID (Balanced)
   ========================================= */
/* Ensure 4 items per row on desktop for perfect balance */
.aortic-collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 5rem;
}

@media (max-width: 1100px) {
  .aortic-collections-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 grid */
  }
}

@media (max-width: 600px) {
  .aortic-collections-grid {
    grid-template-columns: 1fr;
    /* Stacked */
  }
}

.collection-card {
  background: #f8fafc;
  border: 3px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.collection-card:hover {
  background: #ffffff;
  border-color: #0fa092;
  transform: translateY(-3px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.collection-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.collection-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* =========================================
   HOMEPAGE REFACTOR (Merge & Condense)
   ========================================= */

/* 1. New Split Container */
.aortic-content-merge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .aortic-content-merge {
    grid-template-columns: 1fr;
  }
}

/* 2. Jazzed-up Why Publish (Visual List) */
.why-publish-container {
  padding-right: 1rem;
}

.why-publish-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: white;
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.why-publish-item:hover {
  transform: translateX(10px);
  border-color: #0fa092;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  background: #f0fdfa;
  /* Light teal tint */
}

.wp-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: #e0f2f1;
  color: #0fa092;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.why-publish-item:hover .wp-icon {
  background: #0fa092;
  color: white;
  transform: rotate(5deg) scale(1.1);
}

.wp-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.wp-content p {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* 3. Modified Spotlight -> Profile Card Style */
.aortic-content-merge .aortic-author-spotlight {
  margin: 0;
  height: 100%;
  display: block;
  /* reset flex? or just let it be a block container for the card */
  flex-direction: column;
  /* Force column in case JS makes it flex */
  box-shadow: none;
  /* Card has its own shadow */
  background: transparent;
}

/* Reusing the "Profile Card" aesthetic from Welcome page */
.profile-card {
  position: relative;
  overflow: hidden;
  background: #1c3b57;
  /* Fallback dark teal */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;
  box-sizing: border-box;
  color: #fff;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/background4.png') center/cover no-repeat;
  filter: blur(0px) brightness(0.5);
  transform: scale(1.1);
  /* Prevent blurry edges */
  z-index: 0;
}

/* Ensure content stays above background */
.profile-card>* {
  position: relative;
  z-index: 1;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.profile-image-container {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto 1.5rem auto;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.profile-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%);
  /* Subtle aesthetic touch per original */
  transition: filter 0.3s ease;
}

.profile-card:hover .profile-image-container img {
  filter: grayscale(0%);
}

.profile-role {
  font-size: 0.85rem;
  color: #d32f2f;
  /* Red for "Spotlight" label equivalent */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.profile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  color: #ffffff;
  /* White name */
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-affil {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  /* Slightly transparent white for subheader */
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: block;
}

.profile-bio {
  font-size: 1rem;
  color: #fbb736;
  /* Gold bio */
  line-height: 1.6;
  margin: 0 auto 2rem auto;
  max-width: 90%;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
  font-weight: 400;
}

.profile-link {
  display: inline-block;
  background: #0fa092;
  /* Teal background */
  color: #ffffff !important;
  /* White text */
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  box-shadow: 0 4px 15px rgba(15, 160, 146, 0.3);
}

.profile-link:hover {
  background: #0d8a7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 160, 146, 0.4);
  color: #ffffff !important;
}

/* 4. Compact Browse By Collections */
.aortic-collections-grid {
  margin-top: 2rem;
  /* Reduced from 3rem */
  margin-bottom: 3rem;
  /* Reduced from 5rem */
}

.collection-card {
  padding: 1.25rem;
  /* Slightly more compact */
}

/* ========================================
   CRITICAL HEADER OVERRIDES - MUST BE LAST
   ======================================== */

/* Header background - ALL elements - uses CSS variable */
html body .pkp_structure_head,
html body header.pkp_structure_head,
html .pkp_structure_head,
.pkp_structure_head,
.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_site_nav_menu,
nav.pkp_site_nav_menu,
html body .pkp_site_nav_menu,
html body nav.pkp_site_nav_menu,
.aortic_nav_center,
.pkp_navigation_primary_wrapper,
.pkp_navigation_search_wrapper,
.pkp_navigation_user_wrapper,
.pkp_navigation_primary,
.pkp_nav_list,
ul.pkp_navigation_primary,
ul.pkp_nav_list,
.pkp_navigation_user,
ul.pkp_navigation_user {
  background: var(--header-color) !important;
  background-color: var(--header-color) !important;
}

/* Fluid site title - scales from tablet to 4K */
html body .pkp_site_name .is_text,
html body .pkp_site_name a,
.pkp_site_name .is_text,
.pkp_site_name a,
.pkp_site_name>a,
.journal-title,
.pkp_site_name .journal-title {
  font-size: clamp(1.2rem, 3vw, 3.5rem) !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

/* Mid-range breakpoint: smooth title at 992-1280px */
@media (min-width: 992px) and (max-width: 1280px) {
  .aortic-brand-link {
    font-size: clamp(1.8rem, 3.5vw, 3rem) !important;
  }
  .journal-title {
    font-size: clamp(1.4rem, 2.8vw, 3rem) !important;
  }
  .pkp_site_name {
    gap: 1rem !important;
  }
}
/* ============================================================
   ðŸ“± RESPONSIVE OVERRIDES (MOBILE & TABLET)
   ============================================================ */

/* --- TABLET BREAKPOINT (MAX 1024px) --- */
@media (max-width: 1024px) {
  .pkp_site_name .is_text,
  .pkp_site_name a.is_text,
  .journal-title,
  span.journal-title {
    font-size: 2.5rem !important;
    white-space: normal !important;
  }

  .aortic-page {
    max-width: 95%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .aortic-collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- MOBILE BREAKPOINT (MAX 768px) --- */
@media (max-width: 768px) {
  /* Header & Navigation */
  .pkp_site_name {
    gap: 1rem;
    padding: 1rem 0 !important;
  }

  .pkp_site_name .is_text,
  .pkp_site_name a.is_text,
  .journal-title,
  span.journal-title {
    font-size: 1.8rem !important;
  }

  .aortic_nav_row {
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
  }

  .pkp_navigation_primary,
  ul.pkp_navigation_primary,
  ul#navigationPrimary {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem 1rem !important;
  }

  .pkp_navigation_search_wrapper {
    margin-left: 0 !important;
    width: 100%;
    justify-content: center;
  }

  .pkp_search input[type="text"],
  .pkp_search input[type="search"] {
    width: 200px !important;
    min-width: 150px !important;
  }

  /* Hero Section */
  .aortic-hero {
    margin: 0 -1rem 1.5rem;
    padding: 1.5rem 1rem;
  }

  .aortic-hero-title {
    font-size: 1.75rem !important;
  }

  .aortic-hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .aortic-btn {
    width: 100%;
    text-align: center;
  }

  /* Issue Cards (Stacking) */
  body .issue-card {
    flex-direction: column !important;
    gap: 1.5rem !important;
    text-align: center !important;
  }

  body .issue-cover {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 280px;
    margin: 0 auto;
  }

  body .issue-details {
    padding: 0 1rem !important;
  }

  body .issue-title {
    font-size: 1.8rem !important;
  }

  body .issue-actions {
    justify-content: center !important;
    flex-wrap: wrap;
  }

  /* Grids */
  .aortic-features,
  .submit-benefits-grid,
  .aortic-programmes-grid,
  .aortic-collections-grid,
  .aortic-content-merge {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Profile Card Spotlights */
  .aortic-author-spotlight {
    flex-direction: column !important;
  }

  .spotlight-text-side {
    padding: 1.5rem !important;
  }

  .profile-image-container {
    width: 160px;
    height: 160px;
  }

  .profile-name {
    font-size: 1.5rem !important;
  }

  /* Standard Page Titles Hero */
  .page_title,
  .pkp_structure_main h1:first-child,
  .aortic-page .page h1:first-child {
    font-size: 1.8rem !important;
    padding: 2rem 1.5rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .cmp_breadcrumbs {
    padding: 1rem 1.5rem 0.5rem !important;
  }

  /* Membership CTA */
  .aortic-cta-membership {
    padding: 3rem 1.5rem;
  }

  .aortic-cta-membership h2 {
    font-size: 2rem !important;
  }

  .aortic-cta-membership p {
    font-size: 1rem !important;
  }
}

/* --- SMALL MOBILE BREAKPOINT (MAX 480px) --- */
@media (max-width: 480px) {
  .pkp_site_name .journal-title {
    font-size: 1.4rem !important;
  }

  .issue-actions {
    flex-direction: column;
    width: 100%;
  }

  .issue-actions .btn-action,
  .issue-actions .btn-view,
  .issue-actions .btn-pdf {
    width: 100% !important;
    text-align: center;
  }
}

/* ============================================================
   ðŸŽ¨ MOBILE DESIGN REFINEMENTS (HAMBURGER, LOGO, HERO, FOOTER)
   ============================================================ */

@media (max-width: 768px) {
  /* 1. Hamburger Menu Logic */
  .pkp_site_nav_toggle {
    display: block !important;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    order: -1; /* Place before title/logo if needed */
  }

  .pkp_site_nav_toggle_icon {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
  }

  .pkp_site_nav_toggle_icon::before,
  .pkp_site_nav_toggle_icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
  }

  .pkp_site_nav_toggle_icon::before { top: -8px; }
  .pkp_site_nav_toggle_icon::after { top: 8px; }

  /* Transform icon to X when open */
  .pkp_site_nav_toggle--transform .pkp_site_nav_toggle_icon {
    background: transparent;
  }
  .pkp_site_nav_toggle--transform .pkp_site_nav_toggle_icon::before {
    transform: rotate(45deg);
    top: 0;
  }
  .pkp_site_nav_toggle--transform .pkp_site_nav_toggle_icon::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .pkp_site_nav_menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-color, #e34d2c) !important;
    flex-direction: column !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
  }

  .pkp_site_nav_menu--isOpen {
    display: flex !important;
  }

  .aortic_nav_row {
    width: 100%;
    padding: 0 !important;
  }

  /* 2. Logo & Branding Refinement */
  .pkp_site_name {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: 100%;
    padding: 0.5rem 0 !important;
  }

  .pkp_site_name .is_img img {
    max-height: 60px !important;
    width: auto;
  }

  .pkp_site_name .journal-title {
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  /* 3. Hero Section Compaction ("Too Long") */
  .aortic-hero {
    padding: 1.25rem 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .aortic-hero-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .aortic-btn {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.85rem !important;
  }

  /* 4. Footer Centering */
  .aortic-footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .aortic-footer-col > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    grid-template-columns: 1fr !important; /* Force single column if grid used */
  }

  .aortic-footer-col h2 {
    font-size: 1.6rem !important;
    margin-top: 1rem !important;
  }

  .aortic-footer-col p {
    font-size: 1rem !important;
  }

  .aortic-footer-col img {
    margin-bottom: 1rem !important;
  }

  .aortic-footer-col div > div {
    text-align: center !important;
  }
}

/* ============================================================
   ðŸ”§ BUG FIXES: MOBILE HEADER VISIBILITY & SPECIFICITY
   ============================================================ */

@media (max-width: 768px) {
  /* Fix 1: Force title size regardless of global 'html body' rules */
  html body .pkp_site_name .journal-title,
  html body .pkp_site_name .journal-title a,
  .pkp_site_name .journal-title,
  .pkp_site_name .journal-title a {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    text-align: left !important;
  }

  /* Fix 2: Ensure the toggle is visible and clickable */
  .pkp_site_nav_toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-right: 5px;
    z-index: 1001 !important;
  }

  /* Fix 3: Adjust branding container to prevent squashing */
  .pkp_site_name_wrapper {
    padding: 0 10px !important;
  }

  .pkp_site_name {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  /* Fix 4: Logo specific size */
  .pkp_site_name .is_img img {
    max-height: 50px !important;
    width: auto !important;
    margin-right: 10px;
  }

  /* Fix 5: Ensure utilities (search/login) are visible when menu opens */
  .pkp_site_nav_menu--isOpen .aortic_nav_row {
    flex-direction: column !important;
    display: flex !important;
  }

  .pkp_site_nav_menu--isOpen .aortic_nav_utilities {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    width: 100%;
  }
}

/* ============================================================
   ðŸš© FINAL SPECIFICITY FIXES: HAMBURGER & BRANDING
   ============================================================ */

@media (max-width: 768px) {
  /* Ensure the wrapper is a row with the toggle on the left */
  .pkp_site_name_wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 1rem !important;
    min-height: 70px;
    gap: 15px;
  }

  /* Force the toggle to be visible and have a hit area */
  .pkp_site_nav_toggle {
    display: flex !important;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    z-index: 1002 !important;
  }

  /* Branding container should wrap its content but not overflow the screen */
  .pkp_site_name {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-grow: 1;
    overflow: hidden;
  }

  /* Logo adjustment */
  .pkp_site_name .is_img img {
    max-height: 45px !important;
    width: auto !important;
    flex-shrink: 0;
  }

  /* Journal title deep specificity override */
  html body header .pkp_site_name .journal-title,
  html body header .pkp_site_name .journal-title a,
  .pkp_site_name .journal-title {
    font-size: 1rem !important; /* Even smaller to ensure it stays in one row if possible */
    line-height: 1.2 !important;
    white-space: normal !important;
    flex-grow: 1;
  }

  /* The actual Menu Container */
  .pkp_site_nav_menu {
    top: 70px !important; /* Align with wrapper height */
  }

  /* Ensure utilities are visible and readable in the open menu */
  .pkp_site_nav_menu--isOpen .aortic_nav_utilities {
    display: flex !important;
    background: rgba(255,255,255,0.05);
    padding: 1rem !important;
    border-radius: 8px;
  }

  .pkp_site_nav_menu--isOpen .pkp_search input {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    background: rgba(0,0,0,0.2) !important;
  }
}

/* ===== Language Switcher ===== */
.aortic_lang_switcher {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.lang-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.8);
}

.lang-toggle-btn .fa-globe {
    font-size: 16px;
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    padding: 4px 0;
    margin: 4px 0 0;
    z-index: 1000;
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
}

.lang-dropdown-menu.show {
    display: block;
}

.lang-dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.15s;
}

.lang-dropdown-menu li a:hover {
    background: #f0f0f0;
    color: #004c6d;
}

/* RTL support for Arabic */
html[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}
