/* ===== 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(--secondary);
  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);
}

/* ===== TOP HEADER ===== */
.top-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0d1b3e 100%);
  color: var(--secondary);
  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(--secondary);
}

.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(--secondary);
  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);
}

/* ===== MAIN NAVIGATION ===== */
.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;
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.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;
}

.nav-link:hover {
  color: var(--secondary) !important;
}

.nav-link.active {
  color: var(--white);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 25, 49, 0.95);
  backdrop-filter: blur(10px);
  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(--secondary);
  margin: 3px 0;
  transition: var(--transition);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(rgba(10, 25, 49, 0.9), rgba(13, 27, 62, 0.9)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::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;
}

.page-header h1 {
  font-size: 3.5rem;
  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;
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background-color: rgba(10, 25, 49, 0.8);
  padding: 15px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.breadcrumb .container {
  display: flex;
  align-items: center;
}

.breadcrumb a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: #ffd700;
}

.breadcrumb i {
  margin: 0 8px;
  color: var(--secondary);
}

.breadcrumb span {
  color: var(--white);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 0px 0;
  background: linear-gradient(135deg, #0d1b3e 0%, var(--primary) 100%);
  position: relative;
}

.main-content::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;
}

/* ===== SINGLE NEWS CONTAINER ===== */
.single-news-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== NEWS META INFO ===== */
.news-meta-info {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.news-category-badge {
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.news-meta-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.news-meta-details i {
  margin-right: 5px;
}

/* ===== NEWS HERO IMAGE ===== */
.news-hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
}

.news-hero-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== NEWS DETAIL CONTENT ===== */
.news-detail-content {
  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);
}

.news-intro {
  margin-bottom: 40px;
}

.news-lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--white);
  padding-left: 20px;
  border-left: 4px solid var(--secondary);
  margin-bottom: 20px;
}

.news-section {
  margin-bottom: 50px;
}

.news-section h2 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ===== FACILITY CARDS ===== */
.facility-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.facility-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.facility-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary) 0%, #FFD700 100%);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 30px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.facility-content h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.facility-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== PERBAIKAN REGISTRATION STEPS ===== */
.registration-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary) 0%, #FFD700 100%);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary) 0%, #FFD700 100%);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.step-content a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.step-content a:hover {
    text-decoration: underline;
    color: #FFD700;
}

/* ===== PERBAIKAN CONTACT INFO BOX ===== */
.contact-info-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    z-index: 0;
}

.contact-info-box h3 {
    color: var(--secondary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.contact-details {
    position: relative;
    z-index: 1;
}

.contact-details p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.contact-details strong {
    color: var(--secondary);
    min-width: 140px;
    display: inline-block;
    font-weight: 600;
}

.contact-details i {
    color: var(--secondary);
    width: 20px;
    text-align: center;
    margin-top: 3px;
}

/* ===== PERBAIKAN RESPONSIVE ===== */
@media (max-width: 768px) {
    .facility-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .facility-card {
        padding: 20px;
    }
    
    .facility-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .facility-content h3 {
        font-size: 1.1rem;
    }
    
    .registration-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step {
        padding: 20px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .contact-details p {
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-details strong {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .facility-gallery {
        grid-template-columns: 1fr;
    }
    
    .facility-card {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .facility-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-number {
        align-self: center;
    }
}

/* ===== EDUCATION LEVELS ===== */
.education-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.education-level {
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.education-level h3 {
  color: var(--white);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.education-level ul {
  list-style: none;
}

.education-level li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.education-level li:before {
  content: "•";
  color: var(--secondary);
  position: absolute;
  left: 0;
}

/* ===== PERBAIKAN SPACING ===== */
.news-section {
    margin-bottom: 60px; /* Tambah jarak antar section */
}

.news-section h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 30px; /* Tambah jarak bawah heading */
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

/* Perbaikan Education Levels */
.education-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; /* Tambah jarak antar card */
    margin-top: 30px;
}

.education-level {
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius);
    padding: 25px; /* Tambah padding */
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    height: 100%;
    min-height: 280px; /* Pastikan tinggi konsisten */
    display: flex;
    flex-direction: column;
}

.education-level:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.education-level h3 {
    color: var(--white);
    margin-bottom: 20px; /* Tambah jarak bawah sub-heading */
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.education-level ul {
    list-style: none;
    flex-grow: 1; /* Isi ruang yang tersedia */
    display: flex;
    flex-direction: column;
    gap: 12px; /* Tambah jarak antar list item */
}

.education-level li {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0; /* Hapus margin bottom karena sudah pakai gap */
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
}

.education-level li:before {
    content: "•";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Perbaikan Timeline */
.timeline-item {
    display: flex;
    margin-bottom: 50px; /* Tambah jarak antar timeline item */
    position: relative;
    align-items: flex-start;
}

.timeline-date {
    flex: 0 0 180px; /* Lebar tetap untuk tanggal */
    padding: 15px;
    text-align: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius);
    color: var(--secondary);
    font-weight: 700;
    margin: 0 25px; /* Tambah jarak kiri-kanan */
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.9rem;
    line-height: 1.4;
}

.timeline-content {
    flex: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 0;
}

.timeline-content h4 {
    color: var(--white);
    margin-bottom: 15px; /* Tambah jarak bawah */
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Garis vertikal timeline lebih tebal */
.timeline:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px; /* Lebarkan garis */
    background: linear-gradient(to bottom, 
        rgba(212, 175, 55, 0.3) 0%, 
        rgba(212, 175, 55, 0.5) 50%, 
        rgba(212, 175, 55, 0.3) 100%);
    transform: translateX(-50%);
}

/* Bulatan pada timeline */
.timeline-item:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 25px;
    width: 16px;
    height: 16px;
    background: var(--secondary);
    border: 3px solid var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

/* Responsive Timeline */
@media (max-width: 992px) {
    .timeline:before {
        left: 180px; /* Sesuaikan dengan width timeline-date */
    }
    
    .timeline-item:before {
        left: 180px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-date {
        flex: 0 0 160px;
        margin-right: 30px;
        margin-left: 0;
    }
}

/* Perbaikan jarak untuk semua section */
.section-intro {
    font-size: 1.1rem;
    margin-bottom: 30px !important;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* Spacing untuk paragraph dalam section */
.news-section > p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* Jarak untuk list items di requirement cards */
.requirement-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.requirement-card li {
    margin-bottom: 0;
    padding-left: 20px;
    line-height: 1.6;
}

/* Perbaikan spacing untuk mobile */
@media (max-width: 768px) {
    .news-section {
        margin-bottom: 40px;
    }
    
    .news-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    
    .education-levels {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .education-level {
        min-height: auto;
        padding: 20px;
    }
    
    .education-level h3 {
        margin-bottom: 15px;
        font-size: 1.1rem;
    }
    
    .education-level li {
        font-size: 0.9rem;
        padding-left: 15px;
    }
    
    .timeline-item {
        margin-bottom: 35px;
        flex-direction: column !important;
    }
    
    .timeline-date {
        flex: none;
        width: 100%;
        margin: 0 0 15px 0;
        text-align: left;
        padding: 12px 15px;
    }
    
    .timeline-content {
        width: 100%;
        padding: 15px;
    }
    
    /* Hide timeline line and dots on mobile */
    .timeline:before,
    .timeline-item:before {
        display: none;
    }
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 30px auto 0;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(212, 175, 55, 0.3);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-date {
  flex: 1;
  padding: 15px;
  text-align: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius);
  color: var(--secondary);
  font-weight: 700;
  margin: 0 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.timeline-content {
  flex: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.timeline-content h4 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* ===== REQUIREMENTS GRID ===== */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.requirement-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 25px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.requirement-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
}

.req-icon {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--secondary);
  font-size: 24px;
}

.requirement-card h3 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* ===== HIGHLIGHT SECTION ===== */
.highlight-section {
  background: rgba(212, 175, 55, 0.05);
  border-radius: var(--radius);
  padding: 30px;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.section-intro {
  font-size: 1.1rem;
  margin-bottom: 30px !important;
}

/* ===== SCHOLARSHIP CARDS ===== */
.scholarship-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.scholarship-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.scholarship-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  padding: 20px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 15px;
}

.scholarship-header i {
  font-size: 24px;
}

.scholarship-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.scholarship-body {
  padding: 20px;
}

.scholarship-body p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== FACILITY GALLERY ===== */
/* Gallery Item Styles */
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    transition: var(--transition);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 14px;
}
.gallery-caption i {
    margin-right: 5px;
    color: var(--secondary);
}

/* Edit Mode Gallery Actions */
.gallery-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-actions {
    opacity: 1;
}

.edit-caption-btn, .delete-image-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.edit-caption-btn {
    background: rgba(33, 150, 243, 0.9);
    color: white;
}

.edit-caption-btn:hover {
    background: #2196F3;
    transform: scale(1.1);
}

.delete-image-btn {
    background: rgba(244, 67, 54, 0.9);
    color: white;
}

.delete-image-btn:hover {
    background: #F44336;
    transform: scale(1.1);
}

/* Upload Placeholder */
.gallery-item.placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.upload-placeholder {
    text-align: center;
    color: var(--secondary);
    padding: 20px;
}

.upload-placeholder i {
    margin-bottom: 10px;
}

.upload-placeholder p {
    margin: 5px 0;
    font-weight: 600;
}

.upload-placeholder small {
    font-size: 12px;
    opacity: 0.8;
}

.gallery-item.placeholder:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--secondary);
}

/* Facility Cards tetap ada untuk fallback */
.facility-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.facility-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 30px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}
/* ===== CTA SECTION ===== */
.cta-section {
  background: rgba(24, 90, 219, 0.1);
  border-radius: var(--radius);
  padding: 30px;
  border: 2px solid rgba(24, 90, 219, 0.3);
}

/* ===== REGISTRATION STEPS ===== */
.registration-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--white);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.step-content a {
  color: var(--secondary);
  text-decoration: none;
}

.step-content a:hover {
  text-decoration: underline;
}

/* ===== CONTACT INFO BOX ===== */
.contact-info-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 25px;
  margin-top: 30px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-info-box h3 {
  color: var(--secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-details p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-details strong {
  color: var(--secondary);
  min-width: 120px;
  display: inline-block;
}

/* ===== NEWS FOOTER ===== */
.news-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 50px 0;
  padding-top: 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.author-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-avatar {
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 40px;
  flex-shrink: 0;
}

.author-details h4 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.author-details p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
}

.share-section {
  flex: 1;
  min-width: 300px;
}

.share-section h4 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

.share-btn.email {
  background: var(--gray);
  color: white;
}

.share-btn.print {
  background: var(--dark);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== RELATED NEWS ===== */
.related-news {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.related-news h3 {
  color: var(--white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.related-item {
  display: flex;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.related-item:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  background: rgba(212, 175, 55, 0.1);
}

.related-image {
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 24px;
  flex-shrink: 0;
}

.related-content h4 {
  color: var(--white);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.related-content p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.9rem;
}

/* ===== 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: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 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: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.footer-col ul li a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.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-form button {
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  color: var(--primary);
  border: none;
  padding: 12px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  border: 2px solid var(--secondary);
  transition: var(--transition);
}

.footer-form button:hover {
  background: linear-gradient(135deg, #ffd700 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.footer-bottom {
  background: rgba(10, 25, 49, 0.9);
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
  z-index: 1;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .timeline:before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
  }

  .timeline-date {
    flex: 0 0 150px;
    margin-right: 20px;
  }

  .news-hero-image img {
    height: 400px;
  }

  .registration-steps {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 49, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 999;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-left: 20px;
    border: none;
    margin-top: 10px;
  }

  .news-detail-content {
    padding: 25px;
  }

  .news-hero-image img {
    height: 300px;
  }

  .news-meta-details {
    flex-direction: column;
    gap: 10px;
  }

  .education-levels,
  .requirements-grid,
  .scholarship-cards {
    grid-template-columns: 1fr;
  }

  .facility-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-footer {
    flex-direction: column;
    gap: 30px;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .top-header .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1.1rem;
  }

  .news-detail-content {
    padding: 20px;
  }

  .news-hero-image img {
    height: 250px;
  }

  .news-section h2 {
    font-size: 1.5rem;
  }

  .facility-gallery {
    grid-template-columns: 1fr;
  }

  .timeline-date {
    flex: 0 0 120px;
    font-size: 0.9rem;
  }

  .author-info {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar {
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--secondary);
  font-weight: 600;
}

.fa-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== TABLE OF CONTENTS ===== */
.table-of-contents {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.table-of-contents h3 {
  color: var(--secondary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-of-contents ul {
  list-style: none;
}

.table-of-contents li {
  margin-bottom: 10px;
}

.table-of-contents a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-of-contents a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

/* ===== READING PROGRESS BAR ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary) 0%, #ffd700 100%);
  z-index: 2000;
  transition: width 0.3s ease;
}

/* ===== LIGHTBOX STYLES ===== */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 49, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  cursor: pointer;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(212, 175, 55, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #0a1931;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary) 0%, #ffd700 100%);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: var(--transition);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
}

/* ===== ERROR & SUCCESS MESSAGES ===== */
.error-message {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 5px;
}

.success-message {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid rgba(46, 204, 113, 0.3);
  text-align: center;
  font-weight: 600;
}

/* Tambahkan di berita.css */

/* Gallery Placeholder Styles */
.gallery-item.placeholder {
    background: rgba(212, 175, 55, 0.05);
    border: 2px dashed rgba(212, 175, 55, 0.5);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 250px;
    transition: all 0.3s ease;
}

.gallery-item.placeholder:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.upload-placeholder {
    text-align: center;
    color: var(--secondary);
    padding: 20px;
    width: 100%;
}

.upload-placeholder i {
    margin-bottom: 15px;
    opacity: 0.8;
}

.upload-placeholder p {
    margin: 5px 0;
    font-weight: 600;
    font-size: 16px;
}

.upload-placeholder small {
    font-size: 12px;
    opacity: 0.7;
}

/* Empty Gallery Message */
.empty-gallery-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    border: 1px dashed rgba(212, 175, 55, 0.3);
}

.empty-gallery-message i {
    font-size: 48px;
    color: rgba(212, 175, 55, 0.5);
    margin-bottom: 20px;
}

.empty-gallery-message h3 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.empty-gallery-message p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto;
}