/* fonts */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* YPADS isolated styles (prefixed with .ypads-) */
:root {
  --ypads-text: #1a1a1a;
  --ypads-brand: #8b1e1e;
  --ypads-ring: rgba(139, 30, 30, 0.25);
  --ypads-shadow: rgba(0, 0, 0, 0.08);
  --ypads-paper: #f2f2f2;
  --ypads-footer-bg: #202020;
  --ypads-footer-text: #e7e7e7;
  --ypads-footer-muted: #cccccc;
}

/* Body background with textured pattern */
body {
  background-image: url('../elements/textured-background.png');
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: 0 0;
  margin: 0;
  min-height: 100vh;
}

/* Containers */
.ypads-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .ypads-container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .ypads-container {
    padding: 0 12px;
  }
}
/* Wider content area specifically for the footer to match reference spacing */
.ypads-footer .ypads-container {
  max-width: none;
  margin: 0;
  padding-left: 48px;
  padding-right: 24px;
}

/* Make header stretch edge-to-edge without side padding */
.ypads-header .ypads-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.ypads-header__bar {
  padding-left: 0;
  padding-right: 0;
}

/* Subtle paper for header backdrop */
.ypads-surface {
  background:
    url('../elements/textured-background.png'),
    radial-gradient(1200px 400px at 10% 0%, rgba(0,0,0,0.03), transparent),
    radial-gradient(1200px 400px at 90% 0%, rgba(0,0,0,0.03), transparent),
    var(--ypads-paper);
  background-repeat: repeat, no-repeat, no-repeat, repeat;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06);
}

/* HEADER */
.ypads-header {
  position: sticky;
  top: 0;
  z-index: 50;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--ypads-text);
}

.ypads-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px; /* ~55% scale */
  padding-left: 12px;
  padding-right: 12px;
}

.ypads-header__left,
.ypads-header__center,
.ypads-header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ypads-header__center {
  flex: 1 1 auto;
  justify-content: flex-start;
  margin-left: clamp(14px, 2vw, 30px); /* scaled spacing between logo and nav */
}
.ypads-header__left { flex: 0 0 auto; }
.ypads-header__right { margin-left: auto; flex: 0 0 auto; }

.ypads-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.ypads-header__logo {
  width: 56px;   /* ~55% */
  height: 56px;  /* ~55% */
  object-fit: cover;
  border-radius: 0;
  display: block;
  box-shadow: none;
  background-color: transparent;
  mix-blend-mode: multiply; /* reduces visible white backgrounds in non-transparent images */
}

.ypads-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px); /* ~55% gap */
  list-style: none;
  margin: 0;
  padding: 0;
}

.ypads-nav a {
  text-decoration: none;
  color: var(--ypads-text);
  font-size: clamp(12px, 1.35vw, 18px); /* ~55% scale */
  font-weight: 600;
  padding: 6px 2px;
  position: relative;
  transition: color .2s ease;
}
.ypads-nav a:hover { color: #650a0b; }
.ypads-nav a.active {
  color: #111;
}
.ypads-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 8px;
  background: var(--ypads-brand);
  border-radius: 2px;
}

.ypads-profile {
  width: 40px;  /* ~55% */
  height: 40px; /* ~55% */
  border-radius: 9999px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px var(--ypads-shadow);
}
.ypads-profile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Header Auth Buttons */
.ypads-header__auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ypads-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: clamp(12px, 1.35vw, 18px);
  font-weight: 600;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.ypads-btn--login {
  color: var(--ypads-text);
  background: transparent;
  border: 2px solid var(--ypads-text);
}

.ypads-btn--login:hover {
  color: var(--ypads-brand);
  border-color: var(--ypads-brand);
  background: rgba(139, 30, 30, 0.05);
}

.ypads-btn--signup {
  color: #fff;
  background: var(--ypads-brand);
  border: 2px solid var(--ypads-brand);
  box-shadow: 0 2px 8px rgba(139, 30, 30, 0.2);
}

.ypads-btn--signup:hover {
  background: #650a0b;
  border-color: #650a0b;
  box-shadow: 0 4px 12px rgba(139, 30, 30, 0.3);
  transform: translateY(-1px);
}

/* Profile Dropdown */
.ypads-profile-dropdown {
  position: relative;
}

.ypads-profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.ypads-profile-btn:hover {
  background: #333;
  border-color: #333;
  transform: scale(1.05);
}

.ypads-profile-btn:focus-visible {
  outline: 2px solid var(--ypads-ring);
  outline-offset: 2px;
}

.ypads-profile-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.ypads-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px 12px 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 280px;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  overflow: hidden;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.ypads-profile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ypads-profile-menu__header {
  position: relative;
  background: var(--ypads-brand);
  background-image: url('../elements/textured-bg-hc.png');
  background-repeat: repeat;
  background-size: 40px 40px;
  padding: 24px 20px 40px;
  min-height: 120px;
}

.ypads-profile-menu__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
  padding: 0;
  z-index: 10;
}

.ypads-profile-menu__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ypads-profile-menu__close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.ypads-profile-menu__icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.ypads-profile-menu__icon-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--ypads-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ypads-profile-menu__icon-silhouette {
  width: 60px;
  height: 60px;
  color: var(--ypads-brand);
}

.ypads-profile-menu__content {
  padding: 60px 24px 24px;
  background: #fff;
  margin-top: -50px;
  border-radius: 12px 12px 0 0;
  position: relative;
  z-index: 4;
}

.ypads-profile-menu__info {
  text-align: center;
  margin-bottom: 20px;
}

.ypads-profile-menu__fullname {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  font-family: "Montserrat", sans-serif;
}

.ypads-profile-menu__student-number {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
  font-family: "Montserrat", sans-serif;
}

.ypads-profile-menu__year-section {
  font-size: 14px;
  color: #666;
  font-family: "Montserrat", sans-serif;
}

.ypads-profile-menu__roles-btn {
  width: 100%;
  padding: 12px 20px;
  background: #e5e5e5 !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a !important;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  display: block;
  text-align: center;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  outline: none !important;
  position: relative;
  overflow: hidden;
  line-height: 1.5;
}

.ypads-profile-menu__roles-btn:focus,
.ypads-profile-menu__roles-btn:active,
.ypads-profile-menu__roles-btn:visited {
  outline: none !important;
  border: none !important;
  background: #e5e5e5 !important;
  color: #1a1a1a !important;
  text-decoration: none !important;
}

.ypads-profile-menu__roles-btn:hover {
  background: #d0d0d0 !important;
  text-decoration: none !important;
  color: #1a1a1a !important;
}

.ypads-profile-menu__resources {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 20px;
}

.ypads-profile-menu__resources:hover {
  background: #d0d0d0;
}

.ypads-profile-menu__chevron {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  flex-shrink: 0;
}

.ypads-profile-menu__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ypads-profile-menu__logout {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ypads-brand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ypads-profile-menu__logout:hover {
  color: #650a0b;
}

.ypads-profile-menu__logout-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Responsive styles for auth buttons */
@media (max-width: 768px) {
  .ypads-header__auth {
    gap: 8px;
  }
  .ypads-btn {
    padding: 6px 16px;
    font-size: 13px;
  }
  
  /* Profile menu responsive - Tablet */
  .ypads-profile-btn {
    width: 36px;
    height: 36px;
  }
  
  .ypads-profile-icon {
    width: 18px;
    height: 18px;
  }
  
  .ypads-profile-menu {
    min-width: 260px;
    max-width: min(300px, calc(100vw - 32px));
    right: 0;
    left: auto;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-sizing: border-box;
  }
  
  /* Ensure menu doesn't overflow on tablet */
  .ypads-profile-menu {
    right: max(0px, calc(100vw - 300px - 16px));
  }
  
  .ypads-profile-menu__header {
    padding: 20px 16px 36px;
    min-height: 110px;
  }
  
  .ypads-profile-menu__close {
    width: 28px;
    height: 28px;
    top: 12px;
    right: 12px;
  }
  
  .ypads-profile-menu__close svg {
    width: 16px;
    height: 16px;
  }
  
  .ypads-profile-menu__icon-circle {
    width: 90px;
    height: 90px;
    border-width: 5px;
  }
  
  .ypads-profile-menu__icon-silhouette {
    width: 54px;
    height: 54px;
  }
  
  .ypads-profile-menu__content {
    padding: 54px 20px 20px;
    margin-top: -45px;
  }
  
  .ypads-profile-menu__fullname {
    font-size: 18px;
  }
  
  .ypads-profile-menu__student-number,
  .ypads-profile-menu__year-section {
    font-size: 13px;
  }
  
  .ypads-profile-menu__roles-btn {
    padding: 11px 18px;
    font-size: 13px;
  }
  
  .ypads-profile-menu__resources {
    padding: 12px 18px;
    font-size: 13px;
  }
  
  .ypads-profile-menu__chevron {
    width: 18px;
    height: 18px;
  }
  
  .ypads-profile-menu__logout {
    font-size: 13px;
  }
  
  .ypads-profile-menu__logout-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 600px) {
  .ypads-header__auth {
    gap: 6px;
  }
  .ypads-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .ypads-btn--login {
    border-width: 1.5px;
  }
  .ypads-btn--signup {
    border-width: 1.5px;
  }
  
  /* Profile menu responsive - Mobile */
  .ypads-profile-btn {
    width: 32px;
    height: 32px;
  }
  
  .ypads-profile-icon {
    width: 16px;
    height: 16px;
  }
  
  .ypads-profile-menu {
    min-width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-sizing: border-box;
  }
  
  /* Ensure menu doesn't overflow on mobile */
  .ypads-header__right {
    position: relative;
  }
  
  .ypads-profile-dropdown {
    position: static;
  }
  
  .ypads-profile-menu {
    position: fixed;
    top: 80px;
    bottom: auto;
    left: 16px;
    right: 16px;
    width: calc(100vw - 32px);
    max-height: calc(100vh - 100px);
  }
  
  .ypads-profile-menu__header {
    padding: 18px 14px 32px;
    min-height: 100px;
    background-size: 35px 35px;
  }
  
  .ypads-profile-menu__close {
    width: 26px;
    height: 26px;
    top: 10px;
    right: 10px;
  }
  
  .ypads-profile-menu__close svg {
    width: 14px;
    height: 14px;
  }
  
  .ypads-profile-menu__icon-wrapper {
    margin-top: 4px;
  }
  
  .ypads-profile-menu__icon-circle {
    width: 80px;
    height: 80px;
    border-width: 4px;
  }
  
  .ypads-profile-menu__icon-silhouette {
    width: 48px;
    height: 48px;
  }
  
  .ypads-profile-menu__content {
    padding: 48px 18px 18px;
    margin-top: -40px;
  }
  
  .ypads-profile-menu__info {
    margin-bottom: 16px;
  }
  
  .ypads-profile-menu__fullname {
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .ypads-profile-menu__student-number,
  .ypads-profile-menu__year-section {
    font-size: 12px;
    margin-bottom: 3px;
  }
  
  .ypads-profile-menu__roles-btn {
    padding: 10px 16px;
    font-size: 12px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
  }
  
  .ypads-profile-menu__resources {
    padding: 11px 16px;
    font-size: 12px;
    gap: 10px;
    margin-bottom: 16px;
  }
  
  .ypads-profile-menu__chevron {
    width: 16px;
    height: 16px;
  }
  
  .ypads-profile-menu__footer {
    padding-top: 10px;
  }
  
  .ypads-profile-menu__logout {
    font-size: 12px;
    gap: 6px;
    letter-spacing: 0.3px;
  }
  
  .ypads-profile-menu__logout-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 400px) {
  /* Extra small screens */
  .ypads-profile-menu {
    min-width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    right: 12px;
    left: 12px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
}
  
  .ypads-profile-menu__header {
    padding: 16px 12px 28px;
    min-height: 90px;
  }
  
  .ypads-profile-menu__icon-circle {
    width: 70px;
    height: 70px;
    border-width: 3px;
  }
  
  .ypads-profile-menu__icon-silhouette {
    width: 42px;
    height: 42px;
  }
  
  .ypads-profile-menu__content {
    padding: 42px 16px 16px;
    margin-top: -35px;
  }
  
  .ypads-profile-menu__fullname {
    font-size: 15px;
  }
  
  .ypads-profile-menu__student-number,
  .ypads-profile-menu__year-section {
    font-size: 11px;
  }
}

.ypads-profile {
  width: 40px;  /* ~55% */
  height: 40px; /* ~55% */
  border-radius: 9999px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px var(--ypads-shadow);
}
.ypads-profile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ypads-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ypads-nav-toggle:focus-visible { outline: 2px solid var(--ypads-ring); outline-offset: 2px; }
.ypads-hamburger,
.ypads-hamburger::before,
.ypads-hamburger::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.ypads-hamburger::before { transform: translateY(-6px); }
.ypads-hamburger::after { transform: translateY(4px); }

/* Mobile dropdown (overlay, does not shift content) */
.ypads-mobile { display: none; }
.ypads-mobile__inner {
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.ypads-mobile__nav {
  list-style: none;
  padding: 8px 16px 12px;
  margin: 0;
  display: grid;
  gap: 4px;
}
.ypads-mobile__nav a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ypads-text);
  font-size: 14px;
}
.ypads-mobile__nav a:hover { background: rgba(0,0,0,0.035); }

@media (max-width: 920px) {
  .ypads-nav { gap: 28px; }
  .ypads-header__bar {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 768px) {
  .ypads-header__center { display: none; }
  .ypads-nav-toggle { display: inline-flex; }
  .ypads-header__bar {
    height: 72px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .ypads-header__logo {
    width: 48px;
    height: 48px;
  }

  /* dropdown positioning */
  .ypads-header { position: sticky; } /* already sticky, ensure containing block */
  .ypads-mobile {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .ypads-mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 480px) {
  .ypads-header__bar {
    height: 64px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .ypads-header__logo {
    width: 40px;
    height: 40px;
  }
}

/* FOOTER */
.ypads-footer {
  position: relative;
  color: var(--ypads-footer-text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--ypads-footer-bg);
  overflow: hidden;
}
.ypads-footer__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(200px 200px at 95% 35%, rgba(0,0,0,0.15), transparent 60%),
    radial-gradient(140px 140px at 90% 75%, rgba(0,0,0,0.18), transparent 60%),
    radial-gradient(300px 300px at 110% 10%, rgba(255,255,255,0.04), transparent 50%),
    linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.06));
  opacity: 0.9;
  pointer-events: none;
}
.ypads-footer__honeycomb {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  filter: grayscale(100%);
  max-width: 300px; /* limit width on larger screens */
}

@media (max-width: 900px) {
  .ypads-footer__honeycomb {
    max-width: 200px;
    opacity: 0.4;
  }
}

@media (max-width: 600px) {
  .ypads-footer__honeycomb {
    display: none; /* hide on mobile view */
  }
}
.ypads-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 0.7fr 1fr; /* nudge Contact Us closer to Policy */
  gap: 8px; /* compact spacing (~55%) */
  padding: 38px 20px 20px; /* compact vertical padding */
  align-items: start;
  z-index: 2; /* above honeycomb image */
}
.ypads-footer__brand {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ypads-footer__logo {
  width: 100px;  /* ~55% of previous */
  height: 100px; /* ~55% of previous */
  border-radius: 50%;
  background: transparent;
  border: none;
  object-fit: contain;
}
.ypads-footer__brand-text { line-height: 1.3; }
.ypads-footer__title {
  font-size: 35px; /* ~55% */
  font-weight: 700;
  letter-spacing: 0.65rem;
}
.ypads-footer__subtitle {
  color: var(--ypads-footer-text);
  opacity: 0.85;
  font-size: 12px; /* ~55% */
}
.ypads-footer__heading {
  font-size: 22px; /* ~55% */
  font-weight: 700;
  margin-bottom: 14px;
}
.ypads-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px; /* ~55% */
  font-size: 13px; /* ~55% */
  line-height: 1.6;
}
.ypads-footer__list a {
  color: var(--ypads-footer-text);
  text-decoration: none;
}
.ypads-footer__list a:hover { text-decoration: underline; }
.ypads-footer__contacts li {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 14px;
}
.ypads-icon {
  width: 24px;  /* ~55% */
  height: 24px; /* ~55% */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ypads-footer-text);
  border-radius: 0;
  font-size: 12px; /* ~55% */
  box-shadow: none;
}
.ypads-icon i {
  color: inherit;
  font-size: inherit;
}
.ypads-footer__legal {
  position: relative;
  border-top: none;
  padding: 10px 24px 14px; /* compact */
  display: flex;
  align-items: center;
  justify-content: center; /* center the copyright */
  color: var(--ypads-footer-muted);
  font-size: 10px; /* ~55% */
  z-index: 2; /* above honeycomb image */
}

/* Footer responsive adjustments */
@media (max-width: 1000px) {
  .ypads-footer .ypads-container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .ypads-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 20px 18px;
  }
  .ypads-footer__brand {
    grid-column: 1 / -1; /* span full width */
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .ypads-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 20px 16px;
  }
  .ypads-footer__brand { 
    justify-content: flex-start; 
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .ypads-footer__logo {
    width: 80px;
    height: 80px;
  }
  .ypads-footer__title {
    font-size: 28px;
  }
  .ypads-footer__heading {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .ypads-footer .ypads-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ypads-footer__grid {
    padding: 24px 16px 14px;
    gap: 18px;
  }
  .ypads-footer__logo {
    width: 70px;
    height: 70px;
  }
  .ypads-footer__title {
    font-size: 24px;
    letter-spacing: 0.4rem;
  }
  .ypads-footer__subtitle {
    font-size: 11px;
  }
  .ypads-footer__heading {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .ypads-footer__list {
    font-size: 12px;
    gap: 8px;
  }
  .ypads-footer__legal {
    padding: 8px 16px 12px;
    font-size: 9px;
  }
  .ypads-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

/* HERO SECTION */
.ypads-hero {
  background-image: linear-gradient(red, blue);
  position: relative;
  overflow: hidden;
}

/* Hero text layout and styling to match provided image */
.ypads-hero-content {
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translateY(-50%); /* vertically center the block */
  z-index: 3; /* above the overlay */
  color: #ffffff;
  max-width: 58%;
}
.ypads-hero-content .ypads-hero-eyebrow {
  margin: 0 0 8px 0;
  font-size: 18px;
  opacity: 0.95;
  font-family: "Bricolage Grotesque", sans-serif;
}
.ypads-hero-content .ypads-hero-title {
  margin: 0 0 12px 0;
  font-size: 96px;
  line-height: 0.95;
  font-weight: 700;
  font-family: "Bricolage Grotesque";
  letter-spacing: -2px;
}

.ypads-hero-content .ypads-hero-sub {
  margin: 0;
  font-size: 14px;
  font-family: "Bricolage Grotesque";
  max-width: 80%;
  opacity: 0.95;
}

.ypads-hero-images {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* Make each row share available container height equally */
  grid-auto-rows: 1fr;
  /* Set container height to viewport height minus header (adjust --header-height as needed) */
  height: calc(100vh - var(--header-height, 120px));
  position: relative; /* enable a grid-wide overlay pseudo-element */
}
.ypads-hero-image-box {
  overflow: hidden; /* prevent images from overflowing their box */
  display: block;
  position: relative; /* enable absolute positioning of pseudo-element */
}
/* Remove per-image overlays; use a single overlay on the whole grid instead. */

/* Grid-wide overlay that covers all images */
.ypads-hero-images::before {
  content: '';
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  /* Left-to-right red fade matching the hero section */
  /* Stronger/darker red on the left and extended solid area before fading */
  /* Red shade extends all the way to the last banner */
  background: linear-gradient(90deg,
    rgba(139, 0, 0, 0.95) 0%,      /* very dark red, fully covering far-left */
    rgba(178, 34, 34, 0.95) 30%,   /* maintain solid crimson further across */
    rgba(220, 20, 60, 0.75) 55%,   /* transition toward lighter crimson */
    rgba(220, 20, 60, 0.6) 70%,
    rgba(220, 20, 60, 0.45) 80%,
    rgba(220, 20, 60, 0.3) 90%,
    rgba(220, 20, 60, 0.15) 100%);
  pointer-events: none; /* allow clicks to pass through */
  z-index: 2; /* sit above images */
}
.ypads-hero .ypads-hero-images .ypads-hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative; /* ensure images sit below the overlay */
  z-index: 1;
}

/* Hide banner16 by default (desktop view) */
.ypads-hero-images .ypads-hero-image-box:nth-child(16) {
  display: none;
}

/* Responsive adjustments: reduce columns on narrower screens so images remain legible */
@media (max-width: 1200px) {
  .ypads-hero-images { grid-template-columns: repeat(4, 1fr); }
  /* Show banner16 when zoomed or on tablet/mobile */
  .ypads-hero-images .ypads-hero-image-box:nth-child(16) {
    display: block;
  }
}
@media (max-width: 900px) {
  .ypads-hero-images { 
    grid-template-columns: repeat(3, 1fr); 
    height: calc(100vh - var(--header-height, 100px)); 
    min-height: 500px;
  }
}
@media (max-width: 600px) {
  .ypads-hero-images { 
    grid-template-columns: repeat(2, 1fr); 
    height: calc(100vh - var(--header-height, 88px)); 
    min-height: 400px;
  }
}
@media (max-width: 480px) {
  .ypads-hero-images { 
    grid-template-columns: repeat(2, 1fr); 
    height: auto;
    min-height: 350px;
    max-height: 60vh;
  }
}

/* Responsive scaling so the hero title fits like the reference image */
@media (max-width: 1400px) {
  .ypads-hero-content .ypads-hero-title { font-size: 72px; }
}
@media (max-width: 1200px) {
  .ypads-hero-content { left: 60px; max-width: 65%; }
  .ypads-hero-content .ypads-hero-title { font-size: 56px; }
  .ypads-hero-content .ypads-hero-eyebrow { font-size: 16px; }
  .ypads-hero-content .ypads-hero-sub { font-size: 13px; }
}
@media (max-width: 1000px) {
  .ypads-hero-content { left: 40px; max-width: 75%; }
  .ypads-hero-content .ypads-hero-title { font-size: 48px; }
  .ypads-hero-content .ypads-hero-eyebrow { font-size: 15px; }
  .ypads-hero-content .ypads-hero-sub { font-size: 12px; max-width: 90%; }
} 
@media (max-width: 768px) {
  .ypads-hero-content { left: 24px; max-width: 85%; top: 45%; }
  .ypads-hero-content .ypads-hero-title { font-size: 36px; line-height: 1.1; }
  .ypads-hero-content .ypads-hero-eyebrow { font-size: 14px; margin-bottom: 6px; }
  .ypads-hero-content .ypads-hero-sub { font-size: 11px; max-width: 95%; }
}
@media (max-width: 600px) {
  .ypads-hero-content { left: 20px; max-width: 90%; top: 40%; }
  .ypads-hero-content .ypads-hero-title { font-size: 28px; line-height: 1.1; }
  .ypads-hero-content .ypads-hero-eyebrow { font-size: 13px; margin-bottom: 4px; }
  .ypads-hero-content .ypads-hero-sub { font-size: 10px; max-width: 100%; }
}
@media (max-width: 480px) {
  .ypads-hero-content { left: 16px; max-width: 92%; top: 35%; }
  .ypads-hero-content .ypads-hero-title { font-size: 24px; line-height: 1.15; }
  .ypads-hero-content .ypads-hero-eyebrow { font-size: 12px; margin-bottom: 4px; }
  .ypads-hero-content .ypads-hero-sub { font-size: 9px; }
}
@media (max-width: 360px) {
  .ypads-hero-content { left: 12px; max-width: 95%; top: 30%; }
  .ypads-hero-content .ypads-hero-title { font-size: 20px; line-height: 1.2; }
  .ypads-hero-content .ypads-hero-eyebrow { font-size: 11px; }
  .ypads-hero-content .ypads-hero-sub { font-size: 8px; }
}

/* HALL OF FAME SECTION */