/*=========================
  Media Page Background
=========================*/
/*=========================
  Glassy Navbar
=========================*/


.logout-btn {
  display: inline-block;
  padding: 8px 14px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #c0392b, #922b21);
}
.bounce-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  animation: bounce 2s infinite;
  transition: all 0.3s ease-in-out;
}

.bounce-btn:hover {
  background: linear-gradient(135deg, #ff9966, #ff5e62);
  transform: scale(1.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-8px);
  }
}

.glassy-navbar {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-logo span {
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(28, 194, 51, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile Responsive - Updated */
@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 20px 0;
    gap: 0;
  }

  /* Changed from .nav-menu.active to .nav-menu.show */
  .nav-menu.show {
    left: 0;
  }

  .nav-item {
    margin: 15px 0;
  }

  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
body {
  margin: 0;
  padding: 0;
  background: url('/images/it3.webp') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Segoe UI', sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
}
/*=========================
  Glassy Filter Panel
=========================*/
.filter-panel {
  background: rgba(255, 255, 255, 0.08); /* glassy panel */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  padding: 20px 30px;
  margin: 30px auto;
  text-align: center;
  max-width: 900px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 12px rgba(28, 194, 51, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.filter-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 18px rgba(28, 194, 51, 0.7);
}

/* Inline controls */
.filter-panel label {
  color: #fff;
  font-weight: bold;
  margin-right: 10px;
}

.filter-panel select,
.filter-panel input[type="text"] {
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.25);
  color: #fff;
  margin-bottom: 10px;
  transition: background 0.3s ease, border 0.3s ease;
}

.filter-panel select:hover,
.filter-panel input[type="text"]:hover,
.filter-panel select:focus,
.filter-panel input[type="text"]:focus {
  background: rgba(0,0,0,0.35);
  border-color: #1cc233;
  outline: none;
  color: #fff;
}

/* Media navigation buttons inside filter panel */
.media-nav {
  margin-top: 15px;
}

.media-nav button {
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid #28a745;
  background: rgba(0,0,0,0.25);
  color: #28a745;
  font-weight: 600;
  cursor: pointer;
  margin: 5px;
  transition: all 0.3s ease;
}

.media-nav button:hover {
  background: #28a745;
  color: #fff;
  transform: translateY(-2px);
}

/*=========================
  Wrapper
=========================*/
.media-page-wrapper {
  max-width: 1200px;
  margin: 50px auto;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
  color: #fff;
}

/*=========================
  Section Titles
=========================*/
.media-page-wrapper h3 {
  font-size: 26px;
  color: #cba135;
  margin-bottom: 20px;
  text-align: center;
}

/*=========================
  Media Card (Glassy)
=========================*/
.media-info {
  background: rgba(27, 94, 32, 0.9); /* deep green with opacity */
  padding: 12px;
  border-radius: 8px;
  margin-top: -5px;
  color: #fff;
  text-align: left;
}

.media-info strong {
  font-size: 18px;
  color: #ffd700;
  display: block;
  margin-bottom: 6px;
}

.meta-date {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 6px;
  margin-bottom: 8px; /* pushes download button below */
  color: #fff;
}

.media-info .download-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #ffd700;
  color: #1B5E20;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.media-info .download-btn:hover {
  background: #e6c200;
}

.media-card.fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}


.media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.media-card img,
.media-card video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

/*=========================
  Media Info
=========================*/
.media-info p {
  margin: 5px 0;
}

.media-info strong {
  font-size: 18px;
  color: #ffd700;
}

.meta-date {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 6px;
}
/*=========================
  Unified Glassy Header Style
=========================*/
.glassy-header {
  display: inline-block; /* inline for alignment */
  background: rgba(255, 255, 255, 0.1); /* glassy */
  color: #ffffff; /* white text */
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 0 12px rgba(28, 194, 51, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  margin: 10px 0;
  cursor: default;
}

.glassy-header:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 20px rgba(28, 194, 51, 0.8);
}
.load-more-btn {
  margin: 20px auto;
  display: block;
  background: #196b3f;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}
.load-more-btn:hover {
  background: #145330;
}


.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1500;
}

.floating-buttons button {
  background: #196b3f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.3s;
}

.floating-buttons button:hover {
  background: #145330;
  transform: scale(1.1);
}

.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.floating-buttons.show {
  opacity: 1;
  visibility: visible;
}

.floating-buttons button {
  background: #196b3f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.3s;
}

.floating-buttons button:hover {
  background: #145330;
  transform: scale(1.1);
}

/*=========================
  Specific usage
=========================*/
.media-header {
  text-align: center;
  margin: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glassy-header {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 24px;
  display: inline-block;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glassy-header:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.school-name {
  font-size: 1.6rem;
}

.gallery-title {
  font-size: 2rem;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .school-name {
    font-size: 1.3rem;
  }
  .gallery-title {
    font-size: 1.6rem;
  }
}

.media-header .school-name,
.media-header .gallery-title,
#photosSection h3,
#videosSection h3 {
  composes: glassy-header;
  display: block; /* full width for these titles */
  margin-left: auto;
  margin-right: auto;
  font-size: 24px;
}



/*=========================
  Media Group Titles
=========================*/
.gallery-group h4 {
  display: inline-block;
  background: linear-gradient(135deg, #28a745, #196b3f);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

/* Hover effect for extra pop */
.gallery-group h4:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* Optional: add a subtle glow animation */
@keyframes glow {
  0%, 100% { text-shadow: 0 0 6px #fff, 0 0 10px #28a745; }
  50% { text-shadow: 0 0 12px #fff, 0 0 20px #28a745; }
}

.gallery-group h4.glow {
  animation: glow 2.5s infinite;
}

.gallery-group {
  text-align: center; /* centers all content inside the group container */
}

/*=========================
  Buttons
=========================*/
.download-btn,
.like-btn,
.comment-btn {
  display: inline-block;
  margin: 5px 5px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #28a745;
  background: transparent;
  color: #28a745;
  transition: all 0.3s ease;
}

.download-btn:hover,
.like-btn:hover,
.comment-btn:hover {
  background: #28a745;
  color: #fff;
}

/*=========================
  Comments Box
=========================*/
.comments-box {
  margin-top: 10px;
  display: none;
  text-align: left;
}

.comments-box.open {
  display: block;
}

.comments-list {
  max-height: 100px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.comment-input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.3);
  color: #fff;
}
/* =========================
   Comment Items
========================= */
.comment-item {
  background: rgba(27, 94, 32, 0.2); /* translucent green background */
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff; /* make text visible */
  margin-bottom: 6px;
}

.comment-item:last-child {
  margin-bottom: 0;
}

.comment-user {
  font-weight: bold;
  color: #1b5e20; /* strong green for usernames */
  display: block;
  margin-bottom: 2px;
}

.comment-time {
  font-size: 12px;
  color: #ccc; /* subtle gray for timestamps */
  margin-left: 4px;
}

.comment-text {
  margin-top: 2px;
  color: #fff; /* ensure comment body is readable */
}


/*=========================
  Lightbox
=========================*/
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.lightbox-actions {
  position: absolute;
  top: 20px;
  right: 20px;
}

.action-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 6px 10px;
  margin-left: 6px;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.action-btn:hover {
  background: #28a745;
}

/*=========================
  Responsive Grid
=========================*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
/*=========================
  Glassy Footer
=========================*/
.site-footer {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 40px 0 20px;
  margin-top: 60px;
  text-align: center;
  color: #fff;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-container h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #cba135;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 30px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-icons a:hover {
  background: rgba(40, 167, 69, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25), 0 0 12px rgba(28, 194, 51, 0.4);
}

.social-icons i {
  font-size: 1.2rem;
}

.footer-container p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .social-icons {
    gap: 15px;
  }
  
  .social-icons a {
    width: 40px;
    height: 40px;
  }
  
  .social-icons i {
    font-size: 1.1rem;
  }
  
  .footer-container h4 {
    font-size: 1.3rem;
  }
}