* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0f0f0f;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
}

.main {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

.gallery-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628 0%, #0e357e 50%, #1a0a2e 100%);
  overflow: hidden;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(244, 197, 18, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(14, 55, 126, 0.3) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("assets/image/bg1.png") center/cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.3) 0%,
    rgba(10, 22, 40, 0.5) 50%,
    rgba(10, 22, 40, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #f4c512;
}

.hero-subtitle {
  display: inline-block;
  color: #f4c512;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 20px;
  padding: 8px 20px;
  border: 1px solid rgba(244, 197, 18, 0.3);
  border-radius: 30px;
  background: rgba(244, 197, 18, 0.1);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #f4c512 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #f4c512 0%, #e6b000 100%);
  color: #0c1931;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(244, 197, 18, 0.3);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(244, 197, 18, 0.4);
}

.hero-btn i {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(5px);
  }
  60% {
    transform: translateY(3px);
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

.gallery-section {
  background: #fafbfc;
  min-height: 100vh;
}

.gallery-container {
  display: flex;
  min-height: 100vh;
}

.gallery-sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  padding: 30px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 25px 20px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
}

.sidebar-header i {
  font-size: 1.5rem;
  color: #6366f1;
}

.sidebar-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

.gallery-search {
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper > i {
  position: absolute;
  left: 12px;
  color: #9ca3af;
  font-size: 0.85rem;
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 36px 10px 36px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.85rem;
  font-family: "Poppins", sans-serif;
  background: #f9fafb;
  color: #374151;
  transition: all 0.25s ease;
  outline: none;
}

.search-input-wrapper input:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input-wrapper input::placeholder {
  color: #9ca3af;
}

.search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.search-clear:hover {
  color: #374151;
}

.search-clear.hidden {
  display: none;
}

.tenure-list {
  list-style: none;
  padding: 10px 15px;
}

.tenure-loading,
.tenure-empty {
  padding: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

.tenure-loading i {
  margin-right: 8px;
}

.tenure-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 8px;
}

.tenure-item:hover {
  background: #f3f4f6;
}

.tenure-item.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.tenure-year {
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
  transition: color 0.25s ease;
}

.tenure-item.active .tenure-year {
  color: #ffffff;
}

.tenure-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 20px;
}

.tenure-item.active .tenure-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.gallery-main {
  flex: 1;
  padding: 30px 4%;
  overflow-y: auto;
}

.gallery-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.crumb {
  font-size: 0.9rem;
  color: #6b7280;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crumb:hover {
  background: #f3f4f6;
  color: #374151;
}

.crumb.active {
  color: #6366f1;
  font-weight: 600;
  cursor: default;
}

.crumb.active:hover {
  background: transparent;
}

.crumb-sep {
  color: #d1d5db;
  font-size: 0.75rem;
}

.view-header {
  margin-bottom: 35px;
}

.view-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.view-header p {
  color: #6b7280;
  font-size: 1rem;
}

.view-header .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #f3f4f6;
  border: none;
  border-radius: 10px;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 20px;
}

.view-header .back-btn:hover {
  background: #e5e7eb;
  transform: translateX(-4px);
}

.gallery-view.hidden {
  display: none;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.category-info {
  flex: 1;
}

.category-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.category-info p {
  font-size: 0.85rem;
  color: #6b7280;
}

.category-arrow {
  color: #d1d5db;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
  color: #6366f1;
  transform: translateX(4px);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.event-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s ease;
  border: 1px solid #e5e7eb;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.event-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-cover img {
  transform: scale(1.08);
}

.event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: flex-end;
  padding: 15px;
}

.photo-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.event-info {
  padding: 18px;
}

.event-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #6b7280;
}

.event-date i {
  color: #6366f1;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #9ca3af;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 1.1rem;
}

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 1rem;
}

.loading-state i {
  font-size: 2rem;
  margin-bottom: 15px;
  display: block;
  color: #6366f1;
}

.avenue-direct-photos {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e5e7eb;
}

.avenue-direct-photos.hidden {
  display: none;
}

.direct-photos-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.direct-photos-title i {
  color: #6366f1;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.photo-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: #e5e7eb;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover img {
  transform: scale(1.1);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay i {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 1.1rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay i {
  transform: scale(1);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 15px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.photo-item:hover .photo-caption {
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
}

.lightbox[aria-hidden="false"] {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
}

.lb-counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
}

.lb-close {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lb-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 80px 40px;
}

.lb-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lb-caption {
  margin-top: 20px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-prev {
  left: 25px;
}
.lb-next {
  right: 25px;
}

.lb-prev:hover,
.lb-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 1024px) {
  .gallery-sidebar {
    width: 240px;
  }

  .gallery-main {
    padding: 25px 4%;
  }
}

@media (max-width: 900px) {
  .gallery-container {
    flex-direction: column;
  }

  .gallery-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
  }

  .gallery-search {
    padding: 10px 20px;
  }

  .tenure-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 15px 0;
  }

  .tenure-item {
    padding: 10px 16px;
    margin-bottom: 0;
  }

  .sidebar-header {
    padding: 0 20px 15px;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    min-height: 90vh;
  }

  .gallery-main {
    padding: 20px 4%;
  }

  .categories-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .lb-content {
    padding: 0 20px 30px;
  }

  .lb-prev {
    left: 10px;
  }
  .lb-next {
    right: 10px;
  }

  .lb-prev,
  .lb-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-btn {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .view-header h2 {
    font-size: 1.5rem;
  }

  .gallery-breadcrumb {
    padding: 12px 15px;
    overflow-x: auto;
  }

  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .main {
    position: fixed;
    z-index: 1100;
  }

  .main nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
  }

  .main nav .nav-menu {
    z-index: 1150 !important;
  }

  .main nav .menu-toggle {
    z-index: 1160 !important;
  }
}

footer {
  margin-top: 0;
}
