:root {
  --leaf: #2c934b;
  --forest: #0f4a30;
  --mint: #e8f6ed;
  --gold: #f4a640;
  --taupe: #f7f5f0;
  --charcoal: #1f2a24;
  --slate: #5f6d64;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Poppins", Arial, sans-serif;
  background: linear-gradient(160deg, #ffffff 0%, #f5f7f4 45%, #edf4ec 100%);
  color: var(--charcoal);
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(12, 60, 40, 0.15);
  position: relative;
  z-index: 10;
}
.brand-bar {
  background: linear-gradient(120deg, #0d5f97, #49b6e6);
  padding: 24px 6vw 30px;
  color: #fff;
  position: relative;
}
.brand-bar::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -35px;
  width: 220px;
  height: 120px;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(255, 255, 255, 0.45),
    transparent 70%
  );
  transform: skewX(-20deg);
  opacity: 0.5;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo-img {
  width: 150px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.35));
}
.brand-copy h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
}
.brand-copy small {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}
.nav-bar {
  background: linear-gradient(120deg, #2c934b, #30c064);
  padding: 12px 6vw;
  position: relative;
  z-index: 50;
}
.nav-bar nav {
  overflow: visible;
}
.nav-bar ul {
  list-style: none;
  display: flex;
  gap: 18px 26px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
  white-space: nowrap;
  overflow: visible;
}
.nav-bar li {
  position: relative;
}
.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 6px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  padding: 16px 0;
  display: none;
  z-index: 60;
  pointer-events: auto;
}
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--forest);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.dropdown-menu a:hover {
  background: var(--mint);
  color: var(--leaf);
}
.nav-bar li:hover > .dropdown-menu,
.nav-bar li:focus-within > .dropdown-menu {
  display: block;
}

main {
  padding: 40px 6vw 60px;
  flex: 1;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-title {
  font-size: 2.3rem;
  color: var(--forest);
  margin: 0 0 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--slate);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
}

.chapters-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.chapter-card {
  background: linear-gradient(145deg, #ffffff 0%, #fafffe 100%);
  border-radius: 16px;
  margin-bottom: 28px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 8px 24px rgba(15, 74, 48, 0.1),
    0 2px 8px rgba(44, 147, 75, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.chapter-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), var(--leaf), var(--forest));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
  box-shadow: 2px 0 6px rgba(244, 166, 64, 0.3);
}

.chapter-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--leaf), var(--forest));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

@keyframes borderGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 35px rgba(15, 74, 48, 0.18),
    0 4px 12px rgba(44, 147, 75, 0.12),
    0 0 15px rgba(244, 166, 64, 0.1);
}

.chapter-card:hover::before {
  transform: scaleY(1);
}

.chapter-card:hover::after {
  opacity: 1;
}

.card-header {
  padding: 22px 28px;
  background: linear-gradient(135deg, #e8f6ed 0%, #d4f1e0 100%);
  border-bottom: 2px solid rgba(44, 147, 75, 0.15);
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@keyframes headerGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.card-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.chapter-card:hover .card-header::before {
  opacity: 1;
}

.chapter-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--leaf) 50%,
    var(--forest) 100%
  );
  background-size: 200% 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow:
    0 4px 15px rgba(244, 166, 64, 0.3),
    0 2px 8px rgba(44, 147, 75, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@keyframes iconPulse {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 8px 25px rgba(244, 166, 64, 0.4),
      0 4px 12px rgba(44, 147, 75, 0.3);
  }

  50% {
    background-position: 100% 50%;
    box-shadow:
      0 10px 30px rgba(244, 166, 64, 0.6),
      0 6px 16px rgba(44, 147, 75, 0.4);
  }
}

.chapter-card:hover .chapter-icon {
  transform: scale(1.08) rotate(5deg);
  background-position: 100% 50%;
  box-shadow:
    0 6px 20px rgba(244, 166, 64, 0.5),
    0 3px 10px rgba(44, 147, 75, 0.35);
}

.chapter-title {
  flex: 1;
}

.chapter-name {
  margin: 0 0 6px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--forest), var(--leaf), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.chapter-card:hover .chapter-name {
  letter-spacing: 0.04em;
}

.chapter-region {
  margin: 0;
  font-size: 0.85rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.chapter-card:hover .chapter-region {
  opacity: 1;
  color: var(--forest);
}

.card-body {
  padding: 24px 28px 28px;
  background: #ffffff;
  position: relative;
}

.coordinators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.coordinator-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(
    135deg,
    rgba(232, 245, 233, 0.6),
    rgba(220, 242, 227, 0.4)
  );
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(44, 147, 75, 0.12);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.coordinator-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(44, 147, 75, 0.08),
    transparent
  );
  transition: left 0.5s ease;
}

.coordinator-card:hover::before {
  left: 100%;
}

.coordinator-card:hover {
  background: linear-gradient(
    135deg,
    rgba(44, 147, 75, 0.12),
    rgba(46, 125, 50, 0.08)
  );
  transform: translateX(4px);
  box-shadow: 0 6px 15px rgba(44, 147, 75, 0.15);
}

.coordinator-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leaf), #30c064);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(44, 147, 75, 0.3);
}

.coordinator-info {
  flex: 1;
}

.coordinator-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--forest);
  margin-bottom: 3px;
}

.coordinator-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--slate);
  font-size: 0.85rem;
  font-family: "Courier New", monospace;
}

.phone-icon {
  color: var(--leaf);
  font-size: 0.8rem;
}

.card-footer {
  padding: 0 28px 28px;
  display: flex;
  justify-content: center;
  background: #ffffff;
}

.view-chapter-btn {
  background: linear-gradient(135deg, var(--leaf) 0%, var(--forest) 100%);
  color: #fff;
  padding: 12px 36px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(44, 147, 75, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

@keyframes buttonGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.view-chapter-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.5s,
    height 0.5s;
}

.view-chapter-btn:hover::before {
  width: 300px;
  height: 300px;
}

.view-chapter-btn::after {
  content: "→";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.view-chapter-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(44, 147, 75, 0.35),
    0 2px 8px rgba(15, 74, 48, 0.2);
  background: linear-gradient(135deg, var(--gold) 0%, var(--leaf) 100%);
  border-color: rgba(244, 166, 64, 0.3);
}

.view-chapter-btn:hover::after {
  transform: translateX(4px);
}

.view-chapter-btn:active {
  transform: translateY(0);
}

.footer-hero {
  margin: 60px 0 0;
  width: 100%;
  max-width: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.65)),
    url("images/it_park.jpg") center/cover no-repeat;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.footer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background:linear-gradient(120deg,rgba(15,74,48,.55),rgba(44,147,75,.35));*/
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding: 48px 48px 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  justify-content: center;
}

.principal-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  background: #ffffff;
}

.principal-text {
  max-width: 680px;
  background: rgba(0, 0, 0, 0.28);
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
  text-align: center;
}

.principal-text h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.principal-text p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.98rem;
  color: #f3f8f5;
}

/* Footer hero */
.footer-hero {
  margin: 60px 0 0;
  width: 100%;
  max-width: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.65)),
    url("images/it_park.jpg") center/cover no-repeat;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}
.footer {
  background: #ffffff;
  padding: 60px 80px 30px;
  border-top: 1px solid #e5e5e5;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left {
  width: 30%;
}

.footer-logo {
  width: 180px;
  margin-bottom: 15px;
}

.footer-title {
  font-weight: 500;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  gap: 80px;
}
.btn {
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: #46d989;
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(70, 217, 137, 0.35);
}
.footer-links h4 {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
  cursor: pointer;
}

.footer-links a:hover {
  color: #f6c400;
}

.footer-right {
  text-align: right;
}

.alumni-btn {
  background: #f6c400;
  border: none;
  padding: 14px 40px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 25px;
}

.social-icons {
  padding: 10px;
  padding-top: 10px;
}

.social-icons i {
  color: #999;
  margin-left: 12px;
  font-size: 16px;
  cursor: pointer;
}

.social-icons i:hover {
  color: #333;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #aaa;
}
.principal-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  background: #ffffff;
}
.principal-text {
  max-width: 680px;
  background: rgba(0, 0, 0, 0.28);
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
  text-align: center;
}
.principal-text h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: 0.2px;
  color: #ffffff;
}
.principal-text p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.85rem;
  color: #f3f8f5;
}
.footer-bar {
  padding: 18px 6vw 26px;
  text-align: center;
  color: #e8f6ed;
  font-size: 0.9rem;
  background: linear-gradient(120deg, #0f4a30, #2c934b);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
}

@media (max-width: 900px) {
  .brand-copy h1 {
    font-size: 1.4rem;
  }

  .brand-copy small {
    font-size: 0.85rem;
  }

  .nav-bar ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .card-header {
    padding: 22px 24px;
    flex-direction: column;
    text-align: center;
  }

  .chapter-name {
    font-size: 1.35rem;
  }

  .card-body {
    padding: 28px 24px;
  }

  .coordinators-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-footer {
    padding: 0 24px 28px;
    justify-content: center;
  }

  .view-chapter-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  main {
    padding: 40px 4vw 60px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .chapter-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .chapter-name {
    font-size: 1.2rem;
  }

  .footer-inner {
    padding: 36px 20px;
  }
}
/* ================= PHOTO GALLERY ================= */
.gallery-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gallery-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 74, 48, 0.15);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(15, 74, 48, 0.25);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
