*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}


/*--------------------------------------------------
COLOURS
--------------------------------------------------*/

        body { background: var(--papergrad); color: var(--navy); }

        :root {
            --offwhite: #f1e9da;
            --offwhite2:#9d988f;
            --offwhitemuted:#a77c2e;
            --navy: #123544;
            --softnavy: #687082;
            --yellow: #faaa14;
            --orange: #e75d1d;
            --indigo: #171427;
            --pink: #d80367;
            --charcoal: #585551;
            --antachrite: #1e1e1e;
            --sunsetgrad: linear-gradient(0deg, var(--orange) 0%, var(--yellow) 60%, var(--yellow) 100%);
            --papergrad: linear-gradient(120deg, #e8e3d0 0%, #e2dcc6 40%, #cab997 100%);
            --parchmentgrad: linear-gradient(120deg, hwb(35 72% 2%) 0%, #e0b578 70%, #ce9f67 100%);
            --Oceangrad: radial-gradient(circle, #01424a 0%,#011d29 100%);
            --Parchgrad: radial-gradient(circle, #e8e3d0 0%,#e3d3b5 100%);
        }


          /* Utility to use site offwhite variable like Bootstrap bg-* classes */
          .bg-offwhite {
            background-color: var(--offwhite) !important;
          }

/*--------------------------------------------------
COLOURS END
--------------------------------------------------*/

/*--------------------------------------------------
SWATCHES
--------------------------------------------------*/
       
        /* Swatch Styling */
        .swatch {
            height: 100px;
            border-radius: 4px;
            margin-bottom: 8px;
            border: 1px solid rgba(0,0,0,0.15);
        }

/*--------------------------------------------------
SWATCHES END
--------------------------------------------------*/

/*--------------------------------------------------
SPARKLES
--------------------------------------------------*/

.sparkle {
  -webkit-tap-highlight-color: transparent; /* mobile Safari */
  box-shadow: none;                          /* ensures no default shadow */
  position: fixed;
  width: 14px;
  height: 14px;
  pointer-events: none;       /* already prevents interaction */
  outline: 0 !important;             /* removes focus outline */
  border: 0;               /* removes any border */
  user-select: none;
  box-shadow: none;  opacity: 0;
  transform: translate(-50%, -50%) scale(1);

  /* star shape */
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%,
    68% 57%, 79% 91%, 50% 70%,
    21% 91%, 32% 57%, 2% 35%,
    39% 35%
  );

  z-index: 9999;
}
/*--------------------------------------------------
SPARKLES END
--------------------------------------------------*/



/*--------------------------------------------------
NAV BAR AND BUTTONS
--------------------------------------------------*/

.site-navbar {
  background-color: var(--offwhite);
}

.site-navbar,
.site-subnav {
  padding-top: 0;
  padding-bottom: 5;
}

.site-navbar .navbar-brand,
.site-subnav .navbar-brand {
  padding: 0.5rem 0.5rem;
  border-radius: 0 0 8px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.site-navbar .navbar-brand {
  background: var(--Oceangrad);
}

.site-navbar .nav-link,
.site-navbar .dropdown-item,
.site-navbar .navbar-toggler {
  color: var(--navy);
}

.site-navbar .nav-link.active {
  color: var(--navy);
}

.nav-link, .dropdown-item {
  font-family: "Bungee", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  transition: color 0.3s ease-in;
}


.nav-link:hover, .dropdown-item:hover {
  color: var(--orange);
}

.site-navbar .dropdown-menu {
  background-color: var(--offwhite);
  border: 1px solid rgba(18, 53, 68, 0.12);
}

.site-navbar .dropdown-item {
  color: var(--navy);
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
  color: var(--navy);
  background-color: rgba(18, 53, 68, 0.08);
}

.site-navbar .navbar-toggler {
  background-color: var(--navy);
  border-color: var(--offwhite);
}

.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f1e9da' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-subnav {
  background-color: var(--navy);
}

.site-subnav .nav-link,
.site-subnav .dropdown-item,
.site-subnav .navbar-brand,
.site-subnav .navbar-toggler {
  color: var(--offwhite);
}

.site-subnav .nav-link.active {
  color: var(--offwhite);
}

.site-subnav .nav-link:hover,
.site-subnav .dropdown-item:hover {
  color: var(--yellow);
}

.site-subnav .dropdown-menu {
  background-color: var(--navy);
  border: 1px solid rgba(241, 233, 218, 0.15);
}

.site-subnav .dropdown-item {
  color: var(--offwhite);
}

.site-subnav .dropdown-item:hover,
.site-subnav .dropdown-item:focus {
  color: var(--offwhite);
  background-color: rgba(241, 233, 218, 0.08);
}

.site-subnav .navbar-brand {
  background: var(--Parchgrad);
  color: var(--navy);
}

.site-subnav .navbar-toggler {
  background-color: var(--offwhite);
  border-color: var(--navy);
}

.site-subnav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23123544' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 992px) {
  .site-navbar .dropdown:hover > .dropdown-menu,
  .site-navbar .dropdown:focus-within > .dropdown-menu,
  .site-subnav .dropdown:hover > .dropdown-menu,
  .site-subnav .dropdown:focus-within > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

footer .border-top p {
  font-size: 0.8rem;
}


/*--------------------------------------------------
NAV BUTTONS END
--------------------------------------------------*/




/*--------------------------------------------------
  NAV & FOOTER LINK HOVER ANIMATION
--------------------------------------------------*/

/* Base style for page and footer links (animated underline on hover) */

main a {
  font-family: Bungee;
  font-size: 1rem;
  position: relative;
  display: inline-block;
  color: var(--offwhite) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a {
  font-family: Bungee;
  font-size: 0.8rem;
  position: relative;
  display: inline-block;
  color: var(--offwhite) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.custom-link {
  font-family: Bungee;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
  color: var(--orange) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}


footer h4, footer h5, footer h6 {
  color: var(--offwhitemuted) !important;
}

footer li, footer p {
  color: var(--offwhitemuted) !important;
}

/* Underline (hidden by default) */
main a::after,
footer a::after,
.custom-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0%;
  background-color: var(--orange);
  transition: width 0.3s ease;
}

/* On hover — underline grows */
main a:hover::after,
footer a:hover::after,
.custom-link:hover::after {
  width: 100%;
}

/* Optional: subtle color shift on hover */
main a:hover,
footer a:hover,
.custom-link:hover {
  color: var(--orange);
}

/* Suppress underline for footer links with no-underline class */
footer a.no-underline::after {
  display: none !important;
  width: 0 !important;
}

footer a.no-underline:hover::after {
  width: 0 !important;
}

footer a.no-underline:hover {
  color: inherit !important;
}


/*--------------------------------------------------
  NAV & FOOTER LINK HOVER ANIMATION END
--------------------------------------------------*/



/*--------------------------------------------------
FONTS
--------------------------------------------------*/

.bungee-regular {
  font-family: "Bungee", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* <weight>: Use a value from 100 to 700
<uniquifier>: Use a unique and descriptive class name */

.nunito-body {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}



.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-family: "Bungee", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.h1, h1 {
  font-size: 4rem;
}

.h2, h2 {
  font-size: 3rem;
}

.h3, h3 {
  font-size: 2.5rem;
}

.h4, h4 {
  font-size: 2rem;
  font-weight: 100;
}

.h5, h5 {
  font-size: 1.5rem;
  font-weight: 100;
}

.h6, h6 {
  font-size: 1.25rem;
  font-weight: 100;
}

.p, p {
  font-family: "Nunito", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1.25rem;
}  

.small, small {
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.subheading {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--orange);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.5rem;
}


p.lead {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--softnavy);

}

/*--------------------------------------------------
FONTS END
--------------------------------------------------*/



/*--------------------------------------------------
CUSTOM 3D BUTTON STYLE
--------------------------------------------------*/
button.button-10,
a.button-10 {
  touch-action: manipulation;
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  font-size: inherit;
  font-family: "Bungee", sans-serif;
  font-weight: 600;
  color: #ff8e2c;
  text-align: center;
  text-transform: uppercase;
  padding: 1.25em 2em;
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 0.75em;
  transform-style: preserve-3d;
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1);
}

button.button-10::before,
a.button-10::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--indigo);
  border-radius: inherit;
  box-shadow: 0 0 0 2px #312948, 0 0.625em 0 0 #2421528f;
  transform: translate3d(0, 0.75em, -1em);
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
}

button.button-10:hover,
a.button-10:hover {
  background: #526391;
  transform: translate(0, 0.25em);
}

button.button-10:hover::before,
a.button-10:hover::before {
  box-shadow: 0 0 0 2px #312948, 0 0.5em 0 0 #2421528f;
  transform: translate3d(0, 0.5em, -1em);
}

button.button-10:active,
a.button-10:active {
  background: #526391;
  transform: translate(0em, 0.75em);
}

button.button-10:active::before,
a.button-10:active::before {
  box-shadow: 0 0 0 2px #312948, 0 0 #2421528f;
  transform: translate3d(0, 0, -1em);
}

button.button-10:disabled,
button.button-10.disabled {
  background: #7e7e7e;        /* Greyed out face */
  color: #cfcfcf;             /* Muted text */
  border-color: #828282;      /* Muted border */
  cursor: default;
  pointer-events: none;       /* Stops hover/active transforms */
}

/*--------------------------------------------------
CUSTOM 3D BUTTON STYLE END
--------------------------------------------------*/

/*--------------------------------------------------
CUSTOM 3D BUTTON STYLE 02
--------------------------------------------------*/
button.button-02,
a.button-02 {
  touch-action: manipulation;
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  font-size: inherit;
  font-family: "Bungee", sans-serif;
  font-weight: 600;
  color: #343d55;
  text-align: center;
  text-transform: uppercase;
  padding: 1.25em 2em;
  background: #ff8e2c;
  border: 2px solid #753803;
  border-radius: 0.75em;
  transform-style: preserve-3d;
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1);
}

button.button-02::before,
a.button-02::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #b45618;
  border-radius: inherit;
  box-shadow: 0 0 0 2px #000000, 0 0.625em 0 0 #0000008f;
  transform: translate3d(0, 0.75em, -1em);
  transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
}

button.button-02:hover,
a.button-02:hover {
  background: #ff9d48;
  transform: translate(0, 0.25em);
}

button.button-02:hover::before,
a.button-02:hover::before {
  box-shadow: 0 0 0 2px #000, 0 0.5em 0 0 #000;
  transform: translate3d(0, 0.5em, -1em);
}

button.button-02:active,
a.button-02:active {
  background: #ff9d48;
  transform: translate(0em, 0.75em);
}

button.button-02:active::before,
a.button-02:active::before {
  box-shadow: 0 0 0 2px #ff9d48, 0 0 #ff9d48;
  transform: translate3d(0, 0, -1em);
}

button.button-02:disabled,
button.button-02.disabled {
  background: #7e7e7e;        /* Greyed out face */
  color: #cfcfcf;             /* Muted text */
  border-color: #828282;      /* Muted border */
  cursor: default;
  pointer-events: none;       /* Stops hover/active transforms */
}

/*--------------------------------------------------
CUSTOM 3D BUTTON SECONDARY STYLE END
--------------------------------------------------*/



/*--------------------------------------------------
PARCHMENT BORDER STYLE
--------------------------------------------------*/
.parchment-card {
  /* Set your base colors and text */
  color: var(--navy);
  padding: 30px; /* Essential to keep text away from the notches */
  
  /* The Border Image Magic */
  border: 30px solid transparent; /* Creates the space for the parchment edges */
  border-image-source: url('assets/Parchment.svg');
  
  /* Slice defines how many pixels from the edge to 'protect' from stretching */
  /* You may need to tweak these numbers based on the actual PNG resolution */
  border-image-slice: 30 fill; 
  border-image-repeat: stretch; 
  
  /* Make centre transparent so border-image 'fill' shows through
     (Bootstrap .card sets a white background otherwise) */
  background-color: transparent;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;

  display: flex;
  flex-direction: column;
  gap: 15px;
}



/*--------------------------------------------------
PARCHMENT BORDER STYLE END
--------------------------------------------------*/

/*--------------------------------------------------
PARCHMENT 02 BORDER STYLE
--------------------------------------------------*/
.parchment-card2 {
  /* Set your base colors and text */
  color: var(--offwhite);
  
  padding: 30px; /* Essential to keep text away from the notches */
  
  /* The Border Image Magic */
  border: 30px solid transparent; /* Creates the space for the parchment edges */
  border-image-source: url('assets/Parchment2.svg');
  
  /* Slice defines how many pixels from the edge to 'protect' from stretching */
  /* You may need to tweak these numbers based on the actual PNG resolution */
  border-image-slice: 30 fill; 
  border-image-repeat: stretch; 
  
  /* Make centre transparent so border-image 'fill' shows through
     (Bootstrap .card sets a white background otherwise) */
  background-color: transparent;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;

  display: flex;
  flex-direction: column;
  gap: 15px;
}



/*--------------------------------------------------
PARCHMENT BORDER STYLE END
--------------------------------------------------*/


.card-img {
    height: 230px;
    width: auto;
    object-fit: cover;
}

.card-img2 {
    height: 150px;
    width: auto;
    object-fit: cover;
}

footer {
  background-size: cover;
}

.footer-logo-crop {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}



footer p.border-top {
  border-top-color: var(--offwhitemuted) !important;
}

/*--------------------------------------------------
INDEX PAGE PROMO CARDS
--------------------------------------------------*/
/* Overall card */
.promo-card {
  width: 100%;
  max-width: 410px;        /* Controls how wide the card is */
  background: var(--yellow);
  border-radius: 16px;
  box-shadow: 0px 0px 20px var(--yellow);
  padding: 15px;
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;   /* Add space below the card */
  box-sizing: border-box;
  }

  @media (max-width: 576px) {
    .promo-card {
      padding: 12px 6px;
    }
    .promo-description, .promo-description-small {
      padding: 8px 2px;
      font-size: 0.95rem;
      word-break: break-word;
    }
  }


/* Top row: image left, title right */
.promo-header {
  display: flex;
  align-items: center;     /* Aligns title vertically with image midpoint */
  gap: 0px;
  margin-bottom: 10px;
  }

  @media (max-width: 576px) {
    .promo-header {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }
    .promo-img {
      margin-left: auto;
      margin-right: auto;
      display: block;
    }
  }


/* Image control */
.promo-img {
  width: 170px;            /* Adjust size freely */
  height: 170px;
  object-fit: contain;
}

/* Title */
.promo-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
}

.volunteer-title {
  font-size: 2.5rem;
}

.volunteer-cta { /* Aligns the button with the title on desktop, but centers on mobile */
  display: inline-block;
}

@media (max-width: 576px) {
  .volunteer-title {
    font-size: 2rem;
    font-weight: 100;
  }

  .volunteer-cta {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Middle text */
.promo-description {
  text-align: left;
  margin: 0 auto;
  font-size: 1rem;
  padding: 10px 5px;      /* Controls vertical centering feel */
  display: flex;
  align-items: center;     /* Centers text vertically in this region */
}

.promo-description-small {
  text-align: center;
  margin: 0 auto;
  font-size: 0.85rem;
  padding: 10px 7px;      /* Controls vertical centering feel */
  flex-grow: 1;            /* Pushes button downward */
  display: flex;
  align-items: center;     /* Centers text vertically in this region */
}



/* Ensure the call-to-action button doesn't stretch to full width in flex column layout */
.promo-card a.button-10 {
  align-self: center;
  text-align: center;
}

.promo-mid-image {
  padding-left: 1rem;
  padding-right: 1rem;
  flex: 0 0 auto;
}

@media (min-width: 992px) {
  .promo-mid-image {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}


/*--------------------------------------------------
INDEX PAGE PROMO CARDS END
--------------------------------------------------*/

/*--------------------------------------------------
DISCORD ICON SIZING
--------------------------------------------------*/

/* Control Discord icon sizing to avoid overlap and keep responsive */
.btn-discord {
  max-width: 90px; /* desktop max */
  width: auto;
  height: auto;
}

@media (max-width: 576px) {
  .btn-discord { max-width: 80px;
  padding-top: 30px; }
}

@media (min-width: 992px) {
  .btn-discord { max-width: 90px; }
}

/*--------------------------------------------------
DISCORD ICON SIZING END
--------------------------------------------------*/


/*--------------------------------------------------
FOOTER ICON SIZING
--------------------------------------------------*/

.btn-footericon {
  width: auto;
  height: auto;
  max-height: 90px;
  max-width: 140px;
}

/* Mobile */
@media (max-width: 576px) {
  .btn-footericon {
    max-height: 80px;
    max-width: 120px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1399px) {
  .btn-footericon {
    max-height: 80px;
    max-width: 120px;
  }
}

/*--------------------------------------------------
FOOTER ICON SIZING END
--------------------------------------------------*/



/*--------------------------------------------------
ABOUT PAGE IMAGE ADJUSTMENTS
--------------------------------------------------*/

.about-hero-section {
  overflow: hidden;
}

.about-hero-row {
  min-height: 720px;
}

.about-hero-media-col {
  align-self: stretch;
}

.about-hero-copy-col {
  display: flex;
  align-items: center;
}

.about-hero-media-frame {
  position: relative;
  height: 800px;
  overflow: hidden;
}

.about-hero-image {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% + 96px);
  object-fit: cover;
  object-position: left bottom;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.about-hero-copy {
  max-width: 44rem;
  margin: 0 auto;
}

.team-img {
  border-radius: 1rem 1rem 0 0; /* Round top corners only to match card */
}

.team-card {
  background-color: var(--navy);
  color: var(--offwhite);
  box-shadow: -8px 8px 3px 0 rgba(0, 0, 0, 0.45) !important;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

/* Smaller horizontal gap between team cards */
.team-grid {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
  /* Keep at most 3 cards per row by limiting total row width.
     This keeps Bootstrap's row-cols-lg-3 behavior but avoids extra columns when the container is very wide. */
  max-width: calc(3 * 320px + 2 * 0.25rem);
  margin-left: auto;
  margin-right: auto;
}

.team-grid-spirit {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
  /* Limit to 2 cards per row; keeps spacing consistent with team-grid */
  max-width: calc(2 * 320px + 1 * 0.25rem);
  margin-left: auto;
  margin-right: auto;
}

.team-card-2 {
  background-color: var(--offwhite);
  color: var(--navy);
  box-shadow: -8px 8px 3px 0 rgba(0, 0, 0, 0.45) !important;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

.card-title {
  color: var(--orange);
}

.card-text {
  color: var(--yellow);
}

.card-alt-text {
  color: var(--navy);
}

.img-goblinattack {
  max-height: 800px; /* desktop max */
  width: auto;
  height: 800px;
}

@media (max-width: 576px) {
  .img-goblinattack { max-width: auto; height: 400;}

  .about-hero-copy {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .about-hero-row {
    flex-wrap: nowrap;
  }

  .img-goblinattack { max-height: 800px; }

  .about-hero-media-col {
    flex: 0 0 42%;
    max-width: 42%;
  }

  .about-hero-copy-col {
    flex: 0 0 58%;
    max-width: 58%;
  }

  .about-hero-copy {
    max-width: 48rem;
    padding-left: 3rem !important;
    padding-right: 4rem !important;
  }
}

@media (max-width: 991.98px) {
  .about-hero-image {
    height: 100%;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-image {
    transform: none !important;
  }
}

@media (max-width: 991.98px) {
  .about-hero-row {
    min-height: auto;
  }

  .about-hero-media-frame {
    height: auto;
  }

  .about-hero-copy {
    max-width: 100%;
  }
}

/*--------------------------------------------------
ABOUT PAGE IMAGE ADJUSTMENTS END
--------------------------------------------------*/

/*--------------------------------------------------
BACKGROUND GRADIENTS AND EDGE STYLES
--------------------------------------------------*/
.bg-gradient-navy {
  background-image: var(--Oceangrad) !important;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
}

.bg-gradient-offwhite {
  background-image: var(--offwhite) !important;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
}

.masthead-logo {
  display: block;
  width: 100%;
  max-width: 52rem;
  height: auto;
  margin: 0 auto 3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 576px) {
  .masthead-logo {
    width: 92%;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/*--------------------------------------------------
BACKGROUND GRADIENTS AND EDGE STYLES END
--------------------------------------------------*/


/*---------HOMEPAGE SECTION STYLING------------------*/
/*---------------------------------------------------*/

section#volunteer {
  background-image: url("assets/BG_Giant_Killers.avif");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
}

@media (max-width: 576px) {
  section#volunteer {
    background-image: none;
    background-color: var(--navy);
  }
}



/*---------TTRPG PAGE SECTION STYLING------------------*/
/*---------------------------------------------------*/

section#acbhero {
  background-image: url("assets/BG_Mountain.avif");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;
}


/*------------------------------*/

section#tgkhhero {
  background-image: url("assets/BG_Swamp.avif");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;
}

/*------------------------------*/

section#ppphero {
  background-color: #604f2b;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;
}

/*------------------------------*/


/*------------------------------------------------------*/
/*----------CUSTOM MODAL, FULLSCREEN & CURSOR----------*/
/*------------------------------------------------------*/

/* Base modal appearance */
.modal-content {
  background-color: #000;
  overflow: hidden;
  border: none;
  border-radius: 0.5rem;
  padding: 0;
  display: block;
  position: relative; /* needed for header positioning */
}

/* Modal header stays at top */
.modal-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  z-index: 1057;
  padding: 0.5rem 1rem;
}

/* Default image inside modal */
.modal-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  margin: 5rem auto 1rem; /* space for header, small bottom margin */
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Fullscreen mode */
.modal.fullscreen .modal-dialog {
  width: 100%;
  height: 100vh;
  margin: 0;
  max-width: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.fullscreen .modal-content {
  height: 100vh;
  width: 100%;
  border-radius: 0;
  padding: 0;
  display: block;
  position: relative;
}

.modal.fullscreen .modal-img {
  max-height: calc(100vh - 2rem); /* small top margin for header */
  width: auto;
  object-fit: contain;
  margin: 3rem auto 1rem; /* top margin for header, bottom margin avoids cropping */
}

/*------------------------------------------------------*/
/* Carousel controls — fixed near edges, don’t jump */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1056;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: scale(1.1);
}

.carousel-control-prev {
  left: 0 !important;
}

.carousel-control-next {
  right: 0 !important;
}

/* Prevent Bootstrap resizing jumps */
.modal.show .carousel-control-prev,
.modal.show .carousel-control-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}

/* Buttons and icons inside modal */
#fullscreenToggle {
  z-index: 1057;
}

.modal-header .btn-close {
  z-index: 1057;
}

/*------------------------------------------------------*/
/* Global Custom Cursor + Pointer ----------------------*/

/* Default site cursor */
body,
html {
  cursor: url('assets/Icon_cursor.svg'), auto;
}

/* Pointer for clickable elements */
a:hover,
button:hover,
.modal button:hover,
.modal .carousel-control-prev:hover,
.modal .carousel-control-next:hover,
#portfolio button:hover,
#portfolio [data-bs-toggle="modal"]:hover {
  cursor: url('assets/Icon_pointer.svg'), pointer;
}

/* Ensure modals don’t block hover detection */
.modal *,
.carousel *,
.carousel-item * {
  pointer-events: auto !important;
}

/*------------------------------------------------------*/
/* Custom cursors inside fullscreen modal */
#fullscreenModal,
#fullscreenModal .modal-content,
#fullscreenModal .carousel-item img {
  cursor: url('assets/Icon_cursor.svg'), auto !important;
}

/*------------------------------------------------------*/
/* Page thumbnails custom cursors */
#portfolio,
#portfolio img {
  cursor: url('assets/Icon_cursor.svg'), auto;
}

#portfolio button,
#portfolio button img,
#portfolio [data-bs-toggle="modal"] {
  cursor: url('assets/Icon_pointer.svg'), pointer;
}

/* Make spread thumbnails show pointer cursor before modal opens */
#acb button:hover,
#acb button img:hover,
#acb .zoom-hover:hover {
  cursor: url('assets/Icon_pointer.svg'), pointer;
}

/*------------------------------------------------------*/
/* Right-edge cursor fix */
.page-section,
.page-section * {
  cursor: url('assets/Icon_cursor.svg'), auto;
}

.page-section button,
.page-section [data-bs-toggle="modal"],
.page-section a {
  cursor: url('assets/Icon_pointer.svg'), pointer;
}

.card-wrap a,
.card-wrap a * {
  cursor: url('assets/Icon_pointer.svg'), pointer !important;
}


/* Special: prevent pointer on non-interactive image areas inside modal */
#fullscreenModal .carousel-item img {
  cursor: url('assets/Icon_cursor.svg'), auto !important;
}



/* TTRPGS BOOK CARDS ON HOVER EFFECT */



 .floating-card {
  transition: transform 0.35s ease, filter 0.35s ease;
}

.card-wrap:hover .floating-card {
  transform: scale(1.06) translateY(-6px);
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.25));
} 

