/* =========================
   GLOBAL RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;

  overflow-x: hidden;
}

html {
  margin-top: 0 !important;
}

body.admin-bar {
  margin-top: 0 !important;
}

/* =========================
   HEADER
========================= */

.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* .header-logo img {
    width: auto;
    height: 60px;
    object-fit: contain;
} */

.header-logo img {
    height: 50px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .header-logo img {
        height: 40px;
    }
}

/* ==================================================
   RESPONSIVE MOBILE
================================================== */

@media (max-width: 425px) {
    .header-logo img {
        height: 35px;
    }
}

.header-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff; /* sesuaikan dengan warna navbar */
}

.main-header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 999;

  padding: 10px 0;
}

.header-container {
  position: relative;

  width: 92%;
  max-width: 1400px;

  margin: auto;

  background: rgba(0, 0, 0, 0.5);

  backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 18px;

  padding: 10px 35px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

/* LOGO */

.header-logo a {
  text-decoration: none;

  color: white;

  font-size: 26px;
  font-weight: 700;
}

/* NAV */

.main-nav ul {
  display: flex;
  gap: 40px;

  list-style: none;
}

.main-nav ul li a {
  text-decoration: none;
  color: #d7d7d7;
  font-size: 15px;
  padding: 4px 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a:active {
  color: white;
}

.main-nav ul li a:hover::after,
.main-nav ul li a:active::after {
  width: 100%;
}

/* ACTIONS */

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-login {
  text-decoration: none;

  color: white;

  border: 1px solid rgba(255, 255, 255, 0.15);

  padding: 12px 20px;

  border-radius: 10px;

  transition: 0.3s ease;
}

.header-login:hover {
  background: white;
  color: #013b2d;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
}

.hero {
  position: relative;

  height: 100vh;

  padding-top: 80px;

  background-image: url("../images/hero.jpeg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.hero::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.65);

  z-index: 1;
}

.overlay {
  position: relative;

  z-index: 2;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 700px;
  color: white;
}

.hero-content h1 {
  font-size: 50px;
  line-height: 1.1;
  margin-bottom: 20px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  animation: heroReveal 1s ease forwards;
  opacity: 0;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;

  animation: heroReveal 1s 0.3s ease forwards;
  opacity: 0;
}

@keyframes heroReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    transform: translateX(-12px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn-primary,
.btn-secondary {
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background: #4caf50;
}

.btn-primary:hover,
.btn-primary:active {
  background: #388e3c;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover,
.btn-secondary:active {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* =========================
   PROFILE SECTION
========================= */

.profile-section {
  padding: 22px 0;
  background: #f7f7f7;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: #0b4d35;
  margin-bottom: 25px;
  font-weight: 700;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.profile-image img {
  width: 340px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.profile-text {
  flex: 1;
}

.profile-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 10px;

  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   STATS
========================= */

.stats-wrapper {
  background: white;
  border-radius: 16px;
  padding: 20px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 12px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.stat-box {
  text-align: center;
}

.stat-box h3 {
  font-size: 28px;
  color: #0b4d35;
  margin-bottom: 4px;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stat-box p {
  color: #777;
  font-size: 13px;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   ECOSYSTEM SECTION
========================= */

.ecosystem-section {
  background: #013b2d;
  padding: 45px 0;
  color: white;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* LEFT SIDE */

.map-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 20px;

  backdrop-filter: blur(10px);
}

.map-card h4 {
  margin-bottom: 18px;
  font-size: 15px;
  letter-spacing: 1px;
}

.map-card img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 18px;
}

.map-button {
  display: inline-block;

  padding: 12px 20px;

  background: white;
  color: #013b2d;

  text-decoration: none;
  border-radius: 10px;

  font-weight: 600;
}

/* RIGHT SIDE */

.ecosystem-label {
  color: #7fd8b2;
  letter-spacing: 2px;
  font-size: 12px;
}

.ecosystem-content h2 {
  font-size: 36px;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ecosystem-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #d5d5d5;
  margin-bottom: 20px;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ecosystem-list {
  list-style: none;
}

.ecosystem-list li {
  margin-bottom: 18px;
}

.ecosystem-list strong {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 17px;
  margin-bottom: 6px;
  color: white;
}

.ecosystem-list span {
  color: #c8c8c8;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
   RESEARCH SECTION
========================= */

.research-section {
  padding: 35px 0;
  background: #f7f7f7;
}

/* HEADER */

.research-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;

  margin-bottom: 45px;
}

.research-label {
  color: #0b7b57;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
}

.research-header h2 {
  font-size: 36px;
  color: #083d2b;
  margin-top: 8px;
}

.research-header p {
  max-width: 400px;
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

/* GRID */

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* CARD */

.research-card {
  background: white;
  border-radius: 20px;
  padding: 25px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);

  transition: 0.3s ease;
}

.research-card:hover {
  transform: translateY(-6px);
}

.research-icon {
  width: 48px;
  height: 48px;

  background: #dff5ea;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  font-size: 22px;

  margin-bottom: 18px;
}

.research-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #083d2b;
}

.research-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 18px;
}

.research-card a {
  text-decoration: none;
  color: #0b7b57;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  transition: 0.3s ease;
}

.research-card a:hover,
.research-card a:active {
  background: #dff5ea;
  color: #0b7b57;
}

.section-more {
  margin-top: 28px;
  text-align: center;
}

.section-more a {
  color: #0b7b57;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: 0.3s ease;
}

.section-more a:hover,
.section-more a:active {
  background: #dff5ea;
  color: #0b7b57;
}

.section-more-light {
  text-align: left;
}

.section-more-light a {
  color: #7fd8b2;
  padding: 8px 18px;
  border-radius: 8px;
  transition: 0.3s ease;
}

.section-more-light a:hover,
.section-more-light a:active {
  background: rgba(127, 216, 178, 0.15);
  color: #7fd8b2;
}

/* =========================
   FACILITIES SECTION
========================= */

/* =========================
   FACILITIES SECTION
========================= */

.facilities-section {
  padding: 45px 0;
  background: #ffffff;
}

.facilities-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 45px;
}

.facilities-label {
  display: inline-block;

  color: #0b7b57;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: 2px;

  margin-bottom: 15px;
}

.facilities-header h2 {
  font-size: 36px;
  color: #083d2b;

  margin-bottom: 18px;
}

.facilities-header p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

.facilities-grid {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 14px;
}

.facility-card {
  background: white;

  border-radius: 12px;

  overflow: hidden;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);

  transition: 0.3s ease;
}

.facility-card:hover {
  transform: translateY(-5px);
}

.facility-card img {
  width: 100%;
  height: 120px;

  object-fit: cover;
}

.facility-content {
  padding: 14px;
}

.facility-content h3 {
  font-size: 16px;

  color: #083d2b;

  margin-bottom: 6px;
}

.facility-content p {
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

/* =========================
   MAIN FOOTER
========================= */

.main-footer {
  background: #002f24;
  color: white;

  padding-top: 50px;
}

/* GRID */

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;

  gap: 60px;

  padding-bottom: 40px;
}

/* BRAND */

.footer-brand h3 {
  color: #39d39f;
  font-size: 30px;
  margin-bottom: 24px;
}

.footer-brand p {
  color: #8cc7b3;
  line-height: 1.7;
  font-size: 15px;
}

/* SOCIAL */

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.footer-socials a {
    color: #ffffff;
    font-size: 17px;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-socials span {
    font-size: 11px;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* COLUMN */

.footer-column h4 {
  font-size: 17px;
  margin-bottom: 24px;

  letter-spacing: 1px;
}

/* LINKS */

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 16px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #8cc7b3;

  font-size: 15px;

  transition: 0.3s ease;
}

.footer-column ul li a:hover {
  color: white;
}

/* PARTNER GRID */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 14px;
}

.partner-box {
  background: #0a5a46;

  border: 1px solid rgba(255, 255, 255, 0.05);

  border-radius: 8px;

  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #8cc7b3;

  font-size: 12px;
  font-weight: 600;
}

/* =========================
   FOOTER BOTTOM
========================= */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);

  padding: 22px 0;
}

.footer-bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-bottom p {
  color: #6ca894;
  font-size: 13px;
}

/* FOOTER LINKS */

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: #6ca894;

  text-decoration: none;

  font-size: 13px;

  transition: 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* ==================================================
   RESPONSIVE TABLET
================================================== */

@media (max-width: 768px) {
  /* HEADER */

  .header-container {
    padding: 16px 20px;
  }

  .main-nav ul {
    gap: 18px;
  }

  .main-nav ul li a {
    font-size: 14px;
  }

  /* HERO */

  .hero {
    height: auto;
    min-height: 100vh;

    padding: 160px 0 100px;
  }

  .hero-content {
    text-align: center;
    padding: 0 28px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 14px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  /* PROFILE */

  .profile-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-image img {
    width: 100%;
    max-width: 380px;
  }

  .section-title {
    font-size: 34px;
  }

  .profile-section {
    padding: 25px 0;
  }

  .stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ECOSYSTEM */

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-content h2 {
    font-size: 34px;
  }

  /* RESEARCH */

  .research-header {
    flex-direction: column;
  }

  .research-header h2 {
    font-size: 34px;
  }

  .research-section {
    padding: 25px 0;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }

  /* FOOTER */

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-brand h3 {
    font-size: 32px;
  }

  .facilities-header h2 {
    font-size: 34px;
  }

  .footer-bottom-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

/* ==================================================
   RESPONSIVE MOBILE
================================================== */

@media (max-width: 426px) {
  /* GLOBAL */

  .container {
    width: 92%;
  }

  section {
    overflow: hidden;
  }

  /* HEADER */

  .main-header {
    padding: 12px 0;
  }

  .header-container {
    border-radius: 14px;
    padding: 16px 18px;
    justify-content: flex-start;
    gap: 12px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: min(280px, 86vw);
    background: rgba(0, 0, 0, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px;
    backdrop-filter: blur(14px);
  }

  .main-header.is-menu-open .main-nav {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav ul li a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    font-size: 15px;
  }

  .main-nav ul li a:hover,
  .main-nav ul li a:active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
  }

  .nav-toggle {
    display: flex;
  }

  .main-header.is-menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .main-header.is-menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .main-header.is-menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle span {
    transition: transform .2s ease, opacity .2s ease;
  }

  .header-logo {
    margin-right: auto;
  }

  .header-logo a {
    font-size: 22px;
  }

  .header-login {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* HERO */

  .hero {
    padding-top: 150px;
  }

  .hero-content {
    padding: 0 22px;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.15;
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
  }

  .hero-content p {
    font-size: 13px;
    line-height: 1.5;
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
    text-align: center;
    padding: 8px 24px;
    font-size: 13px;
  }

  /* TITLES */

  .section-title,
  .ecosystem-content h2,
  .research-header h2 {
    font-size: 38px;
  }

  /* PROFILE */

  .profile-section {
    padding: 30px 0;
  }

  .research-section {
    padding: 30px 0;
  }

  .ecosystem-section {
    padding: 60px 0;
  }

  .profile-text p {
    font-size: 16px;
  }

  .stats-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ECOSYSTEM */

  .ecosystem-content {
    text-align: center;
  }

  .ecosystem-list {
    text-align: center;
  }

  .section-more-light {
    text-align: center;
  }

  /* RESEARCH */

  .research-card {
    padding: 30px;
  }

  .research-card h3 {
    font-size: 24px;
  }

  /* FACILITIES */

  .facilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facilities-header h2 {
    font-size: 38px;
  }

  /* FOOTER */

  .footer-brand h3 {
    font-size: 34px;
  }

  .footer-links {
    flex-direction: column;
    gap: 18px;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 427px) and (max-width: 768px) {
  .header-container {
    justify-content: space-between;
    gap: 14px;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    width: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .main-nav ul li a {
    display: inline-block;
    padding: 6px 10px;
    color: #d7d7d7;
    font-size: 13px;
  }

  .main-nav ul li a:hover,
  .main-nav ul li a:active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
  }

  .header-logo {
    margin-right: 0;
  }

  .header-login {
    padding: 9px 12px;
  }
}

/* ==================================================
   TABLET NAV INLINE (426px - 768px)
================================================== */
