/* === Custom Nexa font setup (OTF) === */
@font-face {
  font-family: 'Nexa';
  src: url('../fonts/Nexa Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Nexa';
  src: url('../fonts/Nexa Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Nexa';
  src: url('../fonts/Nexa Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

:root {
  --pj-blue: #1f3a93;
  --page-bg: #f2f6fc;
  --hero-bg: #330b68;
  --card-accent: #7676dd;
  --text: #1f1f1f;
}

/* ===== Page & layout (sticky footer) ===== */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}
body {
  background-color: var(--page-bg);
  color: var(--text);
  padding: 0;
  font-family: 'Nexa', Arial, sans-serif;
  font-weight: 400;
}
body > main,
body > .container,
body > .container-fluid {
  flex: 1 0 auto;
}

/* Headings in Nexa Bold */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nexa', Arial, sans-serif;
  font-weight: 700;
}

/* ===== Header ===== */
header {
  background-color: var(--hero-bg);
  color: #fff;
}
.header-container {
  background-color: var(--hero-bg);
  border-radius: 0;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
header .row.align-items-center {
  min-height: auto;
}

/* Header images */
.header-img {
  max-height: 80px;
  height: auto;
  width: auto;
}
/* Logo 50% bigger than others */
.header-logo {
  max-height: 150px;
}
/* Keep logo & PJ from hugging edges on narrow screens */
.header-logo,
.header-pj {
  max-width: 90%;
}

/* ===== Cards ===== */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
  transition: transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: linear-gradient(135deg, var(--card-accent) 0%, #8f8fee 100%);
  color: #fff;            /* text white by default */
  border-radius: 12px;
}
.card:hover { transform: scale(1.015); }

/* === Image container: dark purple background (#330b68) === */
.image-container {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #330b68; /* ← added solid background color */
  border-radius: 10px 10px 0 0;
}

.image-container .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}
.image-container img:not(.bg-img),
.image-container .fg-img {
  position: relative;
  max-height: 85%;   /* add margin */
  max-width: 85%;    /* add margin */
  object-fit: contain;
  z-index: 1;
}

.card-body {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ← changed from flex-end */
  color: #fff;
}

.card-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}
.card-text {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.9); /* slightly softer */
}

/* ===== Footer (same color as header, sticky bottom) ===== */
footer {
  background-color: var(--hero-bg);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  padding: 1rem;
  margin-top: auto;
}

/* Make the mobile logo look clickable */
.header-logo-mobile {
  cursor: pointer;
}

/* Mobile logo larger */
@media (max-width: 767.98px) {
  .header-logo-mobile {
    max-height: 150px;  /* was ~80px */
    width: auto;
    height: auto;
    cursor: pointer;    /* keep clickable indication */
  }
}

