/* Page-specific styles for academic.html */

.academic-hero {
  padding: 4rem 0;
  text-align: center;
}

.academic-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  counter-reset: academic-pillar;
}

.academic-pillars-grid .philosophy-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  padding: 2.1rem;
  border: 1px solid rgba(15, 56, 44, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98)), radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.24), transparent 30%);
  box-shadow: 0 18px 42px rgba(15, 56, 44, 0.09);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.academic-pillars-grid .philosophy-card::before {
  counter-increment: academic-pillar;
  content: "0" counter(academic-pillar);
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.4rem;
  border-radius: 16px;
  background: var(--accent);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(15, 56, 44, 0.18);
}

.academic-pillars-grid .philosophy-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--accent);
  z-index: -1;
}

.academic-pillars-grid .philosophy-card:nth-child(2)::before {
  background: var(--accent);
  color: var(--primary-dark);
}

.academic-pillars-grid .philosophy-card:nth-child(2)::after {
  background: var(--accent);
}

.academic-pillars-grid .philosophy-card:nth-child(3)::before {
  background: var(--accent);
  color: var(--primary-dark);
}

.academic-pillars-grid .philosophy-card:nth-child(3)::after {
  background: var(--accent);
}

.academic-pillars-grid .philosophy-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.42);
  box-shadow: 0 26px 58px rgba(15, 56, 44, 0.15);
}

.academic-pillars-grid .philosophy-card h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.academic-pillars-grid .philosophy-card p {
  color: var(--gray-dark);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

.academic-level-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.academic-level-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--gray-subtle);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  align-items: center;
}

.academic-level-card img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.academic-level-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin: 0.75rem 0;
}

.academic-level-card p,
.academic-level-card li {
  color: var(--gray-dark);
  line-height: 1.6;
}

.academic-level-card ul {
  color: var(--dark-light);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-left: 1rem;
}

.academic-chip {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.academic-chip.alt {
  background: var(--accent-hover);
}

.academic-chip-special {
  background: var(--primary-light);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.academic-modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1rem;
}

.academic-modal-submit-btn {
  width: 100%;
}

.academic-hero-subtitle {
  color: var(--accent);
}

.academic-hero-title {
  color: var(--white);
  font-size: 2.8rem;
}

.academic-hero-description {
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin: 0 auto;
}

.academic-level-image {
  border-radius: var(--radius-md);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.academic-level-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin: 0.75rem 0;
}

.academic-level-copy {
  color: var(--gray-dark);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.academic-level-list {
  color: var(--dark-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.elementary-level-card {
  align-items: start;
}

.elementary-level-content {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.elementary-level-card > .academic-level-image {
  grid-column: 2;
  grid-row: 1;
}

.elementary-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  grid-column: 1 / -1;
}

.elementary-focus-group {
  min-width: 0;
}

.elementary-focus-group h4 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

.elementary-focus-group p {
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0 0 0.75rem;
}

.elementary-focus-group .academic-level-list {
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  padding-left: 1.1rem;
}

.elementary-focus-group li + li {
  margin-top: 0.15rem;
}

.academic-footer {
  border-top: none;
  text-align: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .academic-pillars-grid,
  .academic-level-card {
    grid-template-columns: 1fr;
  }

  .elementary-focus-grid {
    grid-template-columns: 1fr;
  }

  .elementary-level-content,
  .elementary-level-card > .academic-level-image,
  .elementary-focus-grid {
    grid-column: 1;
  }

  .elementary-level-content {
    grid-row: 1;
  }

  .elementary-level-card > .academic-level-image {
    grid-row: 2;
  }

  .elementary-focus-grid {
    grid-row: 3;
  }
}


/* ===== ORNAMEN ANIMASI HERO ACADEMIC (daun, bunga, bintang, bulan) ===== */
.academic-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 84% 18%, rgba(212, 175, 55, 0.18), transparent 24%), linear-gradient(108deg, #105130 0%, #105130 58%, #105130 100%);
}

.academic-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.16) 0%, transparent 38%), radial-gradient(circle at 90% 80%, rgba(24, 82, 66, 0.3) 0%, transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.academic-hero .academic-hero-inner {
  position: relative;
  z-index: 2;
}

.academic-hero .hero-decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.academic-hero .hero-decor svg {
  position: absolute;
  display: block;
}

/* Sulur daun & bunga */
.academic-hero .hero-leaf-tl {
  top: -34px;
  left: -26px;
  width: clamp(130px, 14vw, 215px);
  color: #1e8a50;
  opacity: 0.55;
  transform-origin: 0 0;
  animation: heroSway 8s ease-in-out infinite;
}

.academic-hero .hero-leaf-bl {
  bottom: -28px;
  left: -30px;
  width: clamp(140px, 15vw, 250px);
  color: #2ea86a;
  opacity: 0.5;
  transform-origin: 0 100%;
  animation: heroSway 9.5s ease-in-out infinite reverse;
}

.academic-hero .hero-leaf-tr {
  top: -30px;
  right: -34px;
  width: clamp(120px, 12vw, 200px);
  color: #1e8a50;
  opacity: 0.6;
  transform-origin: 100% 0;
  animation: heroSway 9s ease-in-out infinite reverse;
}

.academic-hero .hero-leaf-br {
  bottom: -22px;
  right: -26px;
  width: clamp(110px, 11vw, 190px);
  color: #2ea86a;
  opacity: 0.55;
  transform-origin: 100% 100%;
  animation: heroSway 11s ease-in-out infinite;
  z-index: 2;
}

/* Kilau bintang */
.academic-hero .hero-sparkle {
  color: #e9c46a;
  opacity: 0.9;
  animation: heroTwinkle 3.4s ease-in-out infinite;
}

.academic-hero .hero-sparkle-1 {
  top: 18%;
  left: 30%;
  width: 22px;
}
.academic-hero .hero-sparkle-2 {
  top: 12%;
  left: 52%;
  width: 15px;
  color: #f6e7b2;
  animation-delay: 0.9s;
}
.academic-hero .hero-sparkle-3 {
  top: 46%;
  right: 8%;
  width: 18px;
  animation-delay: 1.6s;
}
.academic-hero .hero-sparkle-4 {
  bottom: 14%;
  right: 26%;
  width: 13px;
  color: #ffffff;
  opacity: 0.75;
  animation-delay: 2.3s;
}
.academic-hero .hero-sparkle-5 {
  bottom: 18%;
  left: 44%;
  width: 16px;
  color: #f6e7b2;
  animation-delay: 0.4s;
}
.academic-hero .hero-sparkle-6 {
  top: 30%;
  left: 16%;
  width: 12px;
  color: #ffffff;
  opacity: 0.8;
  animation-delay: 1.2s;
}
.academic-hero .hero-sparkle-7 {
  bottom: 22%;
  left: 66%;
  width: 14px;
  color: #e9c46a;
  animation-delay: 2.8s;
}
.academic-hero .hero-sparkle-8 {
  top: 40%;
  right: 20%;
  width: 10px;
  color: #f6e7b2;
  animation-delay: 0.2s;
}

/* Bulan sabit */
.academic-hero .hero-moon {
  top: 14%;
  right: 14%;
  width: clamp(52px, 6vw, 88px);
  color: rgba(233, 196, 106, 0.5);
  animation: heroFloat 7s ease-in-out infinite;
}

/* Kelopak bunga jatuh melayang */
.academic-hero .hero-petal {
  position: absolute;
  top: -30px;
  display: block;
  background: #e9c46a;
  border-radius: 62% 0 62% 0;
  opacity: 0;
  animation: petalFall linear infinite;
  will-change: transform;
}

.academic-hero .hero-petal-1 {
  left: 10%;
  width: 13px;
  height: 13px;
  animation-duration: 11s;
  animation-delay: -3s;
}
.academic-hero .hero-petal-2 {
  left: 24%;
  width: 10px;
  height: 10px;
  background: #f6e7b2;
  animation-duration: 14s;
  animation-delay: -8s;
}
.academic-hero .hero-petal-3 {
  left: 41%;
  width: 15px;
  height: 15px;
  background: #d4af37;
  animation-duration: 12s;
  animation-delay: -5s;
}
.academic-hero .hero-petal-4 {
  left: 58%;
  width: 11px;
  height: 11px;
  background: #f6e7b2;
  animation-duration: 13.5s;
  animation-delay: -10s;
}
.academic-hero .hero-petal-5 {
  left: 73%;
  width: 14px;
  height: 14px;
  animation-duration: 10.5s;
  animation-delay: -6.5s;
}
.academic-hero .hero-petal-6 {
  left: 88%;
  width: 9px;
  height: 9px;
  background: #f6e7b2;
  animation-duration: 15s;
  animation-delay: -7s;
}

/* Gelembung cahaya naik perlahan */
.academic-hero .hero-bubble {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(246, 231, 178, 0.9), rgba(233, 196, 106, 0.35) 60%, rgba(233, 196, 106, 0.08));
  filter: blur(1px);
  opacity: 0;
  animation: bubbleRise linear infinite;
  will-change: transform;
}

.academic-hero .hero-bubble-1 {
  left: 38%;
  bottom: -40px;
  width: 18px;
  height: 18px;
  animation-duration: 13s;
  animation-delay: -4s;
}
.academic-hero .hero-bubble-2 {
  left: 64%;
  bottom: -30px;
  width: 12px;
  height: 12px;
  animation-duration: 16s;
  animation-delay: -9s;
}

/* Keyframes (duplikat agar academic.css berdiri sendiri) */
@keyframes heroSway {
 0%,
 100% {
    transform: rotate(-2.5deg);
  }
 50% {
    transform: rotate(2deg);
  }
}

@keyframes heroTwinkle {
 0%,
 100% {
    opacity: 0.25;
    transform: scale(0.8) rotate(0deg);
  }
 50% {
    opacity: 1;
    transform: scale(1.1) rotate(18deg);
  }
}

@keyframes heroFloat {
 0%,
 100% {
    transform: translateY(0);
  }
 50% {
    transform: translateY(-12px);
  }
}

@keyframes petalFall {
 0% {
    transform: translate3d(0, -30px, 0) rotate(0deg);
    opacity: 0;
  }
 10% {
    opacity: 0.85;
  }
 25% {
    transform: translate3d(34px, 190px, 0) rotate(100deg);
  }
 50% {
    transform: translate3d(-12px, 380px, 0) rotate(210deg);
    opacity: 0.8;
  }
 75% {
    transform: translate3d(30px, 570px, 0) rotate(300deg);
  }
 90% {
    opacity: 0.5;
  }
 100% {
    transform: translate3d(4px, 790px, 0) rotate(380deg);
    opacity: 0;
  }
}

@keyframes bubbleRise {
 0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
 12% {
    opacity: 0.55;
  }
 50% {
    transform: translateY(-260px) translateX(14px);
    opacity: 0.45;
  }
 88% {
    opacity: 0.25;
  }
 100% {
    transform: translateY(-540px) translateX(-10px);
    opacity: 0;
  }
}

/* Responsif: sembunyikan sebagian ornamen di layar kecil */
@media (max-width: 768px) {
  .academic-hero .hero-leaf-tl {
    display: none;
  }
  .academic-hero .hero-leaf-bl {
    width: 118px;
  }
  .academic-hero .hero-leaf-tr {
    width: 96px;
    opacity: 0.45;
  }
  .academic-hero .hero-leaf-br {
    width: 92px;
  }
  .academic-hero .hero-sparkle-3,
  .academic-hero .hero-sparkle-6,
  .academic-hero .hero-sparkle-8 {
    display: none;
  }
  .academic-hero .hero-petal-4,
  .academic-hero .hero-petal-6 {
    display: none;
  }
  .academic-hero .hero-bubble-2 {
    display: none;
  }
  .academic-hero .hero-moon {
    width: 56px;
    right: 8%;
  }
}
