@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #059669; /* Emerald Green */
  --primary-dark: #047857;
  --secondary: #D97706; /* Golden Amber */
  --secondary-light: #FBBF24;
  --text-main: #1E293B; /* Slate 800 */
  --text-muted: #64748B; /* Slate 500 */
  --bg-light: #F8FAFC; /* Slate 50 */
  --bg-white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows & Transitions */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utility */
.text-center { text-align: center; }
.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.39);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}
.btn-secondary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(217, 119, 6, 0.39);
}
.btn-secondary:hover {
  background-color: #b45309;
  transform: translateY(-2px);
}
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}
/* Removed scrolled class specific background since it is now default */
header.scrolled {
  padding: 0.8rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo i {
  color: var(--secondary);
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-main);
  font-weight: 600;
  font-family: var(--font-heading);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--secondary);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Page Header (for non-home pages) */
.page-header {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}
.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Sections */
section {
  padding: 5rem 0;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('file:///C:/Users/Asus/.gemini/antigravity/brain/4f3c9812-9634-48e4-baa3-6050f5157412/hero_bg_1781873190905.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-content {
  color: white;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}
.hero-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero h1 span {
  color: var(--secondary);
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}
.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Features/Highlights */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  position: relative;
  z-index: 10;
  background: var(--bg-white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.feature-card {
  background: transparent;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.feature-card:last-child {
  border-right: none;
}
.feature-card:hover {
  background: var(--bg-light);
  border-bottom-color: var(--secondary);
}
.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background-color: #ecfdf5;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: white;
}
.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}
.feature-card p {
  color: var(--text-muted);
}

/* Programs Section */
.programs {
  background-color: var(--bg-white);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.program-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  background-color: var(--bg-light);
}
.program-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.program-img {
  height: 240px;
  background-color: #e2e8f0;
  position: relative;
  overflow: hidden;
}
.program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.program-card:hover .program-img img {
  transform: scale(1.1);
}
.program-img .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.program-icon-badge {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  background: var(--secondary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.program-content {
  padding: 2rem 1.5rem;
}
.program-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}
.program-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* About Intro */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
.about-img {
  position: relative;
  border-radius: 1rem;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  width: 100%;
  display: block;
}
.about-text h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-weight: 500;
}

/* PPDB Grid */
.ppdb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.check-list i {
  color: var(--secondary);
  font-size: 1.25rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, #065f46 100%);
  color: white;
  text-align: center;
  padding: 6rem 0;
}
.cta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
.cta p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}
.contact-info-card {
  background: var(--primary);
  color: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary);
}
.contact-form-wrapper {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

/* Footer */
footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}
.footer-brand p {
  margin-bottom: 1.5rem;
  max-width: 300px;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
}
.social-links a:hover {
  background-color: var(--secondary);
}
.footer-links h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a:hover {
  color: var(--secondary);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .about-intro { grid-template-columns: 1fr; }
  .about-img-wrapper { order: -1; margin-bottom: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .ppdb-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: 0.4s ease-in-out;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links a {
    color: var(--text-main);
    font-size: 1.25rem;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-btns { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Dropdown Menu Styles --- */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown .dropbtn {
  display: flex;
  align-items: center;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1001;
  border-radius: 8px;
  overflow: hidden;
  top: 100%;
  left: 0;
}
.dropdown-content a {
  color: var(--text-main) !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: all 0.2s;
}
.dropdown-content a:hover {
  background-color: #f1f5f9;
  color: var(--primary) !important;
  padding-left: 20px;
}
.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
    padding-left: 1rem;
    display: none;
  }
  .dropdown:hover .dropdown-content {
    display: none; 
  }
  .dropdown.active .dropdown-content {
    display: block;
  }
}

/* --- Popup Pengumuman Styles --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}
.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}
.popup-content {
  position: relative;
  background: transparent;
  max-width: 90%;
  max-height: 90vh;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.popup-overlay.show .popup-content {
  transform: scale(1);
}
.popup-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: block;
}
.popup-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--primary);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.2s;
  z-index: 10;
}
.popup-close:hover {
  background: #dc2626;
  transform: rotate(90deg);
}
