:root {
  --primary: #2ecc71;
  --secondary: #27ae60;
  --dark: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --light: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  color: var(--text-main);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo i {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-register {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  background: none;
  border: none;
}

/* Hero Section */
.hero-section {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge-pill {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(46, 204, 113, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--dark);
}

.text-primary {
  color: var(--primary);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn-primary {
  padding: 16px 32px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
  display: inline-block;
}

.btn-outline {
  padding: 16px 32px;
  border: 1px solid #e2e8f0;
  color: var(--dark);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  display: inline-block;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  height: 500px;
  background: #e2e8f0;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.hero-img-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
}

.floating-badge {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
}

.check-icon-circle {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.badge-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.badge-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background: var(--light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  color: var(--primary);
}

.stat-label {
  color: var(--text-muted);
}

/* Features Section */
.features-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  padding: 40px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid #f1f5f9;
  transition: 0.3s;
  cursor: pointer;
}

.feature-card:hover {
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.icon-green {
  background: rgba(46, 204, 113, 0.1);
  color: var(--primary);
}
.icon-blue {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
}
.icon-yellow {
  background: rgba(241, 196, 15, 0.1);
  color: #f1c40f;
}

.feature-card h3 {
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Latest Information Section */
.info-section {
  padding: 100px 0;
  background: #fff;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.announcement-box {
  background: var(--light);
  padding: 40px;
  border-radius: 32px;
  height: 100%;
}

.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.box-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.view-all {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.announcement-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.date-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.announcement-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
}

.announcement-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.empty-state {
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 20px;
  color: var(--text-muted);
}

.empty-news {
  text-align: center;
  padding: 60px;
  background: var(--light);
  border-radius: 24px;
  border: 2px dashed #e2e8f0;
}

.news-card {
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 320px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.news-image {
  height: 100%;
  background: #f1f5f9;
  position: relative;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  background: #f8fafc;
}

.news-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-label {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Footer */
footer {
  background: var(--dark);
  color: #fff;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-about h3 {
  margin-bottom: 20px;
}

.footer-about p {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-links h4 {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #94a3b8;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.contact-info {
  color: #94a3b8;
  font-size: 0.9rem;
}

.copyright {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* Profil Page Styles */
.page-header {
    padding: 120px 0 80px; /* Increased top padding to clear fixed navbar */
    background: var(--light);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    color: var(--dark);
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.content-box {
    background: #fff;
    padding: 60px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative; /* Ensure z-index works */
    z-index: 10;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.history-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--dark);
}

.history-text {
    line-height: 1.8;
    color: var(--text-muted);
    white-space: pre-line;
}

.history-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.history-image img {
    width: 100%;
    height: auto;
}

.history-placeholder {
    width: 100%;
    height: 400px;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.card-box {
    padding: 40px;
    background: var(--light);
    border-radius: 24px;
}

.card-title {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-text {
    line-height: 1.7;
    color: var(--text-muted);
}

/* Berita Page Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.4s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.news-item:hover {
    transform: translateY(-10px);
}

.news-thumb {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-body {
    padding: 30px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.news-item-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    line-height: 1.4;
    color: var(--dark);
    font-weight: 700;
}

.news-item-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.empty-news-full {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px;
    background: #fff;
    border-radius: 24px;
    border: 1px dashed #cbd5e1;
}

/* Pendaftaran Page Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-box {
    background: #fff;
    padding: 48px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.form-section-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--dark);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
    transition: 0.3s;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 32px;
    text-align: center;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* MEDIA QUERIES FOR MOBILE */
@media (max-width: 991px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-grid {
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
    gap: 20px;
    align-items: flex-start;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
  }

  .btn-register {
    display: inline-block;
    width: auto;
    margin-top: 10px;
  }

  /* Hero */
  .hero-section {
    padding: 100px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-grid > div:first-child {
    order: 1;
  }

  .hero-grid > div:last-child {
    order: 2;
  }

  .hero-image {
    height: 300px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .floating-badge {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Info Section */
  .info-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 1fr;
    height: auto;
  }

  .news-image {
    height: 200px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Profil Page Mobile */
  .content-box {
    padding: 30px;
  }

  .history-grid, .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .history-placeholder {
    height: 250px;
  }

  /* Berita Page Mobile */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* Pendaftaran Page Mobile */
  .form-box {
    padding: 24px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
