:root {
  --primary-bg: #fee101;
  --accent-color: #0097b2;
  --interaction-color: #d80000;

  --primary-bg-light: #fff4c2;
  --primary-bg-lighter: #fff8db;
  --text-color: #333;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-image: url(/photos/background.jpg);
  background-size: contain;
  background-blend-mode: normal;
  background-color: var(--primary-bg);
  color: var(--text-color);
}

.background {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-members {
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minimax(200px, 1fr));
  gap: 20px;
}

.main-members img {
  max-height: auto;
  object-fit: contain;
  width: 30%;
  border-radius: 2px;
  border-color: var(--primary-bg-lighter);
}
.videos-area,
.videos {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

.videos {
  max-width: 100%;
}

.donate-qr {
  text-align: center;
  max-width: 30vh;
}

header {
  color: var(--accent-color);
  padding: 20px;
  text-align: center;
}

section {
  padding: 10px;
  max-width: 1500px;
  margin: 10px auto;
  background-color: var(--primary-bg-light);
  border-radius: 10px;
}

.member {
  width: 150px;
  text-align: left;
}

.member-display {
  background-color: var(--primary-bg-light);
  padding: 20px;
}

.member-display h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-weight: bold;
}

.founder-display {
  margin: 40px 10px;
  max-width: auto;
  padding: 20px;
  border-radius: 5px;
  background-color: var(--primary-bg-light);
}

.founder-display h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: bold;
}

.founder-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.founder-photo {
  flex: 1;
  text-align: center;
}

.founder-photo img {
  width: 300px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.founder-name {
  margin-top: 15px;
  font-size: 1.5rem;
  font-weight: bold;
}

.founder-text {
  flex: 2;
}

.founder-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.founder-speech {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease;
  position: absolute;
  width: 100%;
}

.speech-container,
.speech-container * {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}

.founder-speech.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.speech-container {
  position: relative;
  min-height: 280px; /* adjust so it fits the longest text */
}

.founder-signature {
  margin-top: 20px;
  font-size: 30px;
  font-weight: bold;
  text-align: right;
}

@media screen and (max-width: 768px) {
  .founder-layout {
    flex-direction: column;
    text-align: center;
  }

  .founder-speech {
    font-size: 20px;
  }

  .founder-photo {
    justify-content: center;
    align-self: center;
  }

  .founder-photo img {
    display: flex;
    width: 250px;
  }

  .founder-name {
    font-size: 1.2rem;
  }

  .founder-text {
    display: none;
  }
}

@media (min-width: 768px) {
  h2 {
    font-size: 50px;
  }
}

@media (min-width: 1200px) {
  h2 {
    font-size: 55px;
  }
}

.gallery-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: auto;
  background-color: var(--primary-bg-light);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.gallery-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25%;
  aspect-ratio: 1 / 1;
  background-color: var(--primary-bg-lighter);
  padding: 5px;
}

.gallery-item img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  background-color: #dcdcdc;
  border-radius: 8px;
}

.nav-button {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(216, 0, 0, 0.7); /* Interaction with transparency */
  color: var(--white);
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

@media (min-width: 768px) {
  .nav-button {
    display: flex;
  }
}

.prev-button {
  left: 10px;
  border-radius: 15px;
}

.next-button {
  right: 10px;
  border-radius: 15px;
}

@media (max-width: 768px) {
  .gallery-item {
    flex: 0 0 100%;
  }
}

/* .body-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
}
    
.member-page {
    grid-row: span 2 / span 2;
    max-width: ;
}

.social-page {
    grid-row: span 2 / span 2;
}

.donate-page {
    grid-row: span 2 / span 2;
    grid-row-start: 3;
}

.contact {
    grid-row: span 2 / span 2;
    grid-row-start: 3;
} */

.body-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0px;
}

/* Style for each box */
.body-content div {
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 20px;
  background: var(--primary-bg-lighter);
  min-height: 150px; /* ensures equal height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .body-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 100%;
    margin: auto;
  }

  .body-content div {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: var(--primary-bg-lighter);
    min-height: 150px; /* ensures equal height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 5px 0px;
    max-width: 100%;
    word-break: break-word;
  }
}

.member-page,
.social-page,
.donate-page,
.membership,
.motto {
  background: var(--primary-bg-lighter);
  margin: auto;
  border-radius: 10px;
  word-wrap: break-word;
}

.motto p {
  font-size: large;
  text-decoration: solid;
}

.button {
  background: var(--interaction-color);
  color: var(--white);
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  margin-top: 10px;
}

.button:hover {
  background-color: #a80000;
}

img {
  max-width: 100%;
  height: auto;
}

nav {
  text-align: center;
  padding: 10px;
  background: var(--accent-color);
}

nav a {
  color: var(--white);
  margin: 0 15px;
  text-decoration: none;
  font-size: 18px;
}

nav a:hover {
  color: var(--primary-bg);
}

.names {
  text-decoration-color: var(--accent-color);
}

h1 {
  font-size: 48px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 24px;
  }
}

h2 {
  text-align: center;
  font-size: 2rem;
}

.header {
  margin: auto;
  padding: 0;
  background-size: cover;
}

@media screen and (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-size: contain;
  }
}

.head,
.head1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accent-color);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100vw;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.menu-toggle {
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  margin-right: 15px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0;
}

.logo img {
  margin-right: 10px;
}

@media screen and (max-width: 768px) {
  .logo img {
    margin: 0px;
  }
}

.quick-contact {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.donate-view-pc,
.donate-view-phone {
  display: none;
}

@media screen and (min-width: 768px) {
  .donate-view-pc {
    display: inline;
  }

  .donate-nav-pc {
    display: flex;
    flex-direction: column;
  }

  .donate-button {
    position: absolute;
    right: 35px;
    top: 0px;
    margin-left: auto;
    margin-top: 5px;
  }

  .donate-button img {
    background-color: white;
    width: 75px;
    height: auto;
    /* padding: 5px; */
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    text-align: center;
    padding-bottom: 10px;
  }

  .logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .donate-button {
    position: absolute;
    right: 15px;
    top: 16px;
    margin-left: auto;
    margin-top: 5px;
  }

  .donate-button img {
    background-color: white;
    width: 75px;
    height: auto;
    padding: 5px;
  }

  .donate-view-phone {
    display: inline;
  }

  .quick-contact {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .menu-toggle {
    position: absolute;
    left: 20px;
    top: 15px;
  }

  .mobile-break {
    display: block;
    height: 10px;
  }
}

.contact-icon img {
  width: 24px;
  height: 24px;
  transition: 0.3s;
}

.contact-icon img:hover {
  transform: scale(1.2);
}

.side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100vh;
  background: rgba(30, 58, 138, 0.95);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease-in-out;
  padding-top: 60px;
  z-index: 2000;
  overflow-y: auto;
}

.side-menu.active {
  left: 0;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  padding: 15px;
  text-align: left;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px 20px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: var(--interaction-color);
}

.close-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

.mobile-break {
  display: none;
}

.executive-donate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.executive-donate li {
  font-size: 25px;
}

@media screen and (max-width: 768px) {
  .executive-donate li {
    font-size: medium;
    align-self: start;
  }
}

.contact {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.content {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 800px;
  margin: auto;
  padding: 20px;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .content {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 5px;
    max-width: 350px;
  }

  .content section {
    min-width: 350px;
    padding: 10px;
    margin: 0;
  }
}

@media screen and (min-width: 768px) {
  .content section {
    min-width: 400px;
  }
}

.content h1 {
  gap: 10px;
}

.content li {
  margin-left: 30px;
}

.event-card {
  background: white;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.event-card h1 {
  color: #d97706;
}

.event-card p {
  color: #555;
  font-size: large;
}

.event-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #2696be;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.event-card a:hover {
  background-color: #d97706;
}

.yt-embeds {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
  max-width: 100%;
  margin: auto;
  background-color: var(--primary-bg-light);
}

.yt-embeds iframe {
  display: flex;
  justify-self: center;
  flex-direction: column;
}

.instagram-media {
  max-height: 315;
  max-width: 560;
}

@media screen and (max-width: 768px) {
  .yt-embeds {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
    max-width: 100%;
    margin: auto;
    background-color: var(--primary-bg-light);
  }

  .yt-embeds iframe {
    max-width: fit-content;
    height: 250px;
  }
}

#sponsorship {
  padding: 50px 20px;
  text-align: center;
}

.welcome-message h1 {
  color: var(--text-color);
  margin-bottom: 20px;
}

.welcome-message p {
  font-size: 18px;
  max-width: 700px;
  margin: auto;
  line-height: 1.6;
}

.sponsor-contact {
  justify-content: center;
  align-items: center;
}
.sponsor-contact strong,
.sponsor-contact p {
  display: flex;
  font-size: 30px;
  align-items: baseline;
  align-items: center;
  justify-content: center;
}

.sponsor-contact a {
  display: flex;
  font-size: 20px;
  justify-content: center;
}

/* Grid Container */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(420px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 50px auto 0 auto;
  align-items: center;
  justify-content: center;
}

/* Main Sponsor */
.main-sponsor {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  background-color: var(--primary-bg-light);
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.main-sponsor img {
  max-width: 650px;
}

.main-sponsor p {
  margin-top: 10px;
  font-weight: bold;
  font-size: 50px;
}

.sponsor-card {
  padding: 15px;
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sponsor-card img {
  max-width: 400px;
}

.sponsor-card p {
  margin-top: 10px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .main-sponsor img {
    max-width: 100%;
  }

  .main-sponsor p {
    font-size: 36px;
  }

  .sponsor-card img {
    max-width: 90%;
  }

  .sponsor-contact a {
    font-size: auto;
    word-break: break-all;
    font-size: 18px;
  }
}
