.nf-card {
  width: 200px; /* Adjust width as needed */
  height: 250px; /* 1:1.25 aspect ratio */
  overflow: hidden; /* Ensures content doesn't overflow */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Aligns content properly */
}

.nf-card img {
  width: 100%; /* Ensures image takes full width */
  height: auto; /* Maintains aspect ratio of the image */
  object-fit: cover; /* Ensures the image covers the card without distortion */
}
/*
Theme Name: Nemesis Custom
Template: blocksy
Version: 1.0
Text Domain: nemesis-custom
*/

@font-face {
  font-family: 'Aileron';
  src: url('fonts/Aileron-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('fonts/Aileron-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


@font-face {
  font-family: 'Aileron';
  src: url('fonts/Aileron-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('fonts/Aileron-SemiBoldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('fonts/Aileron-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('fonts/Aileron-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('fonts/Aileron-Heavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('fonts/Aileron-HeavyItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('fonts/Aileron-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aileron';
  src: url('fonts/Aileron-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Global navigation (shared across all Nemesis templates) */
:root {
  --primary: #780000;
  --accent: #ffffff;
  --white: #ffffff;
  --gradient-main: linear-gradient(180deg, #4c0000 0%, #560000 40%, #600000 75%, #6a0000 100%);

  /* Font family */
  --font-primary: 'Aileron', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Font sizes (professional conference scale) - responsive */
  --font-size-h1: clamp(32px, 6.5vw, 48px);
  --font-size-h2: clamp(26px, 5.5vw, 36px);
  --font-size-h3: clamp(20px, 4.5vw, 28px);
  --font-size-h4: clamp(18px, 3.5vw, 22px);
  --font-size-body: clamp(16px, 2.2vw, 18px);
  --font-size-small: clamp(13px, 1.6vw, 15px);

  /* Line heights */
  --line-height-heading: 1.25;
  --line-height-body: 1.7;

  /* Font weights */
  --weight-bold: 800;
  --weight-semibold: 700;
  --weight-medium: 600;
  --weight-regular: 500;
}

html, body {
  background: var(--gradient-main);
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  font-weight: var(--weight-regular);
  line-height: var(--line-height-body);
  margin: 0;
  padding: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p,
li,
a,
label,
input,
textarea,
button,
select,
span {
  font-size: var(--font-size-body);
  font-weight: var(--weight-medium);
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-primary) !important;
}

/* ===== HEADINGS ===== */

h1 {
  font-family: var(--font-primary);
  font-size: var(--font-size-h1);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-heading);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-primary);
  font-size: var(--font-size-h2);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-heading);
  margin-bottom: 14px;
}

h3 {
  font-family: var(--font-primary);
  font-size: var(--font-size-h3);
  font-weight: var(--weight-semibold);
  line-height: var(--line-height-heading);
  margin-bottom: 12px;
}

h4 {
  font-family: var(--font-primary);
  font-size: var(--font-size-h4);
  font-weight: var(--weight-semibold);
  line-height: var(--line-height-heading);
  margin-bottom: 10px;
}

/* ===== BODY TEXT ===== */

p {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  font-weight: var(--weight-regular);
  line-height: var(--line-height-body);
  margin-bottom: 16px;
}

/* ===== LINKS ===== */

a {
  font-family: var(--font-primary);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

/* ===== NAVIGATION ===== */

nav, .menu, .navbar {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: var(--weight-medium);
}

/* ===== BUTTONS ===== */

button, .button {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: var(--weight-semibold);
}

/* ===== SMALL TEXT ===== */

small {
  font-size: var(--font-size-small);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: 78px;
  background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.12) 70%, rgba(0,0,0,0));
  transition: background-color 0.25s ease, height 0.25s ease, box-shadow 0.25s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.12) 70%, rgba(0,0,0,0));
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: -1;
}

body.has-sticky-padding {
  padding-top: 0;
}

.site-header.is-scrolled {
  position: fixed;
  background: var(--primary);
  height: 110px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.admin-bar .site-header {
  top: 32px;
}

.nh-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 100%;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Prevent header overlapping first section */
.site-main {
  padding-top: 78px;
  background: var(--gradient-main);
}
.admin-bar .site-main {
  padding-top: 110px;
}

/* Allow home hero to sit under the transparent header */
body.home .site-main.nemesis-home,
body.page-template-page-home .site-main.nemesis-home {
  padding-top: 0;
}
body.home.admin-bar .site-main.nemesis-home,
body.page-template-page-home.admin-bar .site-main.nemesis-home {
  padding-top: 0;
}

/* Extend hero-under-header treatment to other templates */
body.page-template-page-apply .site-main,
body.page-template-page-contact .site-main,
body.page-template-page-faq .site-main,
body.page-template-page-team .site-main,
body.page-template-page-schedule .site-main,
body.page-template-page-ecthr .site-main,
body.page-template-page-aym1 .site-main,
body.page-template-page-aym2 .site-main,
body.page-template-page-agir .site-main,
body.page-template-page-aile .site-main,
body.page-template-page-ma .site-main,
body.page-template-page-cjeu .site-main {
  padding-top: 0;
}

body.page-template-page-venue .site-main {
  padding-top: 0;
  background: #ffffff;
}
body.page-template-page-apply.admin-bar .site-main,
body.page-template-page-contact.admin-bar .site-main,
body.page-template-page-faq.admin-bar .site-main,
body.page-template-page-team.admin-bar .site-main,
body.page-template-page-venue.admin-bar .site-main,
body.page-template-page-schedule.admin-bar .site-main,
body.page-template-page-ecthr.admin-bar .site-main,
body.page-template-page-aym1.admin-bar .site-main,
body.page-template-page-aym2.admin-bar .site-main,
body.page-template-page-agir.admin-bar .site-main,
body.page-template-page-aile.admin-bar .site-main,
body.page-template-page-ma.admin-bar .site-main,
body.page-template-page-cjeu.admin-bar .site-main {
  padding-top: 0;
}

/* Lock header container width so page-specific nh-container overrides don't shrink/expand header */
.site-header .nh-container {
  width: min(1200px, 92vw) !important;
  margin: 0 auto !important;
  padding-left: 0;
  padding-right: 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
}

.header-brand.nh-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: transparent;
  border: none;
  transition: width 0.3s ease, height 0.3s ease;
}

.nh-logo__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.site-header.is-scrolled .header-brand.nh-logo {
  width: 110px;
  height: 110px;
}

.primary-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: auto;
}

.primary-nav a {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 6px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--accent);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.nh-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nh-dropdown__toggle {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 6px;
  color: var(--white);
  text-decoration: none;
}

.nh-dropdown__toggle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nh-dropdown__toggle:hover,
.nh-dropdown__toggle:focus-visible,
.nh-dropdown__toggle.is-active {
  color: var(--accent);
}

.nh-dropdown__toggle:hover::after,
.nh-dropdown__toggle.is-active::after {
  transform: scaleX(1);
}

.nh-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(194, 161, 90, 0.4);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1200;
}

.nh-dropdown__menu a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.nh-dropdown__menu a:hover,
.nh-dropdown__menu a:focus-visible {
  background: rgba(194, 161, 90, 0.2);
  color: var(--accent);
}

.nh-dropdown:hover .nh-dropdown__menu,
.nh-dropdown:focus-within .nh-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
}

@media (max-width: 960px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(194, 161, 90, 0.4);
    border-radius: 12px;
    padding: 14px;
    display: none;
  }

.primary-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    padding: 0 16px;
  }

  .nh-dropdown {
    width: auto;
    justify-content: center;
  }

  .nh-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(194, 161, 90, 0.4);
    border-radius: 8px;
    padding: 0;
    margin-top: 8px;
    min-width: 240px;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
  }

  .nh-dropdown__toggle[aria-expanded="true"] ~ .nh-dropdown__menu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: 8px;
  }

  .nh-dropdown__menu a {
    padding: 8px 10px;
    border-radius: 6px;
  }
}

/* Force single header (hide Blocksy builder output to avoid duplicate bars) */
#header,
.ct-header,
.ct-header-outer,
.ct-header-inner,
.ct-header-mobile,
.ct-header-wrap,
.ct-sticky-placeholder,
.ct-header-sticky {
  display: none !important;
}

/* Hide Blocksy page title/breadcrumb wrappers to prevent white bands */
.ct-page-title,
.ct-page-title-inner,
.page-title,
.ct-breadcrumbs {
  display: none !important;
}

/* Team page (2x3 card system) */
.nemesis-team .nh-team-grid {
  padding: 90px 0 110px;
}

.nh-team-grid__header {
  text-align: center;
  margin-bottom: 36px;
}

.nh-team-grid__lead {
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 12px auto 0;
}

.nh-team-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.nh-team-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(194, 161, 90, 0.35);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.nh-team-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5; /* 1:1.25 */
  overflow: hidden;
}

.nh-team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nh-team-card__text {
  padding: 16px 18px 22px;
  text-align: center;
  background: var(--primary);
}

.nh-team-card__name {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--accent);
}

.nh-team-card__role {
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent);
}

.nh-team-hero__title {
  text-align: center;
  color: var(--accent);
}

.na-hero__title {
  color: var(--accent);
}

@media (max-width: 960px) {
  .nh-team-grid__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nh-team-grid__cards {
    grid-template-columns: 1fr;
  }
}

/* ===== Content Styling for Non-Court Pages ===== */

/* Apply Page */
.nemesis-apply .na-section {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

.nemesis-apply .na-section h2,
.nemesis-apply .na-section h3 {
  color: var(--accent);
}

.nemesis-apply .na-section p,
.nemesis-apply .na-grid {
  color: var(--white);
}

/* Contact Page */
.nemesis-contact .nc-section {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

.nemesis-contact .nc-card__title,
.nemesis-contact .nc-follow h3 {
  color: var(--accent);
}

.nemesis-contact .nc-card__email,
.nemesis-contact .nc-section p {
  color: var(--white);
}

/* FAQ Page */
.nemesis-faq .nf-section {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

.nemesis-faq .nf-card__q {
  color: var(--accent);
  margin-bottom: 6px !important;
  line-height: 1.35;
  min-height: 2.7em;
}

.nemesis-faq .nf-card {
  display: block;
  height: auto;
}

.nemesis-faq .nf-card__a {
  color: var(--white);
  margin-top: -2px;
  min-height: 4.95em;
}

/* Team Page */
.nemesis-team .nh-section {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

.nemesis-team .nh-team-grid__header h2 {
  color: var(--accent);
}

.nemesis-team .nh-section p {
  color: var(--primary);
}

/* Venue Page */
.nemesis-venue .nv-section {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

.nemesis-venue .nv-access {
  background: #ffffff !important;
}

.nemesis-venue .nv-access__title {
  color: var(--accent);
}

.nemesis-venue .nv-access__list li,
.nemesis-venue .nv-section p {
  color: var(--primary);
}

.nemesis-venue figcaption {
  color: var(--primary);
}

/* Schedule Page */
.nemesis-schedule .ns-section {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

.nemesis-schedule .ns-card__date {
  color: var(--accent);
}

.nemesis-schedule .ns-card__status {
  color: var(--accent);
}

/* ===== Hero Section Styling (Apply & Team Pages) ===== */

/* Apply Page Hero */
.na-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: var(--gradient-main);
}

.na-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 0;
}

.na-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Team Page Hero */
.nh-team-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: var(--gradient-main);
}

.nh-team-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-main);
  z-index: 1;
}

.nh-team-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 0;
}

.nh-team-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
