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

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

/* 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;
}

body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}


/* 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: 100vh;
  position: relative;
  overflow: hidden;
  isolation: auto; /* avoid trapping fixed elements (like bottom nav) in a lower stacking context */
}

.home_page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/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("../img/psu_bg2.png");
  }
  33.34%, 66.66% {
    background-image: url("../img/psu_bg.jpg");
  }
  66.67%, 100% {
    background-image: url("../img/psu_bg3.jpg");
  }
}

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

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

.mobile-only {
  display: none;
}

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

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

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center text vertically with the logo */
  margin: 0;              /* Remove extra margin */
  gap: 3px;
}

.logo-text h3 {
  margin: 0;             /* Reset bottom margin */
  font-size: 30px;
  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;       
  margin-top: 24vh;         
}

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

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

/* Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #e7e1e1;
  z-index: 1000;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav.move-to-top {
  top: 0;
  bottom: auto;
  border-top: none;
}

.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;
}

.nav-item:hover {
  background: #f16901;
  color: white;
}

.nav-item.active {
  background: #f16901;
  color: white;
}

/* 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);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 80px;
  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;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: #f16901;
  color: white;
}

/* 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;
}

/* Review Page */
.review_page {
  background: #f9f9f9;
  min-height: 55vh;
  width: auto;
  padding: 20px 20px;
}

.rp_container {
  max-width: 65vw;
  margin: 0 auto;
  text-align: center;
}

.rp_container h3 {
  font-size: 35px;
  margin-top:30px;
  margin-bottom: 10px;
  color: rgb(4, 72, 24);
}

.rp_container p {
  font-size: 14px;
  color: rgb(4, 72, 24);
  margin: 30px;
}

.review_cards {
  display: flex;
  flex-wrap: wrap;
  gap: 40px; /* Reduced gap to accommodate wider cards */
  justify-content: center;
}

.review_card {
  flex: 1 265px; /* Increased from 250px to 320px */
  max-width: 400px; /* Added max-width to prevent cards from getting too wide */
  background: #fff;
  padding: 20px; /* Increased padding from 20px to 25px */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.review_card h4 {
  margin-bottom: 15px; /* Increased margin for better spacing */
  color: #222;
  font-size: 1.2em; /* Slightly larger heading */
}

.review_card p {
  font-size: 14px;
  color: #444;
  line-height: 1.6; /* Improved line height for readability */
  margin-bottom: auto;
}

.review_card:hover {
  transform: translateY(-5px);
  background-color: #f0f8ff;
}

.exempt { border-left: 6px solid #f47236; }
.expedited { border-left: 6px solid #4caf50; }
.fullboard { border-left: 6px solid #eea332; }

/* Process Flow Section */
.process-flow-section {
  background: #f9f9f9;
  padding: 40px 20px 20px;
}

.process-flow-container {
  max-width: 65vw;
  margin: 0 auto;
  text-align: center;
}

.process-flow-container h3 {
  font-size: 32px;
  margin-bottom: 15px;
  color: rgb(4, 72, 24);
  font-weight: 600;
}

.process-flow-container p {
  font-size: 14px;
  color: #444;
  line-height: 1.6; /* Improved line height for readability */
  margin-bottom: 30px;
}

.process-labels {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.process-label {
  background: linear-gradient(135deg, #f16901, #ff8400);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(241, 105, 1, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  min-width: 160px;
  max-width: 200px;
}

.process-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241, 105, 1, 0.4);
}

/* Carousel Styles */
.carousel-section {
  padding: 50px 20px;
}

.carousel {
  position: relative;
  max-width: 65vw;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background: white;
  transition: box-shadow 0.4s ease;
}

.carousel:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

/* Slide Captions */
.slide-caption {
  position: absolute;
  top: 0;  /* Changed from bottom: 0 to top: 0 */
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(4, 72, 24, 0.9), rgba(4, 72, 24, 0.7)); /* Changed gradient direction */
  color: white;
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  transform: translateY(-100%); /* Changed from translateY(100%) to translateY(-100%) */
  transition: transform 0.3s ease;
}

.carousel:hover .slide-caption {
  transform: translateY(0);
}

/* Navigation Arrows */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(241, 105, 1, 0.8);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  outline: none;
  z-index: 10;
}

.prev { left: 15px; }
.next { right: 15px; }

.carousel:hover .prev,
.carousel:hover .next {
  opacity: 1;
  pointer-events: auto;
}

.carousel:hover .prev[disabled],
.carousel:hover .next[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.carousel:hover .prev:not([disabled]):hover,
.carousel:hover .next:not([disabled]):hover {
  background: rgba(241, 105, 1, 1);
  transform: translateY(-50%) scale(1.1);
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicators .dot {
  height: 12px;
  width: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(59, 59, 59, 0.8);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicators .dot.active {
  background-color: #f16901;
  border-color: #f16901;
  transform: scale(1.2);
}

.carousel-indicators .dot:hover {
  background-color: rgba(112, 109, 109, 0.8);
  transform: scale(1.1);
}

/* Mobile Responsiveness for Carousel Section */
@media (max-width: 768px) {
  .carousel-section {
    padding: 40px 15px;
  }
  
  .process-flow-container {
    max-width: 90vw;
  }
  
  .process-flow-container h3 {
    font-size: 28px;
  }
  
  .process-flow-container p {
    font-size: 14px;
  }
  
  .carousel {
    max-width: 90vw;
  }
  
  .slide-caption {
    font-size: 16px;
    padding: 15px;
  }
  
  .prev, .next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .carousel-indicators .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-section {
    padding: 30px 10px;
  }
  
  .process-flow-container {
    max-width: 95vw;
  }
  
  .process-flow-container h3 {
    font-size: 24px;
  }
  
  .process-flow-container p {
    font-size: 13px;
  }
  
  .carousel {
    max-width: 95vw;
    border-radius: 8px;
  }
  
  .slide-caption {
    font-size: 14px;
    padding: 12px;
  }
  
  .prev, .next {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .carousel-indicators {
    bottom: 10px;
  }
  
  .carousel-indicators .dot {
    width: 8px;
    height: 8px;
    gap: 8px;
  }
}

@media (max-width: 320px) {
  .process-flow-container h3 {
    font-size: 20px;
  }
  
  .carousel {
    max-width: 100vw;
    border-radius: 6px;
  }
  
  .prev, .next {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  
  .carousel-indicators .dot {
    width: 6px;
    height: 6px;
  }
}

/* Lightbox overlay */
.lightbox {
  display: none;                /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Close button */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 1001;
}

/* Lightbox image */
.lightbox-image {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.1s ease-out;
}

.lightbox-image:active {
  cursor: grabbing;
}

/* Prev/Next inside lightbox */
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.4);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-track {
  display: flex;
  transition: transform 0.3s ease; /* smooth slide */
  will-change: transform;
  max-width: 90%;
  max-height: 80%;
  overflow: hidden;
}

.lightbox-track img {
  flex-shrink: 0;
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Only hide progress bar while lightbox is open */
.hidden-during-lightbox {
  visibility: hidden;
}

/* Hide burger menu when lightbox is open */
.lightbox-open .burger-menu {
  display: none !important;
}

/* Hide lightbox navigation buttons on mobile */
@media (max-width: 768px) {
    .steps-container {
        padding: 10px;
        gap: 30px;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .step {
        flex: 1 1 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 10px 10px;
    }
}

@media (max-width: 480px) {
    .how-to-section {
        padding: 40px 20px;
        width: 100%;
    }

    .how-to-section h2 {
        font-size: 28px;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .how-to-section .subtitle {
        font-size: 13px;
        padding: 0 20px;
        margin-bottom: 35px;
        max-width: 320px;
    }

    .steps-container {
        gap: 35px;
        padding: 0 15px;
    }

    .step {
        padding: 10px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .icon-circle {
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
    }

    .icon-circle i {
        font-size: 28px;
    }

    .step h3 {
        font-size: 18px;
        margin-bottom: 12px;
        width: 100%;
        text-align: center;
    }

    .step p {
        font-size: 13px;
        line-height: 1.6;
        max-width: 280px;
        margin: 0 auto;
        text-align: center;
    }
}

/* About Page */
.about_page {
  width: 100%;
  min-height: 145vh;
  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;
}

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

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

.about-container p {
  font-size: 14px;
  text-align: left;
  flex: 2;
  max-width: 45vw;
  line-height: 1.7;
}

.mvv-block {
  display: flex;
  margin: 0 auto;
  margin-top: 5%;
  max-width: 65vw;
  align-items: center;
  justify-content: center;
  padding: 0 auto;
  gap: 2%;
}

.image-m img {
  max-width: 95%;
  height: auto;
  border-radius: 8px;
}

.content {
  padding: 0% auto;
  line-height: 1.7;
}

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

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

.v-block {
  display: flex;
  flex-direction: row-reverse;
  margin: 0 auto;
  margin-top: 5%;
  max-width: 65vw;
  align-items: center;
  justify-content: center;
  padding: 0 auto;
}

.image-v img {
  max-width: 17vw;
  height: 23vh;
  border-radius: 8px;
  margin-left: 30px;
}

.v-block .content {
  padding: 0% auto;
  line-height: 1.7;
}

.v-block .content h3 {
  font-size: 35px;
  text-align: right;
}

.v-block .content p {
  font-size: 14px;
  text-align: justify;
}

/* About Members */
.about_members {
  width: auto;
  min-height: 90vh;
}

.about_members .container {
  max-width: 65vw;
  margin: 0 auto;
  padding: 20px;
  color: rgb(4, 72, 24);
}

.about_members h3 {
  margin-top: 5%;
  text-align: center;
  margin-bottom: 15px;
  font-size: 35px;
}

.about_members p {
  text-align: justify;
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 14px;
}

.members {
  display: flex;
  gap: 10%;
  justify-content: center;
}

.member-card {
  text-align: center;
  padding: 15px 15px; 
  width: 70%;
  border-radius: 5px;
  transition: transform 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

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

.member-card p {
  font-size: 0.9rem;
  color: #555;
  margin-top: 4px;
  text-align: center;
}

.member-card img {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
}

.member-card:hover {
  transform: scale(1.05);
  animation: rainbowBG 5s linear infinite;
}

.member-card:hover img {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg) }
  to { transform: rotate(360deg) }
}

@keyframes rainbowBG {
  0%   { background-color: rgb(255, 99, 132); }
  20%  { background-color: rgb(255, 206, 86); }
  40%  { background-color: rgb(75, 192, 192); }
  60%  { background-color: rgb(54, 162, 235); }
  80%  { background-color: rgb(153, 102, 255); }
  100% { background-color: rgb(255, 99, 132); }
}

/* Resources Section */
.resources {
  background: #f9f9f9;
  padding: 60px 20px;
  font-family: Arial, sans-serif;
}

.resources-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.resources h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: rgb(4, 72, 24);
}

.resources-subtitle {
  font-size: 1rem;
  margin-bottom: 40px;
  color: #555;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.resource-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.resource-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: rgb(4, 72, 24);;
}

.resource-card p {
  font-size: 0.95rem;
  color: rgb(4, 72, 24);
  margin-bottom: 20px;
  line-height: 1.5;
}

.download-btn {
  display: inline-block;
  padding: 10px 18px;
  background: rgb(4, 72, 24);
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background:  #f16901;
}

/* ADD THIS: KEvin */
#backToTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

/* 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;
  }


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

  .left-logo { align-items: 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; }

  .home_page-title { margin-top: 18vh; }

  .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;
    flex-direction: column;
    gap: 40px;
  }

  .about-container img {
    max-width: 100%;
  }

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

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

  .mvv-block {
    max-width: 90vw;
    flex-direction: column;
    gap: 20px;
  }

  .v-block {
    max-width: 90vw;
    flex-direction: column;
    gap: 20px;
  }

  .image-v img {
    max-width: 200px;
    height: auto;
    margin-left: 0;
  }

  .v-block .content h3 {
    text-align: center;
  }

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

  /* Members Tablet */
  .about_members .container {
    max-width: 90vw;
  }

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

  .members {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .member-card {
    width: 300px;
  }

  /* Carousel Tablet */
  .carousel {
    max-width: 90vw;
    margin: 30px auto;
  }

  .prev, .next {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .carousel-indicators .dot {
    width: 8px;
    height: 8px;
  }
}

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

  .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;
  }

  .home_page-title {
    margin-top: 18vh;
    padding: 0 20px;
    padding-top: 10px;
  }

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

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

  /* Force one-liner for university name on mobile */
  .logo-text h3 {
    white-space: nowrap;
  }

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

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

  .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;
  }

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

  .mvv-block {
    max-width: 95vw;
    margin-top: 8%;
  }

  .v-block {
    max-width: 95vw;
    margin-top: 8%;
  }

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

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

  .image-v img {
    max-width: 150px;
  }

  /* Members Mobile */
  .about_members .container {
    max-width: 95vw;
    padding: 10px;
  }

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

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

  .member-card {
    width: 250px;
  }

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

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

  /* Resources Mobile */
  .resources {
    padding: 40px 15px;
  }

  .resources h2 {
    font-size: 1.5rem;
  }

  .resource-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .resource-card {
    padding: 20px;
  }

  .resource-card h3 {
    font-size: 1.1rem;
  }

  .resource-card p {
    font-size: 0.9rem;
  }

  /* Carousel Mobile */
  .carousel {
    max-width: 95vw;
    margin: 20px auto;
  }

  .prev, .next {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .carousel-indicators .dot {
    width: 6px;
    height: 6px;
  }
}

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

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

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

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

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

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

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

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

  .about_members h3 {
    font-size: 20px;
  }

  .member-card {
    width: 200px;
  }

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

  /* Carousel Extra Small */
  .carousel {
    max-width: 100vw;
    margin: 15px auto;
  }

  .prev, .next {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .carousel-indicators .dot {
    width: 5px;
    height: 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);
}

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

/* Footer responsive tweaks */
.footer {
  position: relative;
  background: url("img/psu_bg.jpg") no-repeat center center/cover;
  min-height: 30vh;
  color: white;
  text-align: center;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 0;
}

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

.footer-top { margin-top: 0; margin-bottom: 10px; }
.footer-top h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.footer-top h4 {
  font-style: italic;
  font-weight: bold;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.4;
}

/* Constrain inner content width for balanced alignment */
.footer .footer-top,
.footer .footer-links,
.footer .footer-bottom {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* Removed social icons block to simplify footer */

.footer-links {
  margin: 12px auto;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links a {
  color: #ddd;
  margin: 0 5px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #fff;
}

.footer-bottom {
  margin-top: 12px;
  font-size: 13px;
  color: #bbb;
}

/* Footer responsive tweaks */
@media (max-width: 768px) {
  .footer { padding: 30px 16px 14px; }
  .footer-top h3 { font-size: 18px; margin: 8px 0; }
  .footer-top h4 { font-size: 14px; margin: 6px 0; }
  .footer-top p { margin: 8px 0; }
  .footer-links { font-size: 13px; margin: 12px 0; }
  /* social icons removed */
  .footer-bottom { margin-top: 15px; }
}

@media (max-width: 480px) {
  .footer { padding: 24px 14px 12px; }
  .footer-top h3 { font-size: 16px; margin: 6px 0; }
  .footer-top h4 { font-size: 13px; margin: 5px 0; }
  .footer-top p { margin: 6px 0; }
  .footer-links { font-size: 12px; margin: 10px 0; }
  /* social icons removed */
  .footer-bottom { margin-top: 12px; }
}
/* How-to */
.how-to-section {
  background: #f6f7f8;
  padding: 60px 20px;
  text-align: center;
}

.how-to-section h2 {
  font-size: 32px;
  color: #2d5a2f;
  margin-bottom: 10px;
}

.how-to-section .subtitle {
  font-size: 16px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 250px;
  text-align: center;
}

.icon-circle {
  width: 60px;
  height: 60px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: #fff;
  font-size: 24px;
}

.step h3 {
  font-size: 18px;
  color: #1b3d1e;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

.login-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.login-btn {
  background: transparent;
  color: white;
  border: 2px solid #ffffff;
  padding: 25px 45px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-btn:hover {
  background: #ff8400;
  color: #ffffff;
  /* Removed transform: translateY(-2px) to keep button fixed */
  box-shadow: 0 6px 20px rgba(255, 132, 0, 0.3);
  border: 2px solid #ff8400;
}

.login-btn:active {
  /* Removed transform: translateY(0) to keep button fixed */
  box-shadow: 0 4px 15px rgba(255, 132, 0, 0.2);
}

.login-btn i {
  font-size: 14px;
}

/* Mobile Responsiveness for Login Button */
@media (max-width: 768px) {
  .login-btn {
    padding: 12px 28px;
    font-size: 14px;
  }
  
  .login-container {
    margin-top: 25px;
  }
}

@media (max-width: 480px) {
  .login-btn {
    padding: 10px 25px;
    font-size: 13px;
  }
  
  .login-container {
    margin-top: 20px;
  }
}

/* FAQ Section Styles */
.faq-section {
  background: #ffffff;
  padding: 60px 20px;
  color: rgb(4, 72, 24);
}

.faq-container {
  max-width: 65vw;
  margin: 0 auto;
}

.faq-container h3 {
  font-size: 35px;
  margin-bottom: 15px;
  color: rgb(4, 72, 24);
  text-align: center;
  font-weight: 600;
}

.faq-container > p {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid #f16901;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(135deg, #f0f8ff, #f9f9f9);
}

.faq-question h4 {
  font-size: 16px;
  font-weight: 600;
  color: rgb(4, 72, 24);
  margin: 0;
  flex: 1;
  padding-right: 15px;
}

.faq-question i {
  font-size: 14px;
  color: #f16901;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 10px 20px 15px 20px; /* Equal padding on all sides */
}

.faq-answer p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
  text-align: left; /* Align the answer text */
  max-width: 100%; /* Ensure it doesn't overflow */
}

.faq-item.active {
  background: #ffffff;
  border-left-color: #4caf50;
}

.faq-item.active .faq-question {
  background: linear-gradient(135deg, #f0f8ff, #ffffff);
  border-bottom: 1px solid rgba(4, 72, 24, 0.1);
}

/* FAQ Mobile Responsive Styles */
@media (max-width: 768px) {
  .faq-section {
    padding: 50px 15px;
  }
  
  .faq-container {
    max-width: 90vw;
  }
  
  .faq-container h3 {
    font-size: 28px;
  }
  
  .faq-question {
    padding: 18px 20px;
  }
  
  .faq-question h4 {
    font-size: 15px;
  }
  
  .faq-item.active .faq-answer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 40px 10px;
  }
  
  .faq-container {
    max-width: 95vw;
  }
  
  .faq-container h3 {
    font-size: 24px;
  }
  
  .faq-container > p {
    font-size: 13px;
    margin-bottom: 30px;
  }
  
  .faq-question {
    padding: 15px 18px;
    flex-direction: row;
  }
  
  .faq-question h4 {
    font-size: 14px;
    padding-right: 10px;
  }
  
  .faq-question i {
    font-size: 12px;
  }
  
  .faq-item.active .faq-answer {
    padding: 18px;
  }
  
  .faq-answer p {
    font-size: 13px;
  }
}

@media (max-width: 320px) {
  .faq-container h3 {
    font-size: 20px;
  }
  
  .faq-question {
    padding: 12px 15px;
  }
  
  .faq-question h4 {
    font-size: 13px;
  }
  
  .faq-item.active .faq-answer {
    padding: 15px;
  }
}