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

/* 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: 50vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  
}

.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);
  backdrop-filter: blur(5px);
}

.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;
  margin-top: 6vh;
}

.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: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #e7e1e1;
  z-index: 1000;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  width: 100%;
}

.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;
  background: #e7e1e1;
}

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

/* Resources Image Section - Refined Design */
.resources-image-section {
    padding: 40px 20px;
    background-color: #fff9f9; /* Match body background */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-bottom: 1px solid #e9ecef; /* Subtle separation */
}

.resources-image-container {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 95, 63, 0.08); /* Subtle green tint */
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.resources-image-container:hover {
    box-shadow: 0 8px 32px rgba(26, 95, 63, 0.15);
    transform: translateY(-2px);
}

/* Desktop hover effects */
@media (hover: hover) and (pointer: fine) {
    .resources-image-container:hover {
        box-shadow: 0 10px 36px rgba(0, 0, 0, 0.15);
    }
    
    .clickable-image-wrapper:hover img {
        transform: scale(1.01);
    }
    
    .clickable-image-wrapper:hover .image-overlay {
        opacity: 1;
    }
}

.image-title {
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.image-title h3 {
    color: #1a5f3f; /* Match site's primary color */
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

/* Desktop hover effects */
@media (hover: hover) {
    .image-title h3:hover {
        color: #257c46; /* Consistent green hover */
        transform: translateY(-1px);
        text-shadow: 0 2px 8px rgba(26, 95, 63, 0.2);
    }
}

.image-title p {
    color: #6c757d; /* Subtle gray for description */
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    font-style: normal; /* Remove italic for cleaner look */
}

.clickable-image-wrapper {
    display: none; /* Hide the entire image wrapper */
}

.clickable-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 95, 63, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none; /* Prevent accidental touches */
}

.image-overlay i {
    color: white;
    font-size: 2rem;
}

/* Requirements Lightbox */
.requirements-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    touch-action: none; /* Prevent page zoom on touch */
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none; /* Prevent page zoom on touch */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #f16901;
}

#lightboxRequirementsImg {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    cursor: zoom-in;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    touch-action: none; /* Prevent page zoom on touch */
    user-select: none; /* Prevent image selection */
}

/* Cursor states for different zoom levels */
#lightboxRequirementsImg.zoomed {
    cursor: grab;
}

#lightboxRequirementsImg.zoomed:active {
    cursor: grabbing;
}

/* Prevent page zoom when Ctrl+scroll is used on lightbox */
.requirements-lightbox * {
    touch-action: none;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .resources-image-section {
        padding: 30px 15px;
    }
    
    .resources-image-container {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 8px;
    }
    
    .image-title {
        padding: 20px;
    }
    
    .image-title h3 {
        font-size: 1.2rem;
    }
    
    .image-title p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .lightbox-content {
        padding: 10px;
    }
    
    .lightbox-close {
        right: 20px;
        font-size: 30px;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .resources-image-section {
        padding: 20px 10px;
    }
    
    .resources-image-container {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 8px;
    }
    
    .image-title {
        padding: 16px;
    }
    
    .image-title h3 {
        font-size: 1.1rem;
    }
    
    .image-title p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .lightbox-close {
        right: 15px;
        top: 15px;
        font-size: 25px;
    }
    
    #lightboxRequirementsImg {
        max-height: 85vh;
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .resources-image-section {
        padding: 15px 5px;
    }
    
    .resources-image-container {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .image-title {
        padding: 14px;
    }
    
    .image-title h3 {
        font-size: 1rem;
    }
    
    .image-title p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* Resources Section */
.resources {
    padding-bottom: 100px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* Change from center to flex-start */
    margin-top: 70px;
}
.resources-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative; /* Add position relative */
}

.resources-header {
    text-align: center;
    margin-bottom: 30px;
}

.resources h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a5f3f;
    letter-spacing: -0.02em;
}

.resources-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Search and Filter Styles */
.search-container {
    position: sticky;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 1rem;
  width: 70%;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem; /* notice right padding makes space for the icon */
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
}

.search-btn {
  position: absolute;
  right: 1.5rem;   /* was 1rem → moves button slightly left */
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 1.2rem;

  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;

  outline: none; /* prevent default focus outline */
}

/* ✅ Add this below */
.search-btn i {
  left: 0.3rem;
  font-size: 1.2rem;
  color: inherit;
  pointer-events: none;
}

.search-btn:hover i {
  color: #257c46; /* green on hover */
}

.search-btn:active i {
  color: #1b5e34; /* darker green when pressed */
}

#formSearch {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#formSearch:focus {
    border-color: #257c46;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,124,70,0.1);
}

.fa-search {
    position: absolute;
    right: 1.5rem;    /* Position from right edge */
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 70%;       /* Match search bar width */
    justify-content: center;
}

.filter-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag:hover {
    background: #eee;
}

.filter-tag.active {
    background: #257c46;
    color: white;
    border-color: #257c46;
}

.tag-count {
    background: rgba(0,0,0,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.filter-tag.active .tag-count {
    background: rgba(255,255,255,0.2);
}


/* Form Sections Styles */
.forms-section {
    margin: 0 auto 1rem auto;
    max-width: 700px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.forms-sections-container {
    position: relative;  /* Add position relative */
    width: 100%;
}

.section-header {
    padding: 1rem 1.5rem;
    background: #257c46;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-content {
    max-height: 0;           /* Fixed height for scroll */
    overflow-y: auto;            /* Enable vertical scrolling */
    padding: 0; 
}

/* Custom scrollbar styling */
.section-content::-webkit-scrollbar {
    width: 8px;                  /* Scrollbar width */
}

.section-content::-webkit-scrollbar-track {
    background: #f1f1f1;         /* Track color */
    border-radius: 4px;
}

.section-content::-webkit-scrollbar-thumb {
    background: #257c46;         /* Handle color */
    border-radius: 4px;
}

.section-content::-webkit-scrollbar-thumb:hover {
    background: #1b5a32;         /* Handle hover color */
}

.form-card {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.form-card h4,
.form-card p {
    color: #2E5730;
}

.form-card:hover {
    background-color: #f9f9f9;
}

.form-card:last-child {
    border-bottom: none;
}

.form-tags {
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form-tag {
    padding: 0.2rem 0.8rem;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #257c46;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #1b5a32;
}

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .resources {
                padding: 60px 16px;
            }

            .resources h2 {
                font-size: 2.25rem;
                margin-bottom: 12px;
            }

            .resources-subtitle {
                font-size: 1rem;
            }

            .resources-header {
                margin-bottom: 40px;
            }

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

            .resource-card {
                padding: 18px 16px;
                height: 140px;
            }

            .resource-card h3 {
                font-size: 11px;
            }

            .resource-card p {
                font-size: 10px;
                margin-bottom: 16px;
            }

            .download-btn {
                padding: 7px 14px;
                font-size: 10px;
                width: 100%;
                min-width: 70px;
            }
        }

        @media (max-width: 480px) {
            .resources {
                padding: 40px 12px;
            }

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

            .resource-card {
                padding: 16px 14px;
                height: 120px;
            }

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

        /* Tablet specific adjustments */
        @media (min-width: 769px) and (max-width: 1024px) {
            .resource-list {
                grid-template-columns: repeat(2, 1fr);
                gap: 28px;
            }
        }

        /* Animation for cards appearing */
        .resource-card {
            opacity: 0;
            animation: slideUp 0.6s ease forwards;
        }

        .resource-card:nth-child(1) { animation-delay: 0.1s; }
        .resource-card:nth-child(2) { animation-delay: 0.2s; }
        .resource-card:nth-child(3) { animation-delay: 0.3s; }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
/* 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;
  }

  /* Resources: search + tags responsive sizing */
  .search-container { padding: 1.25rem; }
  .search-input-wrapper { width: 100%; }
  #formSearch { padding: 0.8rem 2.5rem 0.8rem 1rem; font-size: 0.95rem; }
  .filter-tags { width: 100%; justify-content: center; gap: 0.4rem; }
  .filter-tag { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
  .tag-count { font-size: 0.75rem; }
  .download-btn { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  .bottom-nav {
    display: none;
  }

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

  /* Resources mobile: tighter search and tags */
  .search-container { padding: 1rem; }
  .search-input-wrapper { width: 100%; }
  #formSearch { padding: 0.7rem 2rem 0.7rem 0.9rem; font-size: 0.9rem; }
  .fa-search { right: 1rem; }
  .filter-tags { width: 100%; justify-content: center; gap: 0.35rem; }
  .filter-tag { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
  .tag-count { font-size: 0.7rem; }
  .download-btn { width: 100%; text-align: center; padding: 0.5rem 0.9rem; font-size: 0.85rem; }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
  .bottom-nav {
    display: none;
  }

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

#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 {
  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; }
  .footer-bottom { margin-top: 12px; }
}