@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-blue: #1e3a8a;
  --accent-yellow: #facc15;
  --text-gray: #64748b;
  --bg-light: #f8fafc;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-light);
  color: #334155;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-header {
  background: var(--primary-blue);
  color: white;
  padding: 40px 0 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-header h1 {
  font-size: 2.2rem;
  margin: 0;
}

.npp-badge {
  display: inline-block;
  background: var(--accent-yellow);
  color: var(--primary-blue);
  padding: 6px 20px;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.narrative-section {
  padding: 60px 0;
  background: white;
}
.narrative-content {
  max-width: 900px;
  margin: 0 auto;
}
.narrative-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  text-align: justify;
  line-height: 1.8;
  color: #475569;
}

.timeline-section {
  padding: 80px 0;
  background: #f1f5f9;
  overflow-x: hidden;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  color: var(--primary-blue);
  font-size: 2rem;
}
.horizontal-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 100px 0;
}
.horizontal-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #cbd5e1;
  transform: translateY(-50%);
}
.timeline-node {
  position: relative;
  width: 18%;
  text-align: center;
  z-index: 2;
}
.node-circle {
  width: 70px;
  height: 70px;
  background: white;
  border: 4px solid var(--primary-blue);
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-blue);
}
.node-desc {
  position: absolute;
  width: 180px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.node-up {
  bottom: 120%;
}
.node-down {
  top: 120%;
}
.node-desc h4 {
  margin: 0 0 5px;
  color: var(--primary-blue);
}

.org-section {
  padding: 80px 0;
  background: #f8fafc;
}

.custom-tree-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 850px;
  padding: 20px 0;
}

.ct-row {
  display: flex;
  justify-content: center;
}

.ct-middle-row {
  align-items: center;
  gap: 15px;
}

.ct-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ct-line-v {
  width: 2px;
  height: 20px;
  background-color: #60a5fa;
}
.ct-line-h {
  height: 2px;
  background-color: #60a5fa;
}

.ct-arrow-down {
  width: 2px;
  height: 20px;
  background-color: #60a5fa;
  position: relative;
}
.ct-arrow-down::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -4px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #60a5fa;
}

.ct-arrow-right {
  width: 40px;
  height: 2px;
  background-color: #60a5fa;
  position: relative;
}
.ct-arrow-right::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #60a5fa;
}

.ct-arrow-left {
  width: 40px;
  height: 2px;
  background-color: #60a5fa;
  position: relative;
}
.ct-arrow-left::after {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 8px solid #60a5fa;
}

.org-box {
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  display: inline-block;
  padding: 15px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 240px;
  text-align: center;
  box-sizing: border-box;
  background: white;
}

.org-box:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.org-box .role {
  font-weight: 700;
  font-size: 1rem;
  color: #111;
  display: block;
  margin-bottom: 3px;
}
.org-box .name {
  font-weight: 400;
  font-size: 0.85rem;
  color: #333;
}

.box-rector {
  background: #fca5a5;
  border: 2px solid #ef4444;
}
.box-head {
  background: #bae6fd;
  border: 2px solid #3b82f6;
}
.box-builder {
  background: #fed7aa;
  border: 2px solid #f97316;
}
.box-librarian {
  background: #bbf7d0;
  border: 2px solid #22c55e;
}
.box-service {
  background: #64748b !important;
  border: 2px solid #475569 !important;
  font-style: italic;
}
.box-service:hover {
  background: #475569 !important;
}

.org-box {
  text-decoration: none;
  color: #1e3a8a;
  font-family: "Poppins", sans-serif;
  display: inline-block;
  padding: 15px 25px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  background: white;
}

.org-box .role {
  font-weight: 700;
  font-size: 1rem;
  color: #111;
}

.org-box .name {
  font-weight: 400;
  font-size: 0.9rem;
  color: #333;
}

.box-rector {
  background: #fca5a5;
  border: 2px solid #ef4444;
}
.box-head {
  background: #bae6fd;
  border: 2px solid #3b82f6;
}
.box-builder {
  background: #fed7aa;
  border: 2px solid #f97316;
}
.box-librarian {
  background: #bbf7d0;
  border: 2px solid #22c55e;
}
.box-service {
  background: #64748b !important;
  border: 2px solid #475569 !important;
  font-style: italic;
  min-width: 180px;
}
.box-service:hover {
  background: #475569 !important;
}

.dual-librarians {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative;
  padding-top: 20px;
}

.dual-librarians::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 2px;
  height: 20px;
  background-color: #64748b;
  transition: all 0.5s;
}

.dual-librarians::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 130px);
  width: 260px;
  border-top: 2px solid #64748b;
  transition: all 0.5s;
}

.dual-librarians .box-librarian::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 2px;
  height: 20px;
  background-color: #64748b;
  transition: all 0.5s;
}

.dual-librarians .box-librarian {
  position: relative;
  margin: 0;
}

.dual-librarians .box-librarian::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 2px;
  height: 20px;
  background-color: #64748b;
  transition: all 0.5s;
}

.services-list::before {
  display: none !important;
}

.org-box:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}

.tree li a:hover + ul li::after,
.tree li a:hover + ul li::before,
.tree li a:hover + ul::before,
.tree li a:hover + ul ul::before {
  border-color: #facc15;
}

.tree li a:hover + ul .dual-librarians::after {
  background-color: #facc15;
}
.tree li a:hover + ul .dual-librarians::before {
  border-color: #facc15;
}
.tree li a:hover + ul .dual-librarians .box-librarian::before {
  background-color: #facc15;
}
.dual-librarians .box-librarian:hover::after {
  background-color: #facc15;
}
.dual-librarians:hover + .services-list li::before,
.dual-librarians:hover + .services-list li::after {
  border-color: #facc15;
}

.team-profile-section {
  padding: 80px 0 100px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.librarian-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.librarian-card {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.lib-img-box {
  width: 130px;
  height: 160px;
  background: #cbd5e1;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.lib-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.lib-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  color: #334155;
  padding-top: 10px;
}

.lib-row {
  display: flex;
  align-items: flex-start;
}

.lib-label {
  font-weight: 700;
  width: 110px;
  flex-shrink: 0;
  color: #1e3a8a;
}

.lib-value {
  color: #475569;
  flex: 1;
}

.map-section {
  padding: 60px 0;
  background: var(--bg-light);
  text-align: center;
}
.map-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid #e2e8f0;
  overflow: hidden;
}
.map-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.4s ease;
  display: block;
}
.map-image:hover {
  transform: scale(1.03);
  cursor: zoom-in;
}

.history-footer {
  background: var(--primary-blue);
  color: white;
  padding: 40px 0;
  text-align: center;
  border-top: 4px solid var(--accent-yellow);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-yellow);
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
  background: white;
  color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
  .librarian-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .librarian-card {
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  .lib-details {
    width: 100%;
  }
  .lib-label {
    width: 100px;
  }
}

.faq-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: flex-start;
}

.faq-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.faq-image-wrapper:hover .faq-image {
  transform: scale(1.05);
}

.faq-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--accent-yellow);
  color: var(--primary-blue);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item.active {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--primary-blue);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.faq-question i {
  color: var(--accent-yellow);
  background: var(--primary-blue);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  background: var(--accent-yellow);
  color: var(--primary-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background: white;
}

.faq-answer p {
  padding: 0 20px 20px;
  margin: 0;
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-badge {
    bottom: 10px;
    right: 10px;
    font-size: 0.85rem;
    padding: 8px 15px;
  }
}
