:root {
  --navy: #101c35;
  --blue: #286ee8;
  --black: #15171c;
  --white: #ffffff;
  --light: #f2f5fa;
  --muted: #b7c2d4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  background: var(--navy);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 7%;
  gap: 24px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo span {
  color: var(--blue);
}


.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #8bb5ff;
}

.nav-donate {
  background: var(--blue);
  padding: 9px 15px;
  border-radius: 7px;
}

.menu-toggle {
  display: none;
}

.hero {
  background:
    radial-gradient(ellipse at 85% 20%, #254d8d 0%, transparent 45%),
    linear-gradient(135deg, var(--navy), var(--black));
  color: var(--white);
  padding: 125px 8%;
  min-height: 570px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.hero .eyebrow {
  color: #8bb5ff;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.08;
  max-width: 850px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.hero-copy {
  font-size: 1.15rem;
  max-width: 600px;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-block;
  border: 0;
  border-radius: 7px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: var(--blue);
  color: var(--white);
}

.primary:hover {
  background: #1756c5;
}

.secondary {
  border: 1px solid #8291aa;
  color: var(--white);
}

.location {
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 90px 9%;
}

.section > p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 18px;
}

.dark-section {
  background: var(--navy);
  color: var(--white);
}

.event-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.event-card {
  border: 1px solid #35445e;
  border-radius: 12px;
  padding: 28px;
  background: #192844;
}

.event-card a {
  display: inline-block;
  color: #8bb5ff;
  margin-top: 18px;
  font-weight: 700;
}

.gallery-placeholder {
  background: var(--light);
  border: 2px dashed #aab8ce;
  padding: 60px 20px;
  margin-top: 30px;
  text-align: center;
  border-radius: 12px;
}

.gallery-placeholder p + p {
  color: #586579;
  margin-top: 8px;
}

.donation-section {
  background: var(--light);
}

.notice {
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  background: var(--white);
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
  margin-top: 28px;
}

.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #c4ccda;
  border-radius: 7px;
  font: inherit;
  margin-bottom: 12px;
}

.contact-section textarea {
  resize: vertical;
}

.contact-section form button {
  align-self: flex-start;
}

#form-message {
  margin-top: 10px;
}

footer {
  background: var(--black);
  color: var(--white);
  padding: 38px 8%;
}

footer p {
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 800px) {
  .navbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    background: transparent;
    border: 1px solid #52627c;
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    width: 100%;
    padding: 12px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 85px 7%;
    min-height: 500px;
  }

  .section {
    padding: 65px 7%;
  }
}
/* ITZ JUST UZ Photo Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.gallery-item {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.gallery-item h3 {
  color: #102a56;
  font-size: 18px;
  margin: 18px 16px 8px;
}

.gallery-item p {
  color: #555555;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 16px 20px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 260px;
  }
}
/* ITZ JUST UZ Events and Flyers */
.events-section {
  padding: 60px 0;
}

.section-heading {
  max-width: 750px;
  margin: 0 auto 35px;
  text-align: center;
}

.section-heading h2 {
  color: #102a56;
  font-size: 32px;
  margin: 10px 0;
}

.section-heading > p:last-child {
  color: #555;
  line-height: 1.7;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.event-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);
}

.event-flyer {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f2f4f8;
}

.event-card-content {
  padding: 20px;
}

.event-type {
  color: #2458a6;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
}

.event-card h3 {
  color: #102a56;
  margin: 10px 0;
}

.event-card-content > p:last-child {
  color: #555;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}
/* Click-to-enlarge gallery photos */
.gallery-item img {
  cursor: zoom-in;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px 20px;
}

.gallery-lightbox img {
  max-width: 95%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-out;
}

.gallery-lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  background: transparent;
  border: none;
  font-size: 42px;
  cursor: pointer;
}
/* LEADERSHIP SECTION */
.leadership-section {
  padding: 70px 20px;
  background: #080808;
  color: #ffffff;
}

.leadership-section .section-heading {
  max-width: 750px;
  margin: 0 auto 40px;
  text-align: center;
}

.leadership-section .eyebrow {
  color: #3987ff;
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 12px;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.leader-card {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-5px);
  border-color: #3987ff;
}

.leader-card img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}

.leader-info {
  padding: 22px 18px;
}

.leader-role {
  color: #3987ff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.leader-info h3 {
  color: #ffffff;
  font-size: 23px;
  margin: 0 0 12px;
}

.leader-info p:last-child {
  color: #c5c5c5;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* TABLETS AND PHONES */
@media (max-width: 850px) {
  .leadership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 550px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .leader-card img {
    height: 320px;
  }

  .leadership-section {
    padding: 50px 16px;
  }
}
/* EVENT GALLERY CATEGORY BUTTONS */
.event-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 35px auto;
}

.event-group-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 28px;
  background: #141414;
  color: #ffffff;
  border: 1px solid #3987ff;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.event-group-button:hover {
  background: #202c40;
  transform: translateY(-3px);
}

.event-group-arrow {
  color: #3987ff;
  font-size: 28px;
}

/* EVENT GALLERY POPUP */
.event-gallery-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 20px;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.event-gallery-popup.is-open {
  display: flex;
}

.event-gallery-content {
  position: relative;
  width: 100%;
  max-width: 750px;
  max-height: 95vh;
  overflow-y: auto;
  padding: 30px;
  background: #101010;
  color: #ffffff;
  border: 1px solid #3987ff;
  border-radius: 14px;
  text-align: center;
}

.event-gallery-content h3 {
  color: #3987ff;
  font-size: 26px;
  margin: 10px 35px 25px;
}

.event-gallery-content img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  margin: 0 auto;
}

.event-gallery-close {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
}

.event-gallery-close:hover {
  color: #3987ff;
}

/* PREVIOUS AND NEXT CONTROLS */
.event-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}

.event-gallery-controls button {
  padding: 12px 16px;
  background: #3987ff;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.event-gallery-controls button:hover:not(:disabled) {
  background: #2468d8;
}

.event-gallery-controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#eventGalleryCounter {
  color: #cccccc;
  font-size: 14px;
}

/* MOBILE LAYOUT */
@media (max-width: 600px) {
  .event-groups {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .event-group-button {
    padding: 22px;
    font-size: 18px;
  }

  .event-gallery-content {
    padding: 25px 15px;
  }

  .event-gallery-content h3 {
    font-size: 22px;
  }

  .event-gallery-controls {
    gap: 8px;
  }

  .event-gallery-controls button {
    padding: 10px;
    font-size: 13px;
  }
}
/* BOLD ABOUT SECTION */
#about {
  padding: 90px 25px;
  margin: 40px auto;
  max-width: 1100px;
  background: linear-gradient(135deg, #111111, #17243a);
  border-left: 6px solid #3987ff;
  border-radius: 16px;
  text-align: center;
}

#about .eyebrow {
  color: #3987ff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

#about h2 {
  color: #ffffff;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 auto 30px;
  text-transform: uppercase;
}

#about p:not(.eyebrow) {
  max-width: 850px;
  margin: 0 auto 22px;
  color: #eeeeee;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.9;
}

#about p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  #about {
    padding: 55px 20px;
    margin: 25px 15px;
  }

  #about h2 {
    font-size: 32px;
  }

  #about p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.75;
  }
}
/* SUPPORT SECTION SOCIAL LINKS */
.support-socials {
  max-width: 800px;
  margin: 45px auto 0;
  text-align: center;
}

.support-socials h3 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
}

.support-socials p {
  color: #dddddd;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.support-social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.support-social-links .button {
  text-decoration: none;
}

@media (max-width: 600px) {
  .support-socials h3 {
    font-size: 23px;
  }

  .support-social-links {
    flex-direction: column;
    align-items: stretch;
  }
}
/* SUPPORT US - IMPROVED COLOR CONTRAST */
.donation-section {
  background: #080808;
  color: #ffffff;
  padding: 80px 25px;
  border-top: 2px solid #3987ff;
  border-bottom: 2px solid #3987ff;
}

.donation-section h2,
.donation-section h3 {
  color: #ffffff;
}

.donation-section .eyebrow {
  color: #3987ff;
  font-weight: 800;
}

.donation-section p {
  color: #e5e5e5;
  line-height: 1.8;
}

.donation-section .notice {
  color: #c9dfff;
  background: #14233a;
  border-left: 4px solid #3987ff;
  padding: 15px;
  border-radius: 6px;
}

.support-socials {
  background: #111827;
  border: 1px solid #3987ff;
  border-radius: 12px;
  padding: 30px 20px;
  margin: 45px auto 0;
}

.support-socials h3 {
  color: #ffffff;
}

.support-socials p {
  color: #e5e5e5;
}

.support-socials .button {
  display: inline-block;
  background: #3987ff;
  color: #ffffff;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
}

.support-socials .button:hover {
  background: #2468d8;
}
/* FOOTER CONTACT INFORMATION */
footer {
  text-align: center;
  padding: 40px 20px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 30px;
  margin: 25px auto;
}

.footer-contact p {
  margin: 0;
  color: #eeeeee;
  line-height: 1.8;
}

.footer-contact a {
  color: #3987ff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .footer-contact {
    flex-direction: column;
    gap: 12px;
  }
}
/* CLEAN PHOTO POPUP */
.photo-lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 900px);
  max-height: 92vh;
  overflow-y: auto;
  padding: 20px;
  background: transparent;
  color: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

.photo-lightbox-content > img {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 0;
}

.photo-lightbox-details {
  width: 100%;
  padding: 18px 10px 5px;
}

.photo-lightbox-details h3 {
  color: #3987ff;
  font-size: 25px;
  margin: 8px 0 12px;
}

.photo-lightbox-details p {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.7;
  margin: 8px 0;
}

.photo-lightbox-details .photo-lightbox-role {
  color: #3987ff;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.photo-lightbox-content .gallery-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 40px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .photo-lightbox-content {
    width: 96vw;
    padding: 15px 5px;
  }

  .photo-lightbox-content > img {
    max-height: 55vh;
  }
}
/* PHOTO NAVIGATION ARROWS */
.photo-lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.75);
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
}

.photo-lightbox-arrow:hover {
  background: #3987ff;
}

.photo-lightbox-previous {
  left: 18px;
}

.photo-lightbox-next {
  right: 18px;
}

.photo-lightbox-counter {
  color: #ffffff;
  font-size: 14px;
  margin: 10px 0 0;
  text-align: center;
}

@media (max-width: 600px) {
  .photo-lightbox-arrow {
    width: 38px;
    height: 46px;
    font-size: 23px;
  }

  .photo-lightbox-previous {
    left: 5px;
  }

  .photo-lightbox-next {
    right: 5px;
  }
}
/* ITZ JUST UZ — MOBILE AND TABLET IMPROVEMENTS */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
  }

  section {
    scroll-margin-top: 80px;
  }

  .section,
  .events-section,
  .leadership-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section h2,
  .events-section h2,
  .leadership-section h2 {
    overflow-wrap: anywhere;
  }

  .gallery-grid,
  .leadership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .gallery-item img,
  .leader-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .event-gallery-content {
    width: 94vw;
    max-width: 94vw;
    max-height: 90vh;
    overflow-y: auto;
  }

  #eventGalleryImage {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
  }

  .photo-lightbox-content {
    width: 94vw;
    max-width: 94vw;
  }
}

@media (max-width: 480px) {
  .gallery-grid,
  .leadership-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-item,
  .leader-card {
    width: 100%;
    min-width: 0;
  }

  .gallery-item h3,
  .leader-card h3 {
    overflow-wrap: anywhere;
  }

  .event-group-button {
    width: 100%;
  }

  .event-gallery-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .event-gallery-controls button {
    min-height: 44px;
  }

  .footer-contact {
    overflow-wrap: anywhere;
  }
}
/* ITZ JUST UZ — DROPDOWN NAVIGATION */

/* Keep the menu button hidden on larger screens */
.menu-toggle {
  display: none;
}

/* Dropdown positioning and appearance on mobile */
@media (max-width: 800px) {
  .navbar {
    position: relative;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    padding: 12px;
    background: #101827;
    border: 1px solid #3987ff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    gap: 0;
  }

  .nav-links.open a {
    display: block;
    width: 100%;
    padding: 12px;
    text-decoration: none;
  }
}
/* Show the menu button on all screen sizes */
.menu-toggle {
  display: block;
  margin-left: auto;
  background: transparent;
  border: 1px solid #52627c;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Position the dropdown beneath the header */
.navbar {
  position: relative;
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  padding: 12px;
  gap: 0;
  background: #101827;
  border: 1px solid #3987ff;
  border-radius: 10px;
  z-index: 1000;
}

.nav-links.open a {
  display: block;
  padding: 12px;
  text-decoration: none;
}
/* Events page: flyers displayed directly on the page */
.event-flyer-section {
  max-width: 1100px;
  margin: 45px auto;
  padding: 0 25px;
}

.event-flyer-section h2 {
  margin-bottom: 22px;
}

.event-flyer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.event-flyer-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .event-flyer-grid {
    grid-template-columns: 1fr;
  }
}
/* ITZ JUST UZ header branding */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo {
  display: block;
  width: 500px;
  max-width: 100%;
  height: 140px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.logo-text {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.logo-dot {
  color: #3987ff;
}
.navbar {
  min-height: 150px;
  padding-top: 15px;
  padding-bottom: 15px;
  gap: 20px;
}
/* ITZ JUST UZ homepage background */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at center,
      rgba(15, 65, 150, 0.25),
      transparent 70%
    ),
    linear-gradient(
      rgba(3, 7, 18, 0.82),
      rgba(3, 7, 18, 0.90)
    ),
    #030712;
}

/* Faded shield watermark behind homepage content */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/itz-just-uz-logo.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 90%;
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}

/* Keep homepage text and buttons above the watermark */
.hero > * {
  position: relative;
  z-index: 1;
}
/* CENTERED HOMEPAGE WELCOME SECTION */
.hero {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  box-sizing: border-box;
}

.hero .eyebrow {
  margin-bottom: 22px;
  letter-spacing: 3px;
  text-align: center;
}

.hero h1 {
  max-width: 950px;
  margin: 0 auto 24px;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.12;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(80, 150, 255, 0.25);
}

.hero h1 span {
  display: block;
  color: #65a5ff;
  text-shadow:
    0 0 8px rgba(60, 140, 255, 0.9),
    0 0 22px rgba(35, 105, 255, 0.65),
    0 0 42px rgba(35, 105, 255, 0.35);
}

.hero .hero-copy {
  max-width: 650px;
  margin: 0 auto 22px;
  line-height: 1.8;
  text-align: center;
}

.hero .hero-tagline {
  margin: 0 auto 32px;
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.8;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(60, 140, 255, 0.4);
}

.hero .hero-tagline span {
  color: #4b91ff;
}

.hero .hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
}

.hero .button.primary {
  background: linear-gradient(135deg, #77b5ff, #1769ff 55%, #0844b8);
  color: #ffffff;
  border: 1px solid #8dc4ff;
  box-shadow:
    0 0 12px rgba(40, 120, 255, 0.75),
    0 0 28px rgba(40, 120, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero .button.primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 18px rgba(40, 120, 255, 0.95),
    0 0 40px rgba(40, 120, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero .location {
  margin: 8px auto 0;
  text-align: center;
}

@media (max-width: 600px) {
  .hero {
    min-height: 70vh;
    padding: 60px 18px;
  }

  .hero .eyebrow {
    letter-spacing: 1.5px;
    line-height: 1.8;
  }

  .hero .hero-tagline {
    letter-spacing: 1px;
  }
}
/* GALLERY PAGE */
.page-intro {
  text-align: center;
  padding: 75px 24px 35px;
  max-width: 900px;
  margin: 0 auto;
}

.page-intro h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 15px 0;
  color: #ffffff;
}

.page-intro h1 span {
  color: #65a5ff;
  text-shadow: 0 0 18px rgba(50, 125, 255, 0.5);
}

.page-intro > p:last-child {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

.gallery-section {
  max-width: 1150px;
  margin: 0 auto;
  padding: 30px 24px 75px;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: 15px;
}

.gallery-note {
  text-align: center;
  line-height: 1.8;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid rgba(101, 165, 255, 0.35);
  border-radius: 14px;
  background: rgba(10, 20, 40, 0.8);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.025);
}

.gallery-item p {
  padding: 14px;
  margin: 0;
  text-align: center;
  font-weight: 600;
}

.site-footer {
  padding: 25px 20px;
  text-align: center;
  border-top: 1px solid rgba(101, 165, 255, 0.2);
  color: #b8c5da;
}

@media (max-width: 750px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* CLEAN GALLERY PAGE LAYOUT */
.page-intro {
  max-width: 850px;
  margin: 0 auto;
  padding: 65px 24px 30px;
  text-align: center;
}

.page-intro .eyebrow {
  text-align: center;
  line-height: 1.6;
}

.page-intro h1 {
  margin: 16px 0;
  color: #ffffff;
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.2;
}

.page-intro > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

.gallery-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 25px 24px 80px;
}

.gallery-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.gallery-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  min-height: 190px;
  background: #101827;
  border: 1px solid #29364a;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-option:hover {
  background: #172338;
  border-color: #568fe8;
}

.gallery-option h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  line-height: 1.3;
}

.gallery-option p {
  margin: 0 0 22px;
  line-height: 1.7;
}

.gallery-option span {
  margin-top: auto;
  color: #8bb8ff;
  font-weight: 600;
}

@media (max-width: 600px) {
  .gallery-options {
    grid-template-columns: 1fr;
  }

  .gallery-option {
    padding: 24px;
  }
}
/* GALLERY PHOTO PLACEHOLDERS */
.gallery-placeholder {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  background: #101827;
  border: 1px solid #29364a;
  border-radius: 12px;
}

.gallery-placeholder p {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
}

.gallery-placeholder span {
  color: #b8c5da;
  font-size: 0.9rem;
}

.gallery-note {
  max-width: 650px;
  margin: 0 auto 30px;
  text-align: center;
  line-height: 1.8;
}
/* EVENTS PAGE OPTIONS */
.event-options {
  max-width: 1000px;
  margin: 35px auto 55px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.event-option {
  display: block;
  padding: 28px;
  color: #ffffff;
  text-decoration: none;
  background: #101827;
  border: 1px solid #29364a;
  border-radius: 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.event-option:hover {
  background: #172338;
  border-color: #568fe8;
}

.event-option h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.event-option p {
  line-height: 1.7;
}

.event-option span {
  display: inline-block;
  margin-top: 8px;
  color: #8bb8ff;
  font-weight: 600;
}

.event-flyer-section {
  scroll-margin-top: 30px;
}

.events-section {
  padding-bottom: 50px;
}

#top {
  scroll-margin-top: 20px;
}

@media (max-width: 600px) {
  .event-options {
    grid-template-columns: 1fr;
  }
}
/* Gallery image captions */
.gallery-item h3,
.gallery-item p {
  color: #000000;
  font-weight: 700;
}
/* MEDIA VIDEO VIEWER */
.media-video-lightbox {
  z-index: 9999;
}

.media-video-content {
  position: relative;
  width: min(900px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-sizing: border-box;
  background: #080d19;
  border: 1px solid #168cff;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(22, 140, 255, 0.25);
  text-align: center;
}

.media-video-content h2 {
  color: #ffffff;
  margin: 10px 40px 22px;
}

.media-video-content iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px;
  background: #000000;
}

.media-video-content a {
  display: inline-block;
  margin-top: 18px;
  color: #168cff;
  font-weight: 700;
  text-decoration: none;
}

.media-video-content a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .media-video-content {
    width: 95vw;
    padding: 18px 12px;
  }

  .media-video-content h2 {
    font-size: 1.2rem;
    margin: 18px 30px;
  }
}
/* MEDIA PAGE LAYOUT FIX */
.media-page {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 60px 0 80px;
  color: #f5f7ff;
}

.media-intro,
.media-wall {
  text-align: center;
  margin: 0 auto 45px;
}

.media-intro h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.15;
  margin: 12px 0 18px;
}

.media-intro h1 span {
  color: #168cff;
}

.media-intro p,
.media-description {
  color: #c7d2e5;
  line-height: 1.7;
}

.media-wall h2 {
  margin: 10px 0;
}

.media-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  max-width: 850px;
  margin: 35px auto 0;
}

.embedded-video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #168cff;
  border-radius: 14px;
  background: #080d19;
  box-shadow: 0 0 22px rgba(22, 140, 255, 0.15);
}

.embedded-video-card iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

@media (max-width: 700px) {
  .media-collage {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .embedded-video-card iframe {
    height: 520px;
  }

  .media-page {
    padding-top: 35px;
  }
}
/* ITZ JUST UZ BRAND BACKGROUND */
body {
  background-color: #050a16;
  color: #f5f7ff;
}

/* Subtle club logo watermark behind page content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("images/ITZ-JUST-UZ-LOGO.JPG");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(65vw, 650px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* Keep page content above the watermark */
body > * {
  position: relative;
  z-index: 1;
}

/* Improve readability */
.media-intro h1,
.media-wall h2,
.media-wall h3 {
  color: #ffffff;
}

.media-intro p,
.media-description {
  color: #e0e7f5;
}

.eyebrow {
  color: #62a5ff;
}
/* CENTER THE MEDIA PAGE MAIN HEADING */
.media-intro h1 {
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* CENTER JOIN BUTTON UNDER THE HERO TAGLINE */
.hero {
  text-align: center;
}

.hero .button.primary {
  display: table;
  margin: 12px auto 0;
}
/* Gallery titles and captions: bold white text */
.gallery-item h3 {
  color: #ffffff;
  font-weight: 700;
}

.gallery-item p {
  color: #ffffff;
  font-weight: 700;
}