/* index/index.css */

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* ------------------ NAVBAR ------------------ */
.navbar {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.7), rgba(50, 50, 50, 0.6), rgba(255, 255, 0, 0.5));
  background-size: 600% 600%;
  animation: gradientShift 8s ease infinite;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 9999;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 36px;
}

.site-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 8px 10px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007BFF;
}

/* Dropdown Fullscreen Popup */
.dropdown-content {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 60px);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 40px 20px;
  z-index: 999;
  overflow-y: auto;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: start;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
}

.dropdown:hover .dropdown-content {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-content a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  width: 200px;
  padding: 15px;
  background: #f1f1f1;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.dropdown-content a img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.dropdown-content a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.user {
  background-color: #007BFF;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
  }
  .nav-links.active {
    display: flex;
  }
  .dropdown-content {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px;
    flex-direction: column;
  }
}

/* ------------------ CAROUSEL ------------------ */
.carousel-section {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  background: #000;
  z-index: 9;
}

.carousel-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.carousel-item iframe {
  width: 90%;
  height: 90%;
  max-width: 960px;
  max-height: 500px;
  border-radius: 10px;
  border: none;
  object-fit: cover;
}

.video-title {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.carousel-item:hover .video-title {
  opacity: 1;
  transform: translateY(0);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev {
  left: 15px;
}
.carousel-btn.next {
  right: 15px;
}

.dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dots span {
  width: 10px;
  height: 10px;
  background: #aaa;
  border-radius: 50%;
  cursor: pointer;
}

.dots .active {
  background: #fff;
}

/* Responsive carousel */
@media (max-width: 768px) {
  .carousel-section {
    height: 150px;
  }
  .carousel-item iframe {
    width: 100%;
    height: 90%;
  }
}

.latest-section {
  position: relative;
  width: 100%;
  height: 500px;
  background: #000;
  overflow: hidden;
}

.latest-title {
  text-align: center;
  color: white;
  font-size: 28px;
  margin: 20px 0;
  z-index: 2;
  position: relative;
}

.latest-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.latest-carousel {
  display: flex;
  height: 100%;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.latest-card {
  flex: 0 0 100vw;
  height: 100%;
  position: relative;
  scroll-snap-align: start;
}

.latest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest-card .info {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.latest-card .info h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.latest-card .info p {
  margin: 0;
  font-size: 14px;
}

.highlights {
  display: inline-block;
  margin-top: 10px;
  background-color: #ffda44;
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 12px;
}

.latest-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.latest-btn.left {
  left: 10px;
}

.latest-btn.right {
  right: 10px;
}

@media (max-width: 768px) {
  .latest-section {
    height: 350px;
  }
  .latest-card .info h3 {
    font-size: 16px;
  }
  .latest-card .info p {
    font-size: 12px;
  }
}

.about-hierarchy-section {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #f9fafc, #f0f2f5);
  text-align: center;
}

.about-heading {
  font-size: 36px;
  color: #333;
  margin-bottom: 40px;
  font-weight: 600;
}

.tree-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tree-node {
  background-color: #007bff;
  color: white;
  padding: 16px 22px;
  border-radius: 30px;
  margin: 20px 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, background 0.3s;
}

.tree-node:hover {
  transform: scale(1.05);
  background-color: #0056b3;
}

.tree-node.root {
  font-size: 20px;
  background-color: #ffbf00;
  color: #333;
  padding: 20px 30px;
}

.branches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
}

.info-box {
  margin-top: 40px;
  background: #ffffff;
  border-left: 5px solid #007bff;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin-inline: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

#info-title {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}

#info-desc {
  font-size: 16px;
  color: #555;
}

@media (max-width: 768px) {
  .branches {
    flex-direction: column;
    gap: 15px;
  }

  .tree-node {
    width: 80%;
    margin: auto;
  }
}
