:root {
  --primary-color: #14532d;
  --primary-light: #1e7a46;
  --primary-dark: #0f3d22;
  --primary-hover: #1aa857;
  --accent-color: #d4af37;
  --secondary-color: #b91c1c;
  --background-color: #f8faf7;
  --surface-color: #ffffff;
  --text-color: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --section-padding: 100px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

#navbar-container {
  min-height: 20px;
}

.hero {
  min-height: calc(100vh - 90px);
  padding: clamp(50px, 7vw, 100px) 6%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  background: linear-gradient(135deg, #f8faf7, #eaf5ec);
}

.hero-content h1 {
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.15;
  margin: 25px 0;
  color: var(--text-color);
}

.hero-content h1 span {
  color: var(--primary-color);
  display: block;
}

.hero-badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.08);
  color: var(--primary-color);
  font-weight: 600;
}

.hero-content p {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-buttons a i {
  font-size: 15px;
  transition: 0.3s;
}

.btn-primary:hover i {
  transform: translateX(3px);
}

.btn-secondary:hover i {
  transform: rotate(-10deg);
}

.btn-primary {
  padding: 14px 28px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-4px);
}

.btn-secondary {
  padding: 14px 28px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-color);
}

.hero-stats {
  display: flex;
  gap: clamp(15px, 3vw, 35px);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  padding: 18px;
  border-radius: 20px;
  min-width: 170px;
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  cursor: pointer;
}

.stat:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(20, 83, 45, 0.15);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 83, 45, 0.08);
  transition: 0.35s;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 22px;
  color: var(--primary-color);
  transition: 0.35s;
}

.stat:hover .stat-icon {
  background: var(--primary-color);
  transform: rotate(8deg) scale(1.08);
}

.stat:hover .stat-icon i {
  color: white;
}

.stat-content h3 {
  font-size: 25px;
  margin-bottom: 4px;
  color: var(--primary-color);
}

.stat-content span {
  font-size: 14px;
  color: var(--text-secondary);
}

.stat h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat span {
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-card {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(20, 83, 45, 0.15);
}

.hero-card img {
  width: 100%;
  display: block;
  height: 650px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-card:hover img {
  transform: scale(1.03);
}

.about {
  padding: clamp(70px, 8vw, 120px) 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  background: white;
}

.about-image {
  position: relative;
}

.about-main-image {
  overflow: hidden;
  border-radius: 35px;
  box-shadow: 0 25px 60px rgba(20, 83, 45, 0.15);
}

.about-main-image img {
  width: 100%;
  height: 650px;
  display: block;
  object-fit: cover;
  transition: 0.7s;
}

.about-main-image:hover img {
  transform: scale(1.04);
}

.about-floating-card {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background: var(--primary-color);
  padding: 24px;
  border-radius: 25px;
  color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.about-floating-card h3 {
  font-size: 35px;
  margin-bottom: 6px;
}

.section-badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.08);
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 18px;
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 25px;
  color: var(--text-color);
}

.about-content p {
  line-height: 1.8;
  font-size: 17px;
  margin-bottom: 35px;
  color: var(--text-secondary);
}

.about-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.about-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.35s ease;
}

.about-buttons a i {
  font-size: 15px;
  transition: transform 0.35s ease;
}

.about-buttons .btn-primary:hover i {
  transform: translateX(4px);
}

.about-buttons .btn-outline:hover i {
  transform: rotate(-10deg) scale(1.1);
}

.btn-outline {
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  transition: 0.3s;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-radius: 20px;
  background: #f8faf7;
  transition: 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: white;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: 0.3s;
}

.icon i {
  font-size: 22px;
  color: var(--primary-color);
}

.feature:hover .icon {
  transform: rotate(8deg) scale(1.08);
  background: var(--primary-color);
}

.feature:hover .icon i {
  color: white;
}

.program {
  padding: clamp(70px, 8vw, 120px) 6%;
  background: linear-gradient(180deg, #f8faf7, white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.1;
  margin: 18px 0;
  color: var(--text-color);
}

.section-header p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.program-card {
  padding: 30px;
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: 0.4s;
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card:hover {
  transform: translateY(-10px);
}

.program-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: rgba(20, 83, 45, 0.08);
  margin-bottom: 25px;
  transition: 0.35s;
}

.program-icon i {
  font-size: 28px;
  color: var(--primary-color);
}

.program-card:hover .program-icon {
  background: var(--primary-color);
  transform: rotate(8deg);
}

.program-card:hover .program-icon i {
  color: white;
}

.program-card h3 {
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.program-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
}

.program-card a {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  text-decoration: none;
  font-weight: 600;
  color: var(--primary-color);
}

.program-card a:hover {
  color: var(--primary-hover);
}

.program-card a i {
  transition: 0.3s;
}

.program-card:hover a i {
  transform: translateX(6px);
}

.news {
  padding: clamp(70px, 8vw, 120px) 6%;
  background: #f8faf7;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.news-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.4s;
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transform: translateY(60px);
}

.news-card.show {
  opacity: 1;
  transform: translateY(0);
}

.news-card:hover {
  transform: translateY(-10px);
}

.news-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.8s;
}

.news-card:hover img {
  transform: scale(1.08);
}

.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 8px 14px;
  background: var(--primary-color);
  color: white;
  border-radius: 999px;
  font-size: 13px;
}

.news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-secondary);
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-content h3 {
  font-size: 1.35rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-content p {
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--text-secondary);
}

.news-content a {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  text-decoration: none;
  font-weight: 600;
  color: var(--primary-color);
}

.news-content a:hover {
  color: var(--primary-hover);
}

.news-content a i {
  transition: 0.3s;
}

.news-card:hover a i {
  transform: translateX(6px);
}

.news-action {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.news-action.show {
  opacity: 1;
  transform: translateY(0);
}

.news-action a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-action i {
  transition: 0.3s;
}

.news-action a:hover i {
  transform: translateX(4px);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
  padding: 40px;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox img {
  max-width: 85%;
  max-height: 85vh;
  border-radius: 20px;
  transform: scale(0.8);
  transition: 0.35s;
}

.gallery-lightbox.active img {
  transform: scale(1);
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#lightbox-title {
  color: white;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  opacity: 0.95;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 35px;
  cursor: pointer;
  color: white;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--primary-color);
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 20px;
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
  background: var(--primary-color);
}

.prev-btn {
  left: 40px;
}

.next-btn {
  right: 40px;
}

.contact {
  padding: clamp(70px, 8vw, 120px) 6%;
  background: linear-gradient(180deg, white, #f8faf7);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: 16px 18px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: 0.35s;
  opacity: 0;
  transform: translateY(50px);
  min-height: 82px;
}

.contact-text {
  flex: 1;
}

.contact-text small {
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
  color: var(--primary-color);
  font-weight: 600;
  opacity: 0.8;
}

.contact-text h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.contact-text span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.contact-arrow {
  opacity: 0;
  transform: translateX(-15px);
  transition: 0.35s;
  font-size: 15px;
  color: var(--primary-color);
}

.contact-card:hover .contact-arrow {
  opacity: 1;
  transform: translateX(0);
}

.contact-card.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-card:hover {
  transform: translateY(-8px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(20, 83, 45, 0.08);
  flex-shrink: 0;
  transition: 0.35s;
}

.contact-icon i {
  font-size: 18px;
  color: var(--primary-color);
}

.contact-card:hover .contact-icon {
  background: var(--primary-color);
  transform: rotate(8deg);
}

.contact-card:hover .contact-icon i {
  color: white;
}

.contact-form {
  padding: 30px;
  background: white;
  border-radius: 30px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(50px);
  transition: 0.8s;
}

.contact-form.show {
  opacity: 1;
  transform: translateY(0);
}

.input-group {
  margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: none;
  outline: none;
  background: #f8faf7;
  border-radius: 18px;
  font-size: 15px;
}

textarea {
  height: 150px;
  resize: none;
}

.contact-form button {
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-box {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.location-box.show {
  opacity: 1;
  transform: translateY(0);
}

.location-map {
  height: 280px;
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.location-content {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.location-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.location-content h3 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.2;
}

.location-content p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--text-secondary);
  max-width: 280px;
}

.location-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  transition: 0.35s;
  flex-shrink: 0;
}

.location-btn:hover {
  transform: translateY(-4px) rotate(8deg);
}

.faq {
  padding: 100px 6%;
  background: #f8faf7;
}

.faq-list {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 50px;
}

.faq-item {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(20, 83, 45, 0.08);
  transition: 0.45s;
  border: 1px solid transparent;
}

.faq-item:hover {
  transform: translateY(-4px);
}

.faq-item:hover {
  transform: translateY(-4px);
}

.faq-question {
  width: 100%;
  border: none;
  background: white;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  text-align: left;
  transition: 0.4s;
}

.faq-question i {
  color: var(--primary-color);
  transition: 0.45s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  padding: 0 28px;
  background: #f8faf7;
}

.faq-answer p {
  padding: 22px 0;
  line-height: 1.8;
  color: var(--text-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 18px;
}

.faq-item.active {
  background: #edf9f0;
  border: 1px solid rgba(76, 175, 80, 0.2);
  box-shadow: 0 20px 45px rgba(76, 175, 80, 0.12);
}

.faq-item.active .faq-question {
  background: var(--primary-color);
  color: white;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg) scale(1.1);
  color: white;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.cta {
  padding: 100px 6%;
  background: linear-gradient(180deg, white, #f8faf7);
}

.cta-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  background: white;
  padding: 30px;
  border-radius: 35px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cta-video {
  border-radius: 28px;
  overflow: hidden;
  height: 420px;
  opacity: 0;
  transform: translateX(-60px);
  transition: 0.8s;
}

.cta-video.show {
  opacity: 1;
  transform: translateX(0);
}

.cta-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.cta-content {
  opacity: 0;
  transform: translateX(60px);
  transition: 0.8s;
}

.cta-content.show {
  opacity: 1;
  transform: translateX(0);
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 18px 0;
}

.cta-content p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: center;
}

.cta-buttons a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  padding: 15px 18px;
}

.cta-buttons i {
  transition: 0.3s;
}

/* animation state */
.hero-badge,
.hero-content h1,
.hero-content p,
.hero-buttons,
.stat,
.hero-card {
  opacity: 0;
  will-change: transform, opacity;
}

.hero-badge {
  animation: fadeLeft 0.7s ease forwards;
}

.hero-content h1 {
  animation: fadeLeft 0.8s 0.15s ease forwards;
}

.hero-content p {
  animation: fadeLeft 0.8s 0.3s ease forwards;
}

.hero-buttons {
  animation: fadeUp 0.8s 0.45s ease forwards;
}

.hero-card {
  animation: fadeRight 1s 0.4s ease forwards;
}

.hero-stats .stat {
  animation: fadeUp 0.6s forwards;
}

.hero-stats .stat:nth-child(1) {
  animation-delay: 0.7s;
}

.hero-stats .stat:nth-child(2) {
  animation-delay: 0.85s;
}

.hero-stats .stat:nth-child(3) {
  animation-delay: 1s;
}

.hero-stats .stat:nth-child(4) {
  animation-delay: 1.15s;
}

.hero-stats .stat:nth-child(5) {
  animation-delay: 1.3s;
}

.hero-stats .stat:nth-child(6) {
  animation-delay: 1.45s;
}

.about-main-image,
.about-content,
.feature,
.about-floating-card {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
}

.about-buttons {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.about-buttons.show {
  opacity: 1;
  transform: translateY(0);
}

.about-main-image {
  transform: translateX(-60px);
}

.about-main-image.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.about-content {
  transform: translateX(60px);
}

.about-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.feature {
  transform: translateY(40px);
}

.feature.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.feature:nth-child(1) {
  transition-delay: 0.2s;
}

.feature:nth-child(2) {
  transition-delay: 0.4s;
}

.feature:nth-child(3) {
  transition-delay: 0.6s;
}

.about-floating-card {
  transform: scale(0.7);
}

.about-floating-card.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.section-header .section-badge,
.section-header h2,
.section-header p {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.section-header .section-badge {
  transition-delay: 0.1s;
}

.section-header h2 {
  transition-delay: 0.25s;
}

.section-header p {
  transition-delay: 0.4s;
}

.section-header .section-badge.show,
.section-header h2.show,
.section-header p.show {
  opacity: 1;
  transform: translateY(0);
}

.program .section-header h2 {
  transform: translateY(40px);
  transition-delay: 0.15s;
}

.program .section-header h2.show {
  opacity: 1;
  transform: translateY(0);
}

.program .section-header p {
  transform: translateY(40px);
  transition-delay: 0.3s;
}

.program .section-header p.show {
  opacity: 1;
  transform: translateY(0);
}

.program-card {
  transform: translateY(70px);
}

.program-card.show {
  opacity: 1;
  transform: translateY(0);
}

.program-card:nth-child(1) {
  transition-delay: 0.1s;
}

.program-card:nth-child(2) {
  transition-delay: 0.25s;
}

.program-card:nth-child(3) {
  transition-delay: 0.4s;
}

.program-card:nth-child(4) {
  transition-delay: 0.55s;
}

.program-card:nth-child(5) {
  transition-delay: 0.7s;
}

.program-card:nth-child(6) {
  transition-delay: 0.85s;
}

.program-card {
  opacity: 0;

  transform: translateY(60px);
}

.program-card.show {
  opacity: 1;

  transform: translateY(0);
}

.program-card:nth-child(1) {
  transition-delay: 0.1s;
}

.program-card:nth-child(2) {
  transition-delay: 0.3s;
}

.program-card:nth-child(3) {
  transition-delay: 0.5s;
}

/* awal */

.faq .section-header,
.faq-item {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

/* muncul */

.faq .section-header.show {
  opacity: 1;
  transform: translateY(0);
}

.faq-item.show {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:nth-child(1) {
  transition-delay: 0.1s;
}

.faq-item:nth-child(2) {
  transition-delay: 0.2s;
}

.faq-item:nth-child(3) {
  transition-delay: 0.3s;
}

.faq-item:nth-child(4) {
  transition-delay: 0.4s;
}

.faq-item:nth-child(5) {
  transition-delay: 0.5s;
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-45px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1200px) {
  .hero-content {
    max-width: 620px;
  }

  .hero-content h1 {
    font-size: clamp(2.5rem, 3.4vw, 4.5rem);
    line-height: 1.05;
    margin: 18px 0;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 540px;
  }

  .hero-buttons {
    margin-bottom: 28px;
    gap: 12px;
  }

  .hero-stats {
    margin-top: 0;
    gap: 18px;
  }

  .hero-badge {
    padding: 8px 16px;
    font-size: 15px;
  }

  .stat {
    padding: 16px;
    min-width: 140px;
  }

  .stat h3 {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .about-content {
    max-width: 620px;
  }

  .section-badge {
    padding: 8px 16px;
    font-size: 14px;
    margin-bottom: 14px;
  }

  .about-content h2 {
    font-size: clamp(2.7rem, 3.3vw, 3.8rem);
    line-height: 1;
    margin-bottom: 14px;
  }

  .about-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .about-buttons {
    gap: 10px;
    margin-bottom: 20px;
  }

  .about-buttons a {
    padding: 12px 22px;
    font-size: 14px;
  }

  .about-features {
    gap: 10px;
  }

  .feature {
    padding: 13px 18px;
    min-height: 75px;
    border-radius: 18px;
    gap: 14px;
  }

  .icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .icon i {
    font-size: 17px;
  }

  .feature h4 {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .feature span {
    font-size: 0.87rem;
    line-height: 1.35;
  }

  .about-floating-card {
    padding: 18px;

    border-radius: 20px;
  }

  .about-floating-card h3 {
    font-size: 28px;
    margin-bottom: 2px;
  }

  .about-floating-card p {
    font-size: 13px;
  }

  .section-header h2 {
    font-size: clamp(2.7rem, 3vw, 4.5rem);
  }
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 40px;
  }

  .hero-content p {
    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
  }

  .stat {
    min-width: unset;
    width: 100%;
    padding: 14px;
    gap: 12px;
    border-radius: 18px;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .stat-icon i {
    font-size: 18px;
  }

  .stat-content h3 {
    font-size: 20px;
  }

  .stat-content span {
    font-size: 13px;
  }

  .hero-image {
    order: -1;
  }

  .hero-card img {
    height: 450px;
  }

  .about {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .about-image {
    order: 1;
    overflow: hidden;
  }

  .about-content {
    order: 2;
    text-align: center;
  }

  .about-main-image img {
    height: 420px;
  }

  .about-floating-card {
    right: 0px;
    bottom: 0px;
    padding: 18px;
  }

  .about-buttons {
    justify-content: center;
  }

  .feature {
    text-align: left;
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-lightbox {
    padding: 25px;
  }

  .gallery-lightbox img {
    max-width: 92%;
    max-height: 70vh;
  }

  #lightbox-title {
    font-size: 24px;
  }

  .prev-btn,
  .next-btn {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }

  .prev-btn {
    left: 20px;
  }

  .next-btn {
    right: 20px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .location-map {
    height: 260px;
  }

  .location-content {
    padding: 16px 18px;
  }

  .cta-wrapper {
    grid-template-columns: 1fr;
  }

  .cta-video {
    height: 320px;
  }

  /* animation state */
  .hero-badge,
  .hero-content h1,
  .hero-content p,
  .hero-buttons,
  .hero-card,
  .stat {
    animation: mobileFade 0.8s ease forwards;
  }

  .hero-content h1 {
    animation-delay: 0.2s;
  }

  .hero-content p {
    animation-delay: 0.35s;
  }

  .hero-buttons {
    animation-delay: 0.5s;
  }

  .hero-card {
    animation-delay: 0.7s;
  }

  .hero-stats .stat {
    animation: mobileFade 0.8s forwards;
  }

  .hero-stats .stat:nth-child(1) {
    animation-delay: 0.9s;
  }

  .hero-stats .stat:nth-child(2) {
    animation-delay: 1s;
  }

  .hero-stats .stat:nth-child(3) {
    animation-delay: 1.1s;
  }

  .hero-stats .stat:nth-child(4) {
    animation-delay: 1.2s;
  }

  .hero-stats .stat:nth-child(5) {
    animation-delay: 1.3s;
  }
}

@keyframes mobileFade {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .gallery-lightbox {
    padding: 20px;
  }

  .lightbox-content {
    width: 100%;
    gap: 16px;
  }

  .gallery-lightbox img {
    width: 100%;
    max-width: 100%;
    max-height: 60vh;
    border-radius: 18px;
  }

  #lightbox-title {
    font-size: 20px;
    max-width: 90%;
    line-height: 1.4;
  }

  .close-btn {
    top: 15px;
    right: 20px;
    font-size: 28px;
  }

  .prev-btn,
  .next-btn {
    width: 42px;
    height: 42px;
    font-size: 15px;
    top: auto;
    bottom: 35px;
    transform: none;
  }

  .prev-btn {
    left: calc(50% - 60px);
  }

  .next-btn {
    right: calc(50% - 60px);
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: 50px;
  }

  .hero-card img {
    height: 320px;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
    padding: 12px 10px;
    font-size: 13px;
    gap: 8px;
  }

  .about-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .about-buttons a {
    width: 100%;
    padding: 12px 10px;
    font-size: 13px;
    gap: 8px;
  }

  .about-buttons a i {
    font-size: 13px;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item.large {
    grid-column: unset;
    grid-row: unset;
  }

  .location-map {
    height: 220px;
  }

  .location-content {
    padding: 22px;
  }

  .cta {
    padding: 80px 6%;
  }

  .cta-video {
    height: 240px;
  }

  .cta-buttons {
    gap: 10px;
  }

  .cta-buttons a {
    font-size: 14px;
    padding: 13px 12px;
  }

  .cta-buttons i {
    font-size: 14px;
  }
}
