/* ===== VARIABLES & RESET ===== */
:root {
  --primary: #0a1931; /* Biru Tua */
  --secondary: #d4af37; /* Gold */
  --accent: #185adb; /* Biru Cerah */
  --light: #f8f9fa;
  --dark: #212529; /* Hitam */
  --gray: #6c757d;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--white);
  background: linear-gradient(135deg, #0a1931 0%, #0d1b3e 100%);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 16px;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  color: var(--primary);
  border: 2px solid var(--secondary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffd700 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ===== HEADER ===== */
.top-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0d1b3e 100%);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact span {
  margin-right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-contact i,
.header-social i {
  color: var(--white);
}

.header-social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ===== FIXED NAVBAR STYLES ===== */
.main-nav {
  background: rgba(10, 25, 49, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

/* Efek saat scroll (hanya shadow dan transparansi) */
.main-nav.scrolled {
  background: rgba(10, 25, 49, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  background: transparent !important;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.logo-placeholder {
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.logo-placeholder h2 {
  font-size: 28px;
  margin-bottom: 2px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-placeholder p {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 600;
  padding: 10px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  letter-spacing: 0.5px;
  transition: var(--transition);
}

/* WARNA HANYA BERUBAH SAAT HOVER/ACTIVE */
.nav-link:hover {
  color: var(--secondary);
}

.nav-link.active {
  color: var(--white); /* Tetap putih saat active */
}

.nav-link.active:hover {
  color: var(--secondary); /* Berubah emas saat hover meski active */
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    #0d1b3e 100%
  ) !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  border-radius: var(--radius);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--white);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--secondary);
  padding-left: 25px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white); /* Ubah dari var(--secondary) ke var(--white) */
  margin: 3px 0;
  transition: var(--transition);
}

.nav-toggle:hover span {
  background: var(--secondary); /* Berubah emas saat hover */
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #0d1b3e 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(212,175,55,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  flex: 1;
  padding: 0 50px;
  max-width: 600px;
  color: var(--white);
  z-index: 2;
}

.slide-content h1 {
  font-size: 52px;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--white);
  line-height: 1.6;
  opacity: 0.9;
}

.image-placeholder {
  flex: 1;
  height: 100%;
  background: rgba(212, 175, 55, 0.1);
  border: 2px dashed rgba(212, 175, 55, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(212, 175, 55, 0.1),
    transparent 30%
  );
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.image-placeholder i {
  font-size: 48px;
  margin-bottom: 15px;
  z-index: 1;
  color: var(--white);
}

.image-placeholder p {
  z-index: 1;
  font-weight: 600;
  color: var(--white);
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 3;
  padding: 0 20px;
}

.prev-slide,
.next-slide {
  background: rgba(212, 175, 55, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.prev-slide:hover,
.next-slide:hover {
  background: var(--secondary);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.dot.active {
  background: var(--secondary);
  transform: scale(1.2);
  border-color: var(--white);
}

/* ===== SECTION STYLES ===== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--secondary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary) 0%, transparent 100%);
}

.section-header p {
  font-size: 18px;
  color: var(--white);
  max-width: 600px;
  margin: 20px auto 0;
  opacity: 0.8;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: linear-gradient(135deg, #0d1b3e 0%, var(--primary) 100%);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(212,175,55,0.03)" points="0,0 1000,1000 0,1000"/></svg>');
  background-size: cover;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 32px;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--white);
  line-height: 1.8;
  font-size: 16px;
  opacity: 0.9;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}

.stat {
  text-align: center;
  background: rgba(212, 175, 55, 0.1);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
  min-width: 120px;
}

.stat h4 {
  font-size: 32px;
  color: var(--white);
  margin-bottom: 5px;
  font-weight: 700;
}

.stat p {
  font-size: 14px;
  color: var(--white);
  margin: 0;
  opacity: 0.8;
}

.about-image {
  flex: 1;
}

.about-image .image-placeholder {
  height: 400px;
  border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.05);
}

/* ===== PROGRAMS SECTION ===== */
.programs {
  background: linear-gradient(135deg, var(--primary) 0%, #0a1931 100%);
  position: relative;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.program-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.1),
    transparent
  );
  transition: var(--transition);
}

.program-card:hover::before {
  left: 100%;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary);
}

.program-icon {
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--white);
  font-size: 32px;
  transition: var(--transition);
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.program-card:hover .program-icon {
  background: var(--secondary);
  color: var(--primary);
  transform: rotateY(180deg);
  border-color: var(--secondary);
}

.program-card h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 15px;
  font-weight: 600;
}

.program-card p {
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.7;
  opacity: 0.8;
}

.program-link {
  color: var(--white);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.program-link:hover {
  color: var(--secondary);
  gap: 12px;
}

/* ===== NEWS SECTION ===== */
.news {
  background: linear-gradient(135deg, #0d1b3e 0%, var(--primary) 100%);
  position: relative;
}

.news::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle fill="rgba(212,175,55,0.05)" cx="500" cy="500" r="400"/></svg>');
  background-size: cover;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.news-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary);
}

.news-image {
  position: relative;
  height: 200px;
}

.news-image .image-placeholder {
  height: 100%;
  border-radius: 0;
  border: none;
  background: rgba(212, 175, 55, 0.1);
}

.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-content {
  padding: 25px;
}

.news-date {
  font-size: 14px;
  color: var(--white);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.news-content h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.news-content h3 a:hover {
  color: var(--secondary);
}

.news-content p {
  color: var(--white);
  margin-bottom: 15px;
  line-height: 1.6;
  opacity: 0.8;
}

.news-link {
  color: var(--white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.news-link:hover {
  color: var(--secondary);
  gap: 12px;
}

.news-more {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ===== ABOUT US PAGE SPECIFIC STYLES ===== */
.hero-about {
  background: linear-gradient(135deg, var(--primary) 0%, #0d1b3e 100%);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.hero-about-content h1 {
  font-size: 60px;
  color: var(--secondary);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-about-content > p {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 30px;
  opacity: 0.9;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
}

.breadcrumb a {
  color: var(--white);
}

.breadcrumb .separator {
  color: var(--white);
  opacity: 0.6;
}

.breadcrumb .current {
  color: var(--white);
  opacity: 0.8;
}

/* History Section */
.history-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}

.history-timeline {
  position: relative;
}

.history-timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), transparent);
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.timeline-year {
  background: var(--secondary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 700;
  min-width: 80px;
  text-align: center;
  margin-right: 30px;
  z-index: 2;
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 20px;
}

.timeline-content p {
  color: var(--white);
  line-height: 1.6;
  opacity: 0.9;
}

.history-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
}

.stat-info h3 {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 5px;
}

.stat-info p {
  color: var(--white);
  opacity: 0.8;
}

/* Vision Mission Section */
.vision-mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.vision-card,
.mission-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
}

.vision-card::before,
.mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), #ffd700);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
}

.card-header h3 {
  color: var(--white);
  font-size: 24px;
}

.vision-card .card-body p {
  color: var(--white);
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  font-style: italic;
  opacity: 0.9;
}

.mission-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: var(--white);
}

.mission-list i {
  color: var(--white);
  margin-top: 3px;
  flex-shrink: 0;
}

.mission-list span {
  opacity: 0.9;
  line-height: 1.6;
}

/* Goals Section */
.goals-content {
  margin-top: 40px;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.goal-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.goal-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), #ffd700);
}

.goal-item:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
}

.goal-icon {
  width: 70px;
  height: 70px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 28px;
  transition: var(--transition);
}

.goal-item:hover .goal-icon {
  background: var(--secondary);
  color: var(--primary);
  transform: rotateY(180deg);
}

.goal-item h4 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 20px;
}

.goal-item p {
  color: var(--white);
  line-height: 1.6;
  opacity: 0.9;
}

/* Values Section */
.values-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 32px;
  transition: var(--transition);
}

.value-item:hover .value-icon {
  background: var(--secondary);
  color: var(--primary);
  transform: scale(1.1);
}

.value-item h4 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 20px;
}

.value-item p {
  color: var(--white);
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer-main {
  background: linear-gradient(135deg, var(--primary) 0%, #0a1931 100%);
  color: var(--white);
  padding: 60px 0 30px;
  border-top: 2px solid var(--secondary);
  position: relative;
}

.footer-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(212,175,55,0.03)" points="0,0 1000,1000 0,1000"/></svg>');
  background-size: cover;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-col h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--secondary);
  font-weight: 700;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary) 0%, transparent 100%);
}

.footer-desc {
  margin-bottom: 20px;
  color: var(--white);
  line-height: 1.7;
  opacity: 0.8;
}

.footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--white);
  opacity: 0.8;
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 3px;
  min-width: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--white);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  opacity: 0.8;
}

.footer-col ul li a:hover {
  color: var(--secondary);
  transform: translateX(5px);
  opacity: 1;
}

.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: inherit;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: var(--transition);
}

.footer-form input:focus,
.footer-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.15);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-form textarea {
  resize: vertical;
  min-height: 100px;
}

.footer-bottom {
  background: rgba(10, 25, 49, 0.9);
  padding: 20px 0;
  color: var(--white);
  font-size: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 1;
  opacity: 0.7;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 15px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  /* ===== FIX MOBILE NAVBAR ===== */
  .nav-toggle {
    display: flex !important;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 300px !important;
    height: 100vh !important;
    background: rgba(10, 25, 49, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    flex-direction: column !important;
    padding: 100px 20px 20px !important;
    transition: left 0.3s ease !important;
    z-index: 1000 !important;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3) !important;
    overflow-y: auto !important;
    border-top: none !important;
    transform: none !important;
  }

  .nav-menu.active {
    left: 0 !important;
  }

  /* Overlay untuk mobile */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Dropdown styling untuk mobile */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > .nav-link {
    justify-content: space-between;
  }

  .nav-dropdown .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(212, 175, 55, 0.1) !important;
    border: none !important;
    margin: 5px 0 0 15px !important;
    padding: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease !important;
    display: block !important;
    width: 100%;
    min-width: auto !important;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 300px !important;
  }

  .nav-dropdown .dropdown-menu li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
  }

  .nav-dropdown .dropdown-menu li:last-child {
    border-bottom: none !important;
  }

  .nav-dropdown .dropdown-menu a {
    padding: 10px 15px !important;
    padding-left: 25px !important;
  }

  /* Chevron animation */
  .nav-dropdown > .nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
  }

  .nav-dropdown.active > .nav-link .fa-chevron-down {
    transform: rotate(180deg);
  }

  /* Nav toggle animation */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px) !important;
  }

  /* Link styling untuk mobile */
  .nav-link {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
    width: 100%;
  }

  .nav-link i.fa-chevron-down {
    font-size: 12px;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    width: 100%;
  }

  .slide-content h1 {
    font-size: 36px;
  }

  .about-stats {
    justify-content: center;
  }

  .history-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vision-mission-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 28px;
  }

  section {
    padding: 60px 0;
  }

  .program-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .slider-controls {
    padding: 0 10px;
  }

  .prev-slide,
  .next-slide {
    width: 40px;
    height: 40px;
  }

  .about-stats {
    gap: 15px;
  }

  .stat {
    min-width: 100px;
    padding: 15px;
  }

  .stat h4 {
    font-size: 24px;
  }

  .goals-grid {
    grid-template-columns: 1fr;
  }

  .values-content {
    grid-template-columns: 1fr;
  }

  .hero-about {
    padding: 100px 0 60px;
  }

  .hero-about-content h1 {
    font-size: 28px;
  }
}
/* ===== MOBILE OPTIMIZATIONS ===== */

/* Improve touch targets */
button,
.btn-primary,
.btn-secondary,
.nav-toggle,
.social-link,
.dot,
.prev-slide,
.next-slide {
  min-height: 44px;
  min-width: 44px;
}

.nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Better scrolling on mobile */
body {
  -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Fix iOS zoom on input focus */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  textarea,
  select {
    font-size: 16px; /* Prevents iOS zoom */
  }
}

/* Improve form elements for mobile */
.footer-form input,
.footer-form textarea {
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--radius);
}

/* Fix sticky hover on mobile */
@media (hover: none) and (pointer: coarse) {
  .program-card:hover,
  .news-card:hover,
  .stat-card:hover,
  .goal-item:hover,
  .value-item:hover {
    transform: none;
  }

  .program-card:hover::before,
  .news-card:hover::before {
    left: -100%;
  }

  .program-icon:hover,
  .goal-icon:hover,
  .value-icon:hover {
    transform: none;
    background: rgba(212, 175, 55, 0.1);
    color: var(--white);
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .social-link:hover {
    transform: none;
  }
}

/* Responsive typography */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .slide-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-about-content h1 {
    font-size: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .about-text h3,
  .program-card h3,
  .news-content h3,
  .timeline-content h3,
  .card-header h3,
  .goal-item h4,
  .value-item h4 {
    font-size: 1.3rem;
  }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
  .container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .main-nav {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .nav-menu.active {
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Better mobile navigation experience */
.nav-menu {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Fix for mobile dropdowns */
.nav-dropdown.active .dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  background: rgba(10, 25, 49, 0.9);
  padding-left: 20px;
  border: none;
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
}

/* Improve timeline for mobile */
@media (max-width: 768px) {
  .history-timeline::before {
    left: 15px;
  }

  .timeline-item {
    margin-left: 30px;
  }

  .timeline-year {
    position: relative;
    left: -15px;
  }
}

/* Optimize images for mobile */
.image-placeholder {
  background-size: cover;
  background-position: center;
}

/* Better spacing for mobile */
@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .hero-about {
    padding: 80px 0 40px;
  }

  .hero {
    height: 400px;
  }

  .slide-content {
    padding: 20px;
  }
}

/* Improve slider controls for touch */
.prev-slide,
.next-slide {
  position: relative;
  z-index: 10;
}

.slider-controls {
  pointer-events: none;
}

.slider-controls button {
  pointer-events: auto;
}

/* Fix for iOS Safari 100vh issue */
.hero,
.hero-slider,
.slide {
  height: 100vh;
  max-height: 700px;
  min-height: 400px;
}

@media (max-width: 768px) {
  .hero,
  .hero-slider,
  .slide {
    max-height: 500px;
    min-height: 300px;
  }
}

/* Loading states */
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  .btn-primary,
  .btn-secondary {
    border-width: 3px;
  }

  .nav-link {
    font-weight: 700;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .image-placeholder {
    background: rgba(212, 175, 55, 0.15);
  }

  .program-card,
  .news-card,
  .stat-card,
  .vision-card,
  .mission-card,
  .goal-item,
  .value-item {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Print styles */
@media print {
  .nav-toggle,
  .slider-controls,
  .slider-dots,
  .footer-form,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    height: auto;
    page-break-inside: avoid;
  }
}
/* Additional mobile optimizations */
.touch-active {
  opacity: 0.8;
  transform: scale(0.98);
}

.scrolling {
  pointer-events: none;
}

.scrolling * {
  pointer-events: none !important;
}

/* Use custom property for viewport height */
.hero,
.hero-slider,
.slide {
  height: calc(var(--vh, 1vh) * 100);
  max-height: 700px;
}

@media (max-width: 768px) {
  .hero,
  .hero-slider,
  .slide {
    max-height: 500px;
    min-height: calc(var(--vh, 1vh) * 50);
  }
}

/* Loading states */
body:not(.page-loaded) * {
  transition: none !important;
}

body.page-loaded .timeline-item {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Focus states for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.nav-link:focus,
.social-link:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .main-nav {
    position: static !important;
    background: #fff !important;
    color: #000 !important;
  }

  .nav-menu {
    display: none;
  }

  .hero {
    break-inside: avoid;
  }

  .btn-primary,
  .btn-secondary {
    border: 1px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
  }
}
