* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #ffffff;
}

body {
  display: flex;
  flex-direction: column;
}

html {
  scroll-behavior: smooth;
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: none;
}

.reveal-done {
  opacity: 1;
  transform: none;
  transition: none !important;
}

/* Progress bar styles */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: #ff8400;
  z-index: 9999;
  transition: width 0.3s ease;
}

/* HOME PAGE container + slideshow */
.home_page {
  width: 100%;
  height: 38vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home_page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/images/psu_bg2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: bgSlideshow 16s infinite steps(1);
}

.home_page > * {
  position: relative;
  z-index: 1;
}

@keyframes bgSlideshow {
  0%,
  33.33% {
    background-image: url("../assets/images/psu_bg2.png");
  }
  33.34%,
  66.66% {
    background-image: url("../assets/images/psu_bg.jpg");
  }
  66.67%,
  100% {
    background-image: url("../assets/images/psu_bg3.jpg");
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
}

.home_page-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  color: rgb(255, 255, 255);
}

.left-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.left-logo img {
  width: 75px;
  height: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logo-text h3 {
  margin: 0;
  font-size: 35px;
  white-space: nowrap;
}

.logo-text h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 100;
}

.right-logo {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.right-logo h5 {
  text-align: left;
  margin: 3px 0;
  font-weight: 120;
  font-size: 14px;
}

.home_page-title {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -40px;
}

.home_page-title h1 {
  margin: 0;
  font-size: 50px;
  font-weight: bold;
}

.home_page-title h5 {
  margin-top: 10px;
  font-size: 25px;
  font-weight: 100;
}

/* Navigation */
.bottom-nav {
  position: relative;
  left: 0;
  right: 0;
  background: #e7e1e1;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.bottom-nav.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.bottom-nav-spacer {
  height: 0;
}

.nav-container {
  display: flex;
  justify-content: space-around;
  max-width: 800px;
  margin: 0 auto;
}

.nav-item {
  color: rgb(4, 72, 24);
  text-decoration: none;
  padding: 15px 10px;
  text-align: center;
  flex: 1;
  transition: background-color 0.3s ease;
  font-size: 16px;
  font-weight: 700;
}

@media (hover: hover) {
  .nav-item:hover {
    background: transparent;
    color: #1a5f3f;
    box-shadow: inset 0 -4px 0 #f16901;
  }
}

.nav-item.active {
  background: transparent;
  color: #1a5f3f;
  box-shadow: inset 0 -4px 0 #f16901;
}

/* Burger Menu Styles */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

.burger-menu.nav-moved-top {
  background: #e7e1e1;
}

.burger-line {
  width: 20px;
  height: 2px;
  background: rgb(4, 72, 24);
  margin: 2px 0;
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: rgba(231, 225, 225, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 130px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu.active {
  right: 0;
}

.mobile-nav-item {
  display: block;
  color: rgb(4, 72, 24);
  text-decoration: none;
  padding: 20px 30px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(4, 72, 24, 0.1);
  transition: all 0.3s ease;
}

@media (hover: hover) {
  .mobile-nav-item:hover,
  .mobile-nav-item.active {
    background: rgba(26, 95, 63, 0.05);
    color: #1a5f3f;
    box-shadow: inset 4px 0 0 #f16901;
  }
}

/* Mobile Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}


/* About Page */
.about_page {
  width: 100%;
  min-height: 120vh;
  background-color: #f6f6f6;
  padding: 80px 20px;
  color: rgb(4, 72, 24);
}

.about-container {
  max-width: 65vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.about-container div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  flex: 1;
}

.about-container img {
  flex: 0 1 400px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.about-container div h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 32px;
}

.about-container p {
  font-size: 16px;
  text-align: left;
  line-height: 1.7;
}

/* Shared Mission / Vision layout */
.mvv-block,
.v-block {
  display: flex;
  margin: 0 auto;
  margin-top: 5%;
  max-width: 65vw;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.v-block {
  flex-direction: row-reverse;
}

.image-m,
.image-v {
  flex: 0 1 380px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-m img,
.image-v img {
  width: 100%;
  max-width: 100%;
  height: 300px;
  border-radius: 8px;
  margin: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}

.content {
  flex: 1;
  line-height: 1.7;
}

.content h3 {
  font-size: 32px;
}

.content p {
  font-size: 16px;
  text-align: justify;
}

/* Organogram Section */
.org-section {
  margin: 0 auto;
  margin-top: 5%;
  max-width: 65vw;
  width: 100%;
}

.org-section h3 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 30px;
}

.image-org {
  width: 100%;
}

.image-org img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 8px;
  margin: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}




/* MOBILE RESPONSIVE STYLES */

/* Show burger menu on mobile, hide regular nav */
@media (max-width: 768px) {
  .bottom-nav {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }
}

  /* Tablets (768px and below) */
  @media (max-width: 768px) {
    .nav-item {
      font-size: 14px;
      padding: 12px 8px;
      text-align: center;
    }

    .home_page-logo {
      padding: 14px 16px;
      position: relative;
      flex-direction: row;
      align-items: center;
      gap: 10px;
      text-align: center;
    }

    .left-logo {
      justify-content: flex-start;
      align-items: center;
      text-align: center;
    }  .left-logo img { width: 56px; }

  .logo-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
  }
  .logo-text h3 { font-size: 24px; }

  .logo-text h5 { font-size: 12px; }

  .right-logo { display: none; }

  .right-logo h5 { font-size: 12px; text-align: center; }

  .home_page-title h1 { font-size: 36px; }

  .home_page-title h5 { font-size: 16px; }

  /* Review Page Tablet */
  .rp_container {
    max-width: 90vw;
  }

  .rp_container h3 {
    font-size: 28px;
  }

  .review_cards {
    gap: 30px;
  }

  /* About Page Tablet */
  .about-container {
    max-width: 90vw;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "image"
      "text";
    gap: 20px;
    align-items: start;
  }

  /* Flatten inner wrapper so h2 and p can be placed around the image */
  .about-container > div { display: contents; }
  .about-container > div h2 { grid-area: title; }
  .about-container > div p { grid-area: text; }
  .about-container > img { grid-area: image; justify-self: center; }
  .about-container > img {
    width: 100% !important;
    max-width: 95% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }

  .about-container img {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .about-container p {
    max-width: 90vw;
  }

  .about-container div h2 {
    font-size: 28px;
  }

  .mvv-block,
  .v-block {
    max-width: 90vw;
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .image-m,
  .image-v {
    flex: 0 1 auto;
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
  }

  .image-m img,
  .image-v img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .org-section {
    max-width: 90vw;
  }

  .image-org {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
  }

  .image-org img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .org-section h3 {
    font-size: 28px;
    text-align: center;
  }

  .content {
    width: 100%;
  }

  .content h3 {
    font-size: 28px;
    text-align: center;
  }

}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  .burger-menu {
    top: 15px;
    right: 15px;
    padding: -50px;
  }

  .mobile-nav-menu {
    width: 280px;
    right: -280px;
  }

  .mobile-nav-item {
    padding: 18px 25px;
    font-size: 16px;
  }
  .nav-item {
    font-size: 12px;
    padding: 10px 5px;
  }

  .home_page-logo { padding: 12px 14px; }

  .left-logo img { width: 44px; }

  .logo-text h3 { font-size: 18px; }

  .logo-text h5 {
    font-size: 10px;
  }

  .right-logo h5 {
    font-size: 9px;
    margin-left: 50px;
    margin-top: -5px;
  }

  .home_page-title { text-align: center; padding: 0 20px; }

  .home_page-title h1 { font-size: 30px; line-height: 1.25; }

  .home_page-title h5 { font-size: 14px; }

  /* Review Page Mobile */
  .rp_container {
    max-width: 95vw;
    padding: 0 10px;
  }

  .rp_container h3 {
    font-size: 24px;
    margin-top: 40px;
    text-align: center;
  }

  .rp_container p {
    font-size: 13px;
    margin: 20px 10px;
  }

  .review_cards {
    gap: 20px;
  }

  .review_card {
    flex: 1 1 100%;
    padding: 15px;
  }

  /* About Page Mobile */
  .about_page {
    padding: 40px 10px;
  }

  .about-container {
    max-width: 95vw;
    gap: 30px;
  }

  .about-container div h2 {
    font-size: 24px;
    text-align: center;
    margin: 0;
  }

  .about-container p {
    font-size: 13px;
    max-width: 95vw;
  }

  .mvv-block,
  .v-block {
    max-width: 95vw;
    margin-top: 8%;
    gap: 20px;
  }

  .image-m,
  .image-v {
    width: 100%;
    max-width: 90%;
  }

  .image-org {
    width: 100%;
    max-width: 90%;
  }

  .org-section h3 {
    font-size: 24px;
    text-align: center;
  }

  .content h3 {
    font-size: 24px;
  }

  .content p {
    font-size: 13px;
  }

  .member-card img {
    width: 120px;
    height: 120px;
  }

  .member-card h4 {
    font-size: 18px;
    margin-top: 20px;
  }

}

  /* Extra small devices (320px and below) */
  @media (max-width: 320px) {
    .home_page-title h1 {
      font-size: 28px;
      text-align: center;
    }

    .home_page-title h5 {
      font-size: 14px;
      text-align: center;
    }

    .logo-text h3 {
      font-size: 18px;
      text-align: center;
    }

    .right-logo h5 {
      font-size: 8px;
      text-align: center;
    }

    .nav-item {
      font-size: 10px;
      padding: 8px 3px;
      text-align: center;
    }

    .rp_container h3 {
      font-size: 20px;
      text-align: center;
    }

    .about-container div h2 {
      font-size: 20px;
      text-align: center;
    }

    .content h3 {
      font-size: 20px;
      text-align: center;
    }

    .image-m,
    .image-v {
      max-width: 240px;
    }

    .member-card {
      width: 200px;
    }

    .member-card img {
      width: 100px;
      height: 100px;
    }
}

/* Members Section */
.members-section {
  max-width: 65vw;
  margin: 5% auto 0;
  width: 100%;
}

.members-section h3 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 12px;
  color: rgb(4, 72, 24);
}

.members-intro {
  text-align: center;
  font-size: 15px;
  color: #607080;
  letter-spacing: 0.3px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.member-card {
  background: #ffffff;
  border: 1px solid #edf0ed;
  border-bottom: 2px solid #e4e8e4;
  border-radius: 10px;
  padding: 14px 12px 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-top: 24px;
}

@media (hover: hover) {
  .member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #dfe6df;
  }
}

.member-photo {
  width: 110px;
  height: 110px;
  overflow: hidden;
  margin: 2px auto 10px;
  border-radius: 50%;
  background: #f7f8f7;
  border: 1px solid #ecefe9;
  flex: 0 0 auto;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.member-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  width: 100%;
}

.member-info h4 {
  font-size: 14px;
  font-weight: 800;
  color: rgb(4, 72, 24);
  line-height: 1.28;
  margin: 0;
  letter-spacing: 0.25px;
}

.member-role {
  font-size: 12px;
  font-weight: 700;
  color: #1a5f3f;
  margin: 0;
  letter-spacing: 0.3px;
}

.member-details {
  font-size: 11.5px;
  line-height: 1.55;
  color: #607080;
  margin: 0;
  max-width: 100%;
}

.detail-label {
  font-weight: 600;
  color: #3a4a54;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .members-section {
    max-width: 90vw;
    margin-top: 60px;
  }

  .member-card {
    padding: 14px 12px 16px;
  }

  .member-photo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
  }

  .members-section h3 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .members-intro {
    font-size: 14px;
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .member-card {
    padding: 14px 14px 16px;
  }

  .member-photo {
    width: 100px;
    height: 100px;
  }

  .members-section {
    max-width: 95vw;
  }

  .member-info h4 {
    font-size: 14px;
  }

  .member-role {
    font-size: 12.5px;
  }

  .member-details {
    font-size: 11.5px;
  }
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #1a5f3f;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) {
  #backToTop:hover {
    background: #1a5f3f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }
}

